本文整理汇总了Java中com.openbravo.data.model.Row.getSaveProvider方法的典型用法代码示例。如果您正苦于以下问题:Java Row.getSaveProvider方法的具体用法?Java Row.getSaveProvider怎么用?Java Row.getSaveProvider使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.openbravo.data.model.Row
的用法示例。
在下文中一共展示了Row.getSaveProvider方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import com.openbravo.data.model.Row; //导入方法依赖的package包/类
protected void init() {
filter = new AttributeFilter();
filter.init(app);
filter.addActionListener(new ReloadActionListener());
row = new Row(
new Field("ID", Datas.STRING, Formats.STRING),
new Field("ATTRIBUTE_ID", Datas.STRING, Formats.STRING),
new Field(AppLocal.getIntString("label.value"), Datas.STRING, Formats.STRING, true, true, true)
);
Table table = new Table(
"ATTRIBUTEVALUE",
new PrimaryKey("ID"),
new Column("ATTRIBUTE_ID"),
new Column("VALUE"));
lpr = row.getListProvider(app.getSession(),
"SELECT ID, ATTRIBUTE_ID, VALUE FROM ATTRIBUTEVALUE WHERE ATTRIBUTE_ID = ? ", filter);
spr = row.getSaveProvider(app.getSession(), table);
editor = new AttributeValuesEditor(dirty);
}
示例2: init
import com.openbravo.data.model.Row; //导入方法依赖的package包/类
protected void init() {
row = new Row(
new Field("ID", Datas.STRING, Formats.STRING),
new Field(AppLocal.getIntString("Label.Name"), Datas.STRING, Formats.STRING, true, true, true)
);
Table table = new Table(
"ATTRIBUTESET",
new PrimaryKey("ID"),
new Column("NAME"));
lpr = row.getListProvider(app.getSession(), table);
spr = row.getSaveProvider(app.getSession(), table);
editor = new AttributeSetsEditor(dirty);
}
示例3: init
import com.openbravo.data.model.Row; //导入方法依赖的package包/类
protected void init() {
row = new Row(
new Field("ID", Datas.STRING, Formats.STRING),
new Field(AppLocal.getIntString("Label.Name"), Datas.STRING, Formats.STRING, true, true, true)
);
Table table = new Table(
"ATTRIBUTE",
new PrimaryKey("ID"),
new Column("NAME"));
lpr = row.getListProvider(app.getSession(), table);
spr = row.getSaveProvider(app.getSession(), table);
editor = new AttributesEditor(dirty);
}
示例4: init
import com.openbravo.data.model.Row; //导入方法依赖的package包/类
protected void init() {
filter = new AuxiliarFilter();
filter.init(app);
filter.addActionListener(new ReloadActionListener());
row = new Row(
new Field("ID", Datas.STRING, Formats.STRING),
new Field("PRODUCT1", Datas.STRING, Formats.STRING),
new Field("PRODUCT2", Datas.STRING, Formats.STRING),
new Field(AppLocal.getIntString("label.prodref"), Datas.STRING, Formats.STRING, true, true, true),
new Field(AppLocal.getIntString("label.prodbarcode"), Datas.STRING, Formats.STRING, false, true, true),
new Field(AppLocal.getIntString("label.prodname"), Datas.STRING, Formats.STRING, true, true, true)
);
Table table = new Table(
"PRODUCTS_COM",
new PrimaryKey("ID"),
new Column("PRODUCT"),
new Column("PRODUCT2"));
lpr = row.getListProvider(app.getSession(),
"SELECT COM.ID, COM.PRODUCT, COM.PRODUCT2, P.REFERENCE, P.CODE, P.NAME " +
"FROM PRODUCTS_COM COM, PRODUCTS P " +
"WHERE COM.PRODUCT2 = P.ID AND COM.PRODUCT = ?", filter);
spr = row.getSaveProvider(app.getSession(), table);
editor = new AuxiliarEditor(app, dirty);
}
示例5: init
import com.openbravo.data.model.Row; //导入方法依赖的package包/类
protected void init() {
filter = new AttributeSetFilter();
filter.init(app);
filter.addActionListener(new ReloadActionListener());
row = new Row(
new Field("ID", Datas.STRING, Formats.STRING),
new Field("ATRIBUTESET_ID", Datas.STRING, Formats.STRING),
new Field("ATTRIBUTE_ID", Datas.STRING, Formats.STRING),
new Field(AppLocal.getIntString("label.order"), Datas.INT, Formats.INT, false, true, true),
new Field(AppLocal.getIntString("label.name"), Datas.STRING, Formats.STRING, true, true, true)
);
Table table = new Table(
"ATTRIBUTEUSE",
new PrimaryKey("ID"),
new Column("ATTRIBUTESET_ID"),
new Column("ATTRIBUTE_ID"),
new Column("LINENO"));
lpr = row.getListProvider(app.getSession(),
"SELECT ATTUSE.ID, ATTUSE.ATTRIBUTESET_ID, ATTUSE.ATTRIBUTE_ID, ATTUSE.LINENO, ATT.NAME " +
"FROM ATTRIBUTEUSE ATTUSE, ATTRIBUTE ATT " +
"WHERE ATTUSE.ATTRIBUTE_ID = ATT.ID AND ATTUSE.ATTRIBUTESET_ID = ? ORDER BY LINENO", filter);
spr = row.getSaveProvider(app.getSession(), table);
editor = new AttributeUseEditor(app, dirty);
}