abstract
Object
|
assemble(Serializable cached, SessionImplementor session, Object owner)
Reconstruct the object from its cached "disassembled" state.
|
abstract
void
|
beforeAssemble(Serializable cached, SessionImplementor session)
Called before assembling a query result set from the query cache, to allow batch fetching
of entities missing from the second-level cache.
|
abstract
int
|
compare(Object x, Object y, EntityMode entityMode)
Perform a Comparator style comparison between values
|
abstract
Object
|
deepCopy(Object value, EntityMode entityMode, SessionFactoryImplementor factory)
Return a deep copy of the persistent state, stopping at entities and at
collections.
|
abstract
Serializable
|
disassemble(Object value, SessionImplementor session, Object owner)
Return a cacheable "disassembled" representation of the object.
|
abstract
Object
|
fromXMLNode(Node xml, Mapping factory)
Parse the XML representation of an instance.
|
abstract
int
|
getColumnSpan(Mapping mapping)
How many columns are used to persist this type.
|
abstract
int
|
getHashCode(Object x, EntityMode entityMode)
Get a hash code, consistent with persistence "equality".
|
abstract
int
|
getHashCode(Object x, EntityMode entityMode, SessionFactoryImplementor factory)
Get a hash code, consistent with persistence "equality".
|
abstract
String
|
getName()
Returns the abbreviated name of the type.
|
abstract
Class
|
getReturnedClass()
|
abstract
Type
|
getSemiResolvedType(SessionFactoryImplementor factory)
Get the type of a semi-resolved value.
|
abstract
Object
|
hydrate(ResultSet rs, String[] names, SessionImplementor session, Object owner)
Retrieve an instance of the mapped class, or the identifier of an entity or collection,
from a JDBC resultset.
|
abstract
boolean
|
isAnyType()
Return true if the implementation is castable to AnyType .
|
abstract
boolean
|
isAssociationType()
|
abstract
boolean
|
isCollectionType()
|
abstract
boolean
|
isComponentType()
|
abstract
boolean
|
isDirty(Object oldState, Object currentState, boolean[] checkable, SessionImplementor session)
Should the parent be considered dirty, given both the old and current value?
|
abstract
boolean
|
isDirty(Object old, Object current, SessionImplementor session)
Should the parent be considered dirty, given both the old and current value?
|
abstract
boolean
|
isEntityType()
Return true if the implementation is castable to EntityType .
|
abstract
boolean
|
isEqual(Object x, Object y, EntityMode entityMode)
Compare two instances of the class mapped by this type for persistence "equality" (equality of persistent
state).
|
abstract
boolean
|
isEqual(Object x, Object y, EntityMode entityMode, SessionFactoryImplementor factory)
Compare two instances of the class mapped by this type for persistence "equality" (equality of persistent
state).
|
abstract
boolean
|
isModified(Object dbState, Object currentState, boolean[] checkable, SessionImplementor session)
|
abstract
boolean
|
isMutable()
Are objects of this type mutable.
|
abstract
boolean
|
isSame(Object x, Object y, EntityMode entityMode)
Compare two instances of the class mapped by this type for persistence "equality" (equality of persistent
state) taking a shortcut for entity references.
|
abstract
boolean
|
isXMLElement()
|
abstract
Object
|
nullSafeGet(ResultSet rs, String name, SessionImplementor session, Object owner)
Retrieve an instance of the mapped class from a JDBC resultset.
|
abstract
Object
|
nullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner)
Retrieve an instance of the mapped class from a JDBC resultset.
|
abstract
void
|
nullSafeSet(PreparedStatement st, Object value, int index, boolean[] settable, SessionImplementor session)
Write an instance of the mapped class to a prepared statement, ignoring some columns.
|
abstract
void
|
nullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session)
Write an instance of the mapped class to a prepared statement.
|
abstract
Object
|
replace(Object original, Object target, SessionImplementor session, Object owner, Map copyCache, ForeignKeyDirection foreignKeyDirection)
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.
|
abstract
Object
|
replace(Object original, Object target, SessionImplementor 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.
|
abstract
Object
|
resolve(Object value, SessionImplementor session, Object owner)
Map identifiers to entities or collections.
|
abstract
Object
|
semiResolve(Object value, SessionImplementor session, Object owner)
Given a hydrated, but unresolved value, return a value that may be used to
reconstruct property-ref associations.
|
abstract
void
|
setToXMLNode(Node node, Object value, SessionFactoryImplementor factory)
A representation of the value to be embedded in an XML element.
|
abstract
int[]
|
sqlTypes(Mapping mapping)
Return the JDBC types codes (per java.sql.Types) for the columns mapped by this type.
|
abstract
boolean[]
|
toColumnNullness(Object value, Mapping mapping)
Given an instance of the type, return an array of boolean, indicating
which mapped columns would be null.
|
abstract
String
|
toLoggableString(Object value, SessionFactoryImplementor factory)
A representation of the value to be embedded in a log file.
|