Example usage for Java org.hibernate.type Type fields, constructors, methods, implement or subclass
The text is from its open source code.
Serializable | disassemble(Object value, SharedSessionContractImplementor session, Object owner) Return a disassembled representation of the object. |
int | getColumnSpan(Mapping mapping) How many columns are used to persist this type. |
int | getHashCode(Object x, SessionFactoryImplementor factory) Get a hash code, consistent with persistence "equality". |
String | getName() Returns the abbreviated name of the type. |
Class | getReturnedClass() The class returned by #nullSafeGet methods. |
Type | getSemiResolvedType(SessionFactoryImplementor factory) As part of 2-phase loading, when we perform resolving what is the resolved type for this type? |
boolean | isAnyType() Return true if the implementation is castable to AnyType . |
boolean | isAssociationType() Return true if the implementation is castable to AssociationType . |
boolean | isCollectionType() Return true if the implementation is castable to CollectionType . |
boolean | isComponentType() Return true if the implementation is castable to CompositeType . |
boolean | isDirty(Object old, Object current, SharedSessionContractImplementor session) Should the parent be considered dirty, given both the old and current value? |
boolean | isEntityType() Return true if the implementation is castable to EntityType . |
boolean | isModified(Object dbState, Object currentState, boolean[] checkable, SharedSessionContractImplementor session) Has the value been modified compared to the current database state? |
Object | replace(Object original, Object target, SharedSessionContractImplementor session, Object owner, Map copyCache) During merge, replace the existing (target) value in the entity we are merging to with a new (original) value from the detached entity we are merging. |
int[] | sqlTypes(Mapping mapping) Return the JDBC types codes (per java.sql.Types ) for the columns mapped by this type. |