本文整理汇总了Java中org.hibernate.type.StandardBasicTypes.BOOLEAN属性的典型用法代码示例。如果您正苦于以下问题:Java StandardBasicTypes.BOOLEAN属性的具体用法?Java StandardBasicTypes.BOOLEAN怎么用?Java StandardBasicTypes.BOOLEAN使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.hibernate.type.StandardBasicTypes
的用法示例。
在下文中一共展示了StandardBasicTypes.BOOLEAN属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getDataType
public Type getDataType() {
if ( expectedType != null ) {
return expectedType;
}
switch ( getType() ) {
case NUM_INT:
return StandardBasicTypes.INTEGER;
case NUM_FLOAT:
return StandardBasicTypes.FLOAT;
case NUM_LONG:
return StandardBasicTypes.LONG;
case NUM_DOUBLE:
return StandardBasicTypes.DOUBLE;
case NUM_BIG_INTEGER:
return StandardBasicTypes.BIG_INTEGER;
case NUM_BIG_DECIMAL:
return StandardBasicTypes.BIG_DECIMAL;
case QUOTED_STRING:
return StandardBasicTypes.STRING;
case TRUE:
case FALSE:
return StandardBasicTypes.BOOLEAN;
default:
return null;
}
}
示例2: getDataType
@Override
public Type getDataType() {
// logic operators by definition resolve to boolean.
return StandardBasicTypes.BOOLEAN;
}
示例3: getDataType
@Override
public Type getDataType() {
// logic operators by definition resolve to booleans
return StandardBasicTypes.BOOLEAN;
}
示例4: getDataType
public Type getDataType() {
return expectedType == null ? StandardBasicTypes.BOOLEAN : expectedType;
}
示例5: getDataType
public Type getDataType() {
// logic operators by definition resolve to booleans
return StandardBasicTypes.BOOLEAN;
}