本文整理了Java中org.jooq.DataType.isDateTime()
方法的一些代码示例,展示了DataType.isDateTime()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataType.isDateTime()
方法的具体详情如下:
包路径:org.jooq.DataType
类名称:DataType
方法名:isDateTime
[英]Whether this data type is any date or time type.
This applies to any of these types.
代码示例来源:origin: com.torodb.torod.backends/common
public boolean isDateTime() {
return dataType.isDateTime();
}
代码示例来源:origin: org.jooq/jooq-codegen
private DataType<?> mapJavaTimeTypes(DataType<?> dataType) {
DataType<?> result = dataType;
// [#4429] [#5713] This logic should be implemented in Configuration
if (dataType.isDateTime() && generateJavaTimeTypes) {
if (dataType.getType() == Date.class)
result = SQLDataType.LOCALDATE;
else if (dataType.getType() == Time.class)
result = SQLDataType.LOCALTIME;
else if (dataType.getType() == Timestamp.class)
result = SQLDataType.LOCALDATETIME;
}
return result;
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics
boolean standardOverlaps = type0.isDateTime() && type1.isTemporal();
boolean intervalOverlaps = type0.isDateTime() && (type1.isInterval() || type1.isNumeric());
代码示例来源:origin: org.jooq/jooq
boolean standardOverlaps = type0.isDateTime() && type1.isTemporal();
boolean intervalOverlaps = type0.isDateTime() && (type1.isInterval() || type1.isNumeric());
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics
lhs.getDataType().isDateTime() &&
(rhs.get(0).getDataType().isNumeric() ||
rhs.get(0).getDataType().isInterval())) {
代码示例来源:origin: org.jooq/jooq
lhs.getDataType().isDateTime() &&
(rhs.get(0).getDataType().isNumeric() ||
rhs.get(0).getDataType().isInterval()))
内容来源于网络,如有侵权,请联系作者删除!