本文整理汇总了Java中org.hsqldb.HsqlDateTime.timestampValue方法的典型用法代码示例。如果您正苦于以下问题:Java HsqlDateTime.timestampValue方法的具体用法?Java HsqlDateTime.timestampValue怎么用?Java HsqlDateTime.timestampValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.hsqldb.HsqlDateTime
的用法示例。
在下文中一共展示了HsqlDateTime.timestampValue方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readTimestamp
import org.hsqldb.HsqlDateTime; //导入方法依赖的package包/类
protected java.sql.Timestamp readTimestamp()
throws IOException, HsqlException {
String s = readString();
if (s == null) {
return null;
}
s = s.trim();
if (s.length() == 0) {
return null;
}
try {
return java.sql.Timestamp.valueOf(s);
} catch (IllegalArgumentException e) {
return HsqlDateTime.timestampValue(s);
}
}
示例2: readTimestamp
import org.hsqldb.HsqlDateTime; //导入方法依赖的package包/类
protected java.sql.Timestamp readTimestamp()
throws IOException, HsqlException {
return HsqlDateTime.timestampValue(readLong(), readInt());
}
示例3: readTimestamp
import org.hsqldb.HsqlDateTime; //导入方法依赖的package包/类
protected Timestamp readTimestamp() throws IOException, HsqlException {
String s = readString();
if (s == null) {
return null;
}
s = s.trim();
if (s.length() == 0) {
return null;
}
return HsqlDateTime.timestampValue(s);
}
示例4: readTimestamp
import org.hsqldb.HsqlDateTime; //导入方法依赖的package包/类
protected Timestamp readTimestamp() throws IOException, HsqlException {
return HsqlDateTime.timestampValue(readLong(), readInt());
}
示例5: readTimestamp
import org.hsqldb.HsqlDateTime; //导入方法依赖的package包/类
protected Timestamp readTimestamp() throws IOException, HsqlException {
String s = readField();
if (s == null) {
return null;
}
return HsqlDateTime.timestampValue(s);
}