本文整理汇总了Java中org.hsqldb.navigator.RowSetNavigator.next方法的典型用法代码示例。如果您正苦于以下问题:Java RowSetNavigator.next方法的具体用法?Java RowSetNavigator.next怎么用?Java RowSetNavigator.next使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.hsqldb.navigator.RowSetNavigator
的用法示例。
在下文中一共展示了RowSetNavigator.next方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: registerLobForResult
import org.hsqldb.navigator.RowSetNavigator; //导入方法依赖的package包/类
public void registerLobForResult(Result result) {
RowSetNavigator navigator = result.getNavigator();
if (navigator == null) {
registerLobsForRow((Object[]) result.valueData);
} else {
while (navigator.next()) {
Object[] data = navigator.getCurrent();
registerLobsForRow(data);
}
navigator.reset();
}
resultLobs.clear();
}
示例2: deleteRows
import org.hsqldb.navigator.RowSetNavigator; //导入方法依赖的package包/类
void deleteRows(Session session, Table table, RowSetNavigator oldRows) {
while (oldRows.hasNext()) {
oldRows.next();
Row row = oldRows.getCurrentRow();
if (!row.isDeleted(session)) {
table.deleteNoRefCheck(session, row);
}
}
}
示例3: getNewLobID
import org.hsqldb.navigator.RowSetNavigator; //导入方法依赖的package包/类
private Long getNewLobID() {
Result result = getNextLobId.execute(sysLobSession);
if (result.isError()) {
return Long.valueOf(0);
}
RowSetNavigator navigator = result.getNavigator();
boolean next = navigator.next();
if (!next) {
navigator.release();
return Long.valueOf(0);
}
Object[] data = navigator.getCurrent();
navigator.release();
return (Long) data[0];
}
示例4: getNewLobID
import org.hsqldb.navigator.RowSetNavigator; //导入方法依赖的package包/类
private long getNewLobID(Session session) {
Result result = getNextLobId.execute(session);
if (result.isError()) {
return 0;
}
RowSetNavigator navigator = result.getNavigator();
boolean next = navigator.next();
if (!next) {
navigator.close();
return 0;
}
Object[] data = navigator.getCurrent();
return ((Long) data[0]).longValue();
}
示例5: getLobHeader
import org.hsqldb.navigator.RowSetNavigator; //导入方法依赖的package包/类
private Object[] getLobHeader(long lobID) {
ResultMetaData meta = getLob.getParametersMetaData();
Object[] params = new Object[meta.getColumnCount()];
params[0] = ValuePool.getLong(lobID);
sysLobSession.sessionContext.pushDynamicArguments(params);
Result result = getLob.execute(sysLobSession);
sysLobSession.sessionContext.pop();
if (result.isError()) {
throw result.getException();
}
RowSetNavigator navigator = result.getNavigator();
boolean next = navigator.next();
Object[] data = null;
if (next) {
data = navigator.getCurrent();
}
navigator.release();
return data;
}
示例6: getLobCount
import org.hsqldb.navigator.RowSetNavigator; //导入方法依赖的package包/类
public int getLobCount() {
writeLock.lock();
try {
sysLobSession.sessionContext.pushDynamicArguments(new Object[]{});
Result result = getLobCount.execute(sysLobSession);
sysLobSession.sessionContext.pop();
RowSetNavigator navigator = result.getNavigator();
boolean next = navigator.next();
if (!next) {
navigator.release();
return 0;
}
Object[] data = navigator.getCurrent();
return ((Number) data[0]).intValue();
} finally {
writeLock.unlock();
}
}
示例7: getLobHeader
import org.hsqldb.navigator.RowSetNavigator; //导入方法依赖的package包/类
private Object[] getLobHeader(Session session, long lobID) {
ResultMetaData meta = getLob.getParametersMetaData();
Object params[] = new Object[meta.getColumnCount()];
params[0] = Long.valueOf(lobID);
session.sessionContext.pushDynamicArguments(params);
Result result = getLob.execute(session);
session.sessionContext.popDynamicArguments();
if (result.isError()) {
return null;
}
RowSetNavigator navigator = result.getNavigator();
boolean next = navigator.next();
if (!next) {
navigator.close();
return null;
}
Object[] data = navigator.getCurrent();
return data;
}
示例8: getLobHeader
import org.hsqldb.navigator.RowSetNavigator; //导入方法依赖的package包/类
private Object[] getLobHeader(long lobID) {
ResultMetaData meta = getLob.getParametersMetaData();
Object params[] = new Object[meta.getColumnCount()];
params[0] = ValuePool.getLong(lobID);
sysLobSession.sessionContext.pushDynamicArguments(params);
Result result = getLob.execute(sysLobSession);
sysLobSession.sessionContext.pop();
if (result.isError()) {
throw result.getException();
}
RowSetNavigator navigator = result.getNavigator();
boolean next = navigator.next();
Object[] data = null;
if (next) {
data = navigator.getCurrent();
}
navigator.release();
return data;
}