本文整理汇总了Java中org.hsqldb.Table.getRowStore方法的典型用法代码示例。如果您正苦于以下问题:Java Table.getRowStore方法的具体用法?Java Table.getRowStore怎么用?Java Table.getRowStore使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.hsqldb.Table
的用法示例。
在下文中一共展示了Table.getRowStore方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: RowSetNavigatorDataTable
import org.hsqldb.Table; //导入方法依赖的package包/类
public RowSetNavigatorDataTable(Session session, Table table) {
super(session);
maxMemoryRowCount = session.getResultMemoryRowCount();
this.table = table;
visibleColumnCount = table.getColumnCount();
mainIndex = table.getPrimaryIndex();
fullIndex = table.getFullIndex(session);
store = table.getRowStore(session);
this.size = (int) mainIndex.size(session, store);
reset();
}
示例2: RowSetNavigatorDataTable
import org.hsqldb.Table; //导入方法依赖的package包/类
public RowSetNavigatorDataTable(Session session, Table table) {
super(session);
this.session = session;
maxMemoryRowCount = session.getResultMemoryRowCount();
this.table = table;
visibleColumnCount = table.getColumnCount();
mainIndex = table.getPrimaryIndex();
fullIndex = table.getFullIndex(session);
store = table.getRowStore(session);
this.size = (int) mainIndex.size(session, store);
reset();
}
示例3: addProcRows
import org.hsqldb.Table; //导入方法依赖的package包/类
/**
* Inserts a set of procedure description rows into the <code>Table</code>
* object specified by the <code>t</code> argument. <p>
*
* @param t the table into which the specified rows will eventually
* be inserted
* @param l the list of procedure name aliases to which the specified column
* values apply
* @param cat the procedure catalog name
* @param schem the procedure schema name
* @param pName the base (non-alias) procedure name
* @param ip the procedure input parameter count
* @param op the procedure output parameter count
* @param rs the procedure result column count
* @param remark a human-readable remark regarding the procedure
* @param pType the procedure type code, indicating whether it is a
* function, procedure, or uncatagorized (i.e. returns
* a value, does not return a value, or it is unknown
* if it returns a value)
* @param specificName the specific name of the procedure
* (typically but not limited to a
* fully qualified Java Method name and signature)
* @param origin origin of the procedure, e.g.
* (["BUILTIN" | "USER DEFINED"] "ROUTINE" | "TRIGGER") | "ALIAS", etc.
*
*/
protected void addProcRows(Session session, Table t, HsqlArrayList l,
String cat, String schem, String pName,
Integer ip, Integer op, Integer rs,
String remark, Integer pType,
String specificName, String origin) {
PersistentStore store = t.getRowStore(session);
// column number mappings
final int icat = 0;
final int ischem = 1;
final int ipname = 2;
final int iinput_parms = 3;
final int ioutput_parms = 4;
final int iresult_sets = 5;
final int iremark = 6;
final int iptype = 7;
final int isn = 8;
final int iporigin = 9;
Object[] row = t.getEmptyRowData();
row[icat] = cat;
row[ischem] = schem;
row[ipname] = pName;
row[iinput_parms] = ip;
row[ioutput_parms] = op;
row[iresult_sets] = rs;
row[iremark] = remark;
row[iptype] = pType;
row[iporigin] = origin;
row[isn] = specificName;
t.insertSys(session, store, row);
if (l != null) {
int size = l.size();
for (int i = 0; i < size; i++) {
row = t.getEmptyRowData();
pName = (String) l.get(i);
row[icat] = cat;
row[ischem] = schem;
row[ipname] = pName;
row[iinput_parms] = ip;
row[ioutput_parms] = op;
row[iresult_sets] = rs;
row[iremark] = remark;
row[iptype] = pType;
row[iporigin] = "ALIAS";
row[isn] = specificName;
t.insertSys(session, store, row);
}
}
}