本文整理汇总了Java中org.hsqldb.navigator.RowSetNavigatorClient类的典型用法代码示例。如果您正苦于以下问题:Java RowSetNavigatorClient类的具体用法?Java RowSetNavigatorClient怎么用?Java RowSetNavigatorClient使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RowSetNavigatorClient类属于org.hsqldb.navigator包,在下文中一共展示了RowSetNavigatorClient类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getInsertValuesNavigator
import org.hsqldb.navigator.RowSetNavigatorClient; //导入依赖的package包/类
RowSetNavigator getInsertValuesNavigator(Session session) {
Type[] colTypes = baseTable.getColumnTypes();
//
Expression[] list = insertExpression.nodes;
RowSetNavigatorClient newData = new RowSetNavigatorClient(list.length);
for (int j = 0; j < list.length; j++) {
Expression[] rowArgs = list[j].nodes;
Object[] data = getInsertData(session, colTypes, rowArgs);
newData.add(data);
}
return newData;
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:18,代码来源:StatementInsert.java
示例2: newDataHeadResult
import org.hsqldb.navigator.RowSetNavigatorClient; //导入依赖的package包/类
public static Result newDataHeadResult(SessionInterface session,
Result source, int offset,
int count) {
if (offset + count > source.navigator.getSize()) {
count = source.navigator.getSize() - offset;
}
Result result = newResult(ResultConstants.DATAHEAD);
result.metaData = source.metaData;
result.navigator = new RowSetNavigatorClient(source.navigator, offset,
count);
result.navigator.setId(source.navigator.getId());
result.setSession(session);
result.rsProperties = source.rsProperties;
result.fetchSize = source.fetchSize;
return result;
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:23,代码来源:Result.java
示例3: newDataRowsResult
import org.hsqldb.navigator.RowSetNavigatorClient; //导入依赖的package包/类
public static Result newDataRowsResult(Result source, int offset,
int count) {
if (offset + count > source.navigator.getSize()) {
count = source.navigator.getSize() - offset;
}
Result result = newResult(ResultConstants.DATAROWS);
result.id = source.id;
result.metaData = source.metaData;
result.navigator = new RowSetNavigatorClient(source.navigator, offset,
count);
return result;
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:17,代码来源:Result.java
示例4: getRows
import org.hsqldb.navigator.RowSetNavigatorClient; //导入依赖的package包/类
public synchronized RowSetNavigatorClient getRows(long navigatorId,
int offset, int size) {
try {
resultOut.setResultType(ResultConstants.REQUESTDATA);
resultOut.setResultId(navigatorId);
resultOut.setUpdateCount(offset);
resultOut.setFetchSize(size);
Result result = execute(resultOut);
return (RowSetNavigatorClient) result.getNavigator();
} catch (Throwable e) {
throw Error.error(ErrorCode.X_08006, e.toString());
}
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:17,代码来源:ClientConnection.java
示例5: setPreparedExecuteProperties
import org.hsqldb.navigator.RowSetNavigatorClient; //导入依赖的package包/类
/**
* For SQLEXECUTE results
* The parameters are set by this method as the Result is reused
*/
public void setPreparedExecuteProperties(Object[] parameterValues,
int maxRows, int fetchSize) {
mode = ResultConstants.EXECUTE;
if (navigator.getSize() == 1) {
((RowSetNavigatorClient) navigator).setData(0, parameterValues);
} else {
navigator.clear();
navigator.add(parameterValues);
}
updateCount = maxRows;
this.fetchSize = fetchSize;
}
开发者ID:s-store,项目名称:sstore-soft,代码行数:20,代码来源:Result.java
示例6: newDataHeadResult
import org.hsqldb.navigator.RowSetNavigatorClient; //导入依赖的package包/类
public static Result newDataHeadResult(SessionInterface session,
Result source, int offset,
int count) {
if (offset + count > source.navigator.getSize()) {
count = source.navigator.getSize() - offset;
}
Result result = newResult(ResultConstants.DATAHEAD);
result.metaData = source.metaData;
result.navigator = new RowSetNavigatorClient(source.navigator, offset,
count);
result.navigator.setId(source.navigator.getId());
result.setSession(session);
result.rsConcurrency = source.rsConcurrency;
result.rsHoldability = source.rsHoldability;
result.rsScrollability = source.rsScrollability;
result.fetchSize = source.fetchSize;
return result;
}
开发者ID:s-store,项目名称:sstore-soft,代码行数:25,代码来源:Result.java
示例7: getRowSetSlice
import org.hsqldb.navigator.RowSetNavigatorClient; //导入依赖的package包/类
RowSetNavigatorClient getRowSetSlice(long id, int offset, int count) {
Result result = (Result) resultMap.get(id);
RowSetNavigator source = result.getNavigator();
if (offset + count > source.getSize()) {
count = source.getSize() - offset;
}
return new RowSetNavigatorClient(source, offset, count);
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:12,代码来源:SessionData.java
示例8: getInsertSelectNavigator
import org.hsqldb.navigator.RowSetNavigatorClient; //导入依赖的package包/类
RowSetNavigator getInsertSelectNavigator(Session session) {
Type[] colTypes = baseTable.getColumnTypes();
int[] columnMap = insertColumnMap;
//
Result result = queryExpression.getResult(session, 0);
RowSetNavigator nav = result.initialiseNavigator();
Type[] sourceTypes = result.metaData.columnTypes;
RowSetNavigatorClient newData =
new RowSetNavigatorClient(nav.getSize());
while (nav.hasNext()) {
Object[] data = baseTable.getNewRowData(session);
Object[] sourceData = nav.getNext();
for (int i = 0; i < columnMap.length; i++) {
int j = columnMap[i];
if (j == this.overrideUserValue) {
continue;
}
Type sourceType = sourceTypes[i];
data[j] = colTypes[j].convertToType(session, sourceData[i],
sourceType);
}
newData.add(data);
}
return newData;
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:35,代码来源:StatementInsert.java
示例9: getInsertSelectNavigator
import org.hsqldb.navigator.RowSetNavigatorClient; //导入依赖的package包/类
RowSetNavigator getInsertSelectNavigator(Session session) {
Type[] colTypes = baseTable.getColumnTypes();
int[] columnMap = insertColumnMap;
//
Result result = queryExpression.getResult(session, 0);
RowSetNavigator nav = result.initialiseNavigator();
Type[] sourceTypes = result.metaData.columnTypes;
RowSetNavigatorClient newData = new RowSetNavigatorClient(2);
while (nav.hasNext()) {
Object[] data = baseTable.getNewRowData(session);
Object[] sourceData = (Object[]) nav.getNext();
for (int i = 0; i < columnMap.length; i++) {
int j = columnMap[i];
Type sourceType = sourceTypes[i];
data[j] = colTypes[j].convertToType(session, sourceData[i],
sourceType);
}
newData.add(data);
}
return newData;
}
开发者ID:s-store,项目名称:sstore-soft,代码行数:29,代码来源:StatementInsert.java
示例10: getInsertValuesNavigator
import org.hsqldb.navigator.RowSetNavigatorClient; //导入依赖的package包/类
RowSetNavigator getInsertValuesNavigator(Session session) {
Type[] colTypes = baseTable.getColumnTypes();
int[] columnMap = insertColumnMap;
//
Expression[] list = insertExpression.nodes;
RowSetNavigatorClient newData = new RowSetNavigatorClient(list.length);
for (int j = 0; j < list.length; j++) {
Expression[] rowArgs = list[j].nodes;
Object[] data = baseTable.getNewRowData(session);
session.sessionData.startRowProcessing();
for (int i = 0; i < rowArgs.length; i++) {
Expression e = rowArgs[i];
int colIndex = columnMap[i];
if (e.getType() == OpTypes.DEFAULT) {
if (baseTable.identityColumn == colIndex) {
continue;
}
data[colIndex] =
baseTable.colDefaults[colIndex].getValue(session);
continue;
}
data[colIndex] = colTypes[colIndex].convertToType(session,
e.getValue(session), e.getDataType());
}
newData.add(data);
}
return newData;
}
开发者ID:s-store,项目名称:sstore-soft,代码行数:40,代码来源:StatementInsert.java
示例11: setPreparedResultUpdateProperties
import org.hsqldb.navigator.RowSetNavigatorClient; //导入依赖的package包/类
/**
* For UPDATE_RESULT results
* The parameters are set by this method as the Result is reused
*/
public void setPreparedResultUpdateProperties(Object[] parameterValues) {
if (navigator.getSize() == 1) {
((RowSetNavigatorClient) navigator).setData(0, parameterValues);
} else {
navigator.clear();
navigator.add(parameterValues);
}
}
开发者ID:s-store,项目名称:sstore-soft,代码行数:14,代码来源:Result.java
示例12: getInsertSelectNavigator
import org.hsqldb.navigator.RowSetNavigatorClient; //导入依赖的package包/类
RowSetNavigator getInsertSelectNavigator(Session session) {
Type[] colTypes = baseTable.getColumnTypes();
int[] columnMap = insertColumnMap;
//
Result result = queryExpression.getResult(session, 0);
RowSetNavigator nav = result.initialiseNavigator();
Type[] sourceTypes = result.metaData.columnTypes;
RowSetNavigatorClient newData = new RowSetNavigatorClient(2);
while (nav.hasNext()) {
Object[] data = baseTable.getNewRowData(session);
Object[] sourceData = (Object[]) nav.getNext();
for (int i = 0; i < columnMap.length; i++) {
int j = columnMap[i];
if (j == this.overrideUserValue) {
continue;
}
Type sourceType = sourceTypes[i];
data[j] = colTypes[j].convertToType(session, sourceData[i],
sourceType);
}
newData.add(data);
}
return newData;
}
开发者ID:Julien35,项目名称:dev-courses,代码行数:34,代码来源:StatementInsert.java
示例13: getRows
import org.hsqldb.navigator.RowSetNavigatorClient; //导入依赖的package包/类
public RowSetNavigatorClient getRows(long navigatorId, int offset,
int blockSize) {
return sessionData.getRowSetSlice(navigatorId, offset, blockSize);
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:5,代码来源:Session.java
示例14: newColumnResult
import org.hsqldb.navigator.RowSetNavigatorClient; //导入依赖的package包/类
private Result newColumnResult(long position,
int count) throws SQLException {
if (!JDBCClobClient.isInLimits(data.length, position, count)) {
throw JDBCUtil.outOfRangeArgument();
}
Type[] types = new Type[2];
types[0] = Type.SQL_INTEGER;
types[1] = elementType;
ResultMetaData meta = ResultMetaData.newSimpleResultMetaData(types);
meta.columnLabels = new String[] {
"C1", "C2"
};
meta.colIndexes = new int[] {
-1, -1
};
meta.columns = new ColumnBase[2];
for (int i = 0; i < meta.columns.length; i++) {
ColumnBase column = new ColumnBase("", "", "", "");
column.setType(types[i]);
meta.columns[i] = column;
}
RowSetNavigatorClient navigator = new RowSetNavigatorClient();
for (int i = (int) position; i < position + count; i++) {
Object[] rowData = new Object[2];
rowData[0] = Integer.valueOf(i + 1);
rowData[1] = data[i];
navigator.add(rowData);
}
Result result = Result.newDataResult(meta);
result.setNavigator(navigator);
return result;
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:48,代码来源:JDBCArrayBasic.java
注:本文中的org.hsqldb.navigator.RowSetNavigatorClient类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论