本文整理汇总了Java中org.hsqldb.types.LobData类的典型用法代码示例。如果您正苦于以下问题:Java LobData类的具体用法?Java LobData怎么用?Java LobData使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LobData类属于org.hsqldb.types包,在下文中一共展示了LobData类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: adjustLobUsageCount
import org.hsqldb.types.LobData; //导入依赖的package包/类
public void adjustLobUsageCount(Object value, int adjust) {
if (session.isProcessingLog() || session.isProcessingScript()) {
return;
}
if (value == null) {
return;
}
database.lobManager.adjustUsageCount(session,
((LobData) value).getId(),
adjust);
hasLobOps = true;
}
示例2: addLobUsageCount
import org.hsqldb.types.LobData; //导入依赖的package包/类
void addLobUsageCount(Session session, Object[] data) {
if (!hasLobColumn) {
return;
}
for (int j = 0; j < columnCount; j++) {
if (colTypes[j].isLobType()) {
Object value = data[j];
if (value == null) {
continue;
}
session.sessionData.addLobUsageCount(((LobData) value).getId());
}
}
}
示例3: removeLobUsageCount
import org.hsqldb.types.LobData; //导入依赖的package包/类
void removeLobUsageCount(Session session, Object[] data) {
if (!hasLobColumn) {
return;
}
for (int j = 0; j < columnCount; j++) {
if (colTypes[j].isLobType()) {
Object value = data[j];
if (value == null) {
continue;
}
session.sessionData.removeUsageCount(((LobData) value).getId());
}
}
}
示例4: adjustLobUsageCount
import org.hsqldb.types.LobData; //导入依赖的package包/类
public void adjustLobUsageCount(Object value, int adjust) {
if (session.isProcessingLog || session.isProcessingScript) {
return;
}
if (value == null) {
return;
}
database.lobManager.adjustUsageCount(session,
((LobData) value).getId(),
adjust);
hasLobOps = true;
}
示例5: getLength
import org.hsqldb.types.LobData; //导入依赖的package包/类
int getLength(SessionInterface session, Object o) {
int l;
if (o instanceof LobData) {
l = (int) ((LobData) o).length(session);
} else {
l = ((String) o).length();
}
return l;
}