本文整理匯總了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;
}