• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java StaticSentence类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.openbravo.data.loader.StaticSentence的典型用法代码示例。如果您正苦于以下问题:Java StaticSentence类的具体用法?Java StaticSentence怎么用?Java StaticSentence使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



StaticSentence类属于com.openbravo.data.loader包,在下文中一共展示了StaticSentence类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: AttributeUseEditor

import com.openbravo.data.loader.StaticSentence; //导入依赖的package包/类
/** Creates new form AttributeSetEditor */
public AttributeUseEditor(AppView app, DirtyManager dirty) {

    attributesent = new StaticSentence(app.getSession()
        , "SELECT ID, NAME FROM ATTRIBUTE ORDER BY NAME"
        , null
        , new SerializerRead() { public Object readValues(DataRead dr) throws BasicException {
            return new AttributeInfo(dr.getString(1), dr.getString(2));
        }}
    );
    attributemodel = new ComboBoxValModel();

    initComponents();

    jLineno.getDocument().addDocumentListener(dirty);
    jAttribute.addActionListener(dirty);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:18,代码来源:AttributeUseEditor.java


示例2: AttributeUseEditor

import com.openbravo.data.loader.StaticSentence; //导入依赖的package包/类
/** Creates new form AttributeSetEditor
    * @param app
    * @param dirty */
   public AttributeUseEditor(AppView app, DirtyManager dirty) {

       attributesent = new StaticSentence(app.getSession()
           , "SELECT ID, NAME FROM ATTRIBUTE ORDER BY NAME"
           , null
           , new SerializerRead() {@Override
public Object readValues(DataRead dr) throws BasicException {
               return new AttributeInfo(dr.getString(1), dr.getString(2));
           }}
       );
       attributemodel = new ComboBoxValModel();

       initComponents();

       jLineno.getDocument().addDocumentListener(dirty);
       jAttribute.addActionListener(dirty);
   }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:21,代码来源:AttributeUseEditor.java


示例3: getSharedTicket

import com.openbravo.data.loader.StaticSentence; //导入依赖的package包/类
public final TicketInfo getSharedTicket(String Id) throws BasicException {
    
    if (Id == null) {
        return null; 
    } else {
        Object[]record = (Object[]) new StaticSentence(s
                , "SELECT CONTENT FROM SHAREDTICKETS WHERE ID = ?"
                , SerializerWriteString.INSTANCE
                , new SerializerReadBasic(new Datas[] {Datas.SERIALIZABLE})).find(Id);
        return record == null ? null : (TicketInfo) record[0];
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:13,代码来源:DataLogicReceipts.java


示例4: getSharedTicketList

import com.openbravo.data.loader.StaticSentence; //导入依赖的package包/类
public final List<SharedTicketInfo> getSharedTicketList() throws BasicException {
    
    return (List<SharedTicketInfo>) new StaticSentence(s
            , "SELECT ID, NAME FROM SHAREDTICKETS ORDER BY ID"
            , null
            , new SerializerReadClass(SharedTicketInfo.class)).list();
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:8,代码来源:DataLogicReceipts.java


示例5: getCustomerList

import com.openbravo.data.loader.StaticSentence; //导入依赖的package包/类
public SentenceList getCustomerList() {
    return new StaticSentence(s
        , new QBFBuilder("SELECT ID, TAXID, SEARCHKEY, NAME FROM CUSTOMERS WHERE VISIBLE = " + s.DB.TRUE() + " AND ?(QBF_FILTER) ORDER BY NAME", new String[] {"TAXID", "SEARCHKEY", "NAME"})
        , new SerializerWriteBasic(new Datas[] {Datas.OBJECT, Datas.STRING, Datas.OBJECT, Datas.STRING, Datas.OBJECT, Datas.STRING})
        , new SerializerRead() {
                public Object readValues(DataRead dr) throws BasicException {
                    CustomerInfo c = new CustomerInfo(dr.getString(1));
                    c.setTaxid(dr.getString(2));
                    c.setSearchkey(dr.getString(3));
                    c.setName(dr.getString(4));
                    return c;
                }                
            });
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:15,代码来源:DataLogicCustomers.java


示例6: init

import com.openbravo.data.loader.StaticSentence; //导入依赖的package包/类
public void init(AppView app) {

        attsent = new StaticSentence(app.getSession()
            , "SELECT ID, NAME FROM ATTRIBUTE ORDER BY NAME"
            , null
            , new SerializerRead() { public Object readValues(DataRead dr) throws BasicException {
                return new AttributeInfo(dr.getString(1), dr.getString(2));
            }});
        attmodel = new ComboBoxValModel();
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:11,代码来源:AttributeFilter.java


示例7: init

import com.openbravo.data.loader.StaticSentence; //导入依赖的package包/类
public void init(AppView app) {

        attusesent = new StaticSentence(app.getSession()
            , "SELECT ID, NAME FROM ATTRIBUTESET ORDER BY NAME"
            , null
            , new SerializerRead() { public Object readValues(DataRead dr) throws BasicException {
                return new AttributeSetInfo(dr.getString(1), dr.getString(2));
            }});
        attusemodel = new ComboBoxValModel();
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:11,代码来源:AttributeSetFilter.java


示例8: insertProductCategories

import com.openbravo.data.loader.StaticSentence; //导入依赖的package包/类
private void insertProductCategories() {
    try {        
        for( int i = 100; i < 50000; i++) {
            String sentence =
                    "INSERT INTO m_product_category(" +
                    " m_product_category_id," +
                    " ad_client_id," +
                    " ad_org_id," +
                    " isactive, " +
                    " created, createdby, " +
                    " updated, updatedby, " +
                    " value, " +
                    " name, " +
                    " description, " +
                    " isdefault, plannedmargin, a_asset_group_id) VALUES " +
                    "(" +
                    Integer.toString(i + 1000000) + " ," +
                    " 1000000, " + 
                    " 0, " +
                    "'Y', " +
                    " '2007-01-01', 100, " +
                    " '2007-01-01', 100, " +
                    " 'Fictious Category no " + Integer.toString(i) +"' ," +
                    " 'Fictious Category Name no " + Integer.toString(i) +"' ," +
                    " null," +
                    " 'N'," +
                    " 0," +
                    " null)";
            System.out.println(i);
            System.out.println(sentence);
            BaseSentence sent = new StaticSentence(m_App.getSession(), sentence);
            sent.exec();
        }
    } catch (BasicException e) {
        e.printStackTrace();
    }        
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:38,代码来源:JPanelSQL.java


示例9: getSharedTicket

import com.openbravo.data.loader.StaticSentence; //导入依赖的package包/类
/**
 *
 * @param Id
 * @return
 * @throws BasicException
 */
public final TicketInfo getSharedTicket(String Id) throws BasicException {
    
    if (Id == null) {
        return null; 
    } else {
        Object[]record = (Object[]) new StaticSentence(s
                , "SELECT CONTENT FROM SHAREDTICKETS WHERE ID = ?"
                , SerializerWriteString.INSTANCE
                , new SerializerReadBasic(new Datas[] {Datas.SERIALIZABLE})).find(Id);
        return record == null ? null : (TicketInfo) record[0];
    }
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:19,代码来源:DataLogicReceipts.java


示例10: getSharedTicketList

import com.openbravo.data.loader.StaticSentence; //导入依赖的package包/类
/**
     *
     * @return
     * @throws BasicException
     */
    public final List<SharedTicketInfo> getSharedTicketList() throws BasicException {
        
        return (List<SharedTicketInfo>) new StaticSentence(s
// JG 20 Aug 13 Bug Fix: invalid SQL string
//                , "SELECT ID, NAME, CONTENT PICKUPID FROM SHAREDTICKETS ORDER BY ID"                
                , "SELECT ID, NAME, CONTENT, PICKUPID FROM SHAREDTICKETS ORDER BY ID"
                , null
                , new SerializerReadClass(SharedTicketInfo.class)).list();
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:15,代码来源:DataLogicReceipts.java


示例11: deleteSharedTicket

import com.openbravo.data.loader.StaticSentence; //导入依赖的package包/类
/**
 *
 * @param id
 * @throws BasicException
 */
public final void deleteSharedTicket(final String id) throws BasicException {

    new StaticSentence(s
        , "DELETE FROM SHAREDTICKETS WHERE ID = ?"
        , SerializerWriteString.INSTANCE).exec(id);      
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:12,代码来源:DataLogicReceipts.java


示例12: getPickupId

import com.openbravo.data.loader.StaticSentence; //导入依赖的package包/类
/**
 *
 * @param Id
 * @return
 * @throws BasicException
 */
public final Integer getPickupId(String Id) throws BasicException {
    
    if (Id == null) {
        return null; 
    } else {
        Object[]record = (Object[]) new StaticSentence(s
                , "SELECT PICKUPID FROM SHAREDTICKETS WHERE ID = ?"
                , SerializerWriteString.INSTANCE
                , new SerializerReadBasic(new Datas[] {Datas.INT})).find(Id);
        return record == null ? 0 : (Integer)record[0];
    }
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:19,代码来源:DataLogicReceipts.java


示例13: getCustomerList

import com.openbravo.data.loader.StaticSentence; //导入依赖的package包/类
public SentenceList getCustomerList() {
    return new StaticSentence(s
        , new QBFBuilder("SELECT ID, TAXID, SEARCHKEY, NAME FROM CUSTOMERS WHERE VISIBLE = " + s.DB.TRUE() + " AND ?(QBF_FILTER) ORDER BY NAME", new String[] {"TAXID", "SEARCHKEY", "NAME"})
        , new SerializerWriteBasic(new Datas[] {Datas.OBJECT, Datas.STRING, Datas.OBJECT, Datas.STRING, Datas.OBJECT, Datas.STRING})
        , new SerializerRead() {
                public Object readValues(DataRead dr) throws BasicException {
                    CustomerInfo c = new CustomerInfo(dr.getString(1));
                    c.setTaxid(dr.getString(2));
                    c.setSearchkey(dr.getString(3));
                    c.setName(dr.getString(4));
                    return c;
                }
            });
}
 
开发者ID:nordpos,项目名称:nordpos,代码行数:15,代码来源:DataLogicCustomers.java


示例14: getCustomerList

import com.openbravo.data.loader.StaticSentence; //导入依赖的package包/类
public SentenceList getCustomerList() {
    // TODO To action on webservice
    return new StaticSentence(s
        , new QBFBuilder("SELECT ID, TAXID, SEARCHKEY, NAME FROM CUSTOMERS WHERE VISIBLE = " + s.DB.TRUE() + " AND ?(QBF_FILTER) ORDER BY NAME", new String[] {"TAXID", "SEARCHKEY", "NAME"})
        , new SerializerWriteBasic(new Datas[] {Datas.OBJECT, Datas.STRING, Datas.OBJECT, Datas.STRING, Datas.OBJECT, Datas.STRING})
        , new SerializerRead() {
                public Object readValues(DataRead dr) throws BasicException {
                    CustomerInfo c = new CustomerInfo(dr.getString(1));
                    c.setTaxid(dr.getString(2));
                    c.setSearchkey(dr.getString(3));
                    c.setName(dr.getString(4));
                    return c;
                }                
            });
}
 
开发者ID:ZarGate,项目名称:OpenbravoPOS,代码行数:16,代码来源:DataLogicCustomers.java


示例15: deleteSharedTicket

import com.openbravo.data.loader.StaticSentence; //导入依赖的package包/类
public final void deleteSharedTicket(final String id) throws BasicException {

        new StaticSentence(s
            , "DELETE FROM SHAREDTICKETS WHERE ID = ?"
            , SerializerWriteString.INSTANCE).exec(id);      
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:7,代码来源:DataLogicReceipts.java


示例16: getRolesList

import com.openbravo.data.loader.StaticSentence; //导入依赖的package包/类
public final SentenceList getRolesList() {
    return new StaticSentence(s
        , "SELECT ID, NAME FROM ROLES ORDER BY NAME"
        , null
        , new SerializerReadClass(RoleInfo.class));
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:7,代码来源:DataLogicAdmin.java


示例17: getSentence

import com.openbravo.data.loader.StaticSentence; //导入依赖的package包/类
protected BaseSentence getSentence() {
    return new StaticSentence(m_App.getSession()
        , new QBFBuilder(sentence, paramnames.toArray(new String[paramnames.size()]))
        , qbffilter.getSerializerWrite()
        , new SerializerReadBasic(fielddatas.toArray(new Datas[fielddatas.size()])));
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:7,代码来源:PanelReportBean.java


示例18: syncCustomersBefore

import com.openbravo.data.loader.StaticSentence; //导入依赖的package包/类
public void syncCustomersBefore() throws BasicException {
    new StaticSentence(s, "UPDATE CUSTOMERS SET VISIBLE = " + s.DB.FALSE()).exec();
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:4,代码来源:DataLogicIntegration.java


示例19: syncProductsBefore

import com.openbravo.data.loader.StaticSentence; //导入依赖的package包/类
public void syncProductsBefore() throws BasicException {
    new StaticSentence(s, "DELETE FROM PRODUCTS_CAT").exec();
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:4,代码来源:DataLogicIntegration.java



注:本文中的com.openbravo.data.loader.StaticSentence类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java EndpointType类代码示例发布时间:2022-05-23
下一篇:
Java FastClass类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap