| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectpublic class NumericBooleanTypeextends BooleanTypeinterger database values to boolean java values. Zero is considered false;
NULL maps to getDefaultValue(); any other value is considered true.
getName()Method Summary | |
Object |
|
String |
|
String |
|
void |
|
int |
|
Methods inherited from class org.hibernate.type.BooleanType | |
fromStringValue, get, getDefaultValue, getName, getPrimitiveClass, getReturnedClass, objectToSQLString, set, sqlType, stringToObject | |
Methods inherited from class org.hibernate.type.PrimitiveType | |
getDefaultValue, getPrimitiveClass, toString | |
Methods inherited from class org.hibernate.type.ImmutableType | |
deepCopy, isMutable, replace | |
Methods inherited from class org.hibernate.type.NullableType | |
fromStringValue, fromXMLNode, fromXMLString, get, getColumnSpan, isDirty, isEqual, isEqual, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, nullSafeSet, nullSafeToString, set, setToXMLNode, sqlType, sqlTypes, toColumnNullness, toLoggableString, toString, toXMLString | |
Methods inherited from class org.hibernate.type.AbstractType | |
assemble, beforeAssemble, compare, disassemble, getHashCode, getHashCode, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isEntityType, isEqual, isEqual, isModified, isSame, isXMLElement, replace, replaceNode, resolve, semiResolve | |
public Object get(ResultSet rs,
String name)
throws SQLException
- Overrides:
- get in interface BooleanType
public String getName()
This type's name is numeric_boolean
- Overrides:
- getName in interface BooleanType
public String objectToSQLString(Object value,
Dialect dialect)
throws Exception
- Specified by:
- objectToSQLString in interface LiteralType
- Overrides:
- objectToSQLString in interface BooleanType
public void set(PreparedStatement st,
Object value,
int index)
throws SQLException
- Overrides:
- set in interface BooleanType