@Deprecated public abstract class AbstractLobType extends AbstractType implements Serializable
LEGACY_DEFAULT_SIZE, LEGACY_DICTATED_SIZE| Constructor and Description |
|---|
AbstractLobType()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Size[] |
defaultSizes(Mapping mapping)
Deprecated.
Defines the column sizes to use according to this type if the user did not explicitly say (and if no
Type.dictatedSizes(org.hibernate.engine.spi.Mapping) were given). |
Size[] |
dictatedSizes(Mapping mapping)
Deprecated.
Return the column sizes dictated by this type.
|
protected abstract Object |
get(ResultSet rs,
String name)
Deprecated.
|
int |
getColumnSpan(Mapping mapping)
Deprecated.
How many columns are used to persist this type.
|
int |
getHashCode(Object x)
Deprecated.
Get a hash code, consistent with persistence "equality".
|
String |
getName()
Deprecated.
Returns the abbreviated name of the type.
|
boolean |
isDirty(Object old,
Object current,
boolean[] checkable,
SessionImplementor session)
Deprecated.
Should the parent be considered dirty, given both the old and current value?
|
boolean |
isEqual(Object x,
Object y)
Deprecated.
Compare two instances of the class mapped by this type for persistence "equality" (equality of persistent
state).
|
Object |
nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner)
Deprecated.
Extract a value of the
mapped class from the JDBC result set. |
Object |
nullSafeGet(ResultSet rs,
String name,
SessionImplementor session,
Object owner)
Deprecated.
Extract a value of the
mapped class from the JDBC result set. |
void |
nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SessionImplementor session)
Deprecated.
Bind a value represented by an instance of the
mapped class to the JDBC prepared
statement, ignoring some columns as dictated by the 'settable' parameter. |
void |
nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session)
Deprecated.
Bind a value represented by an instance of the
mapped class to the JDBC prepared
statement. |
protected abstract void |
set(PreparedStatement st,
Object value,
int index,
SessionImplementor session)
Deprecated.
|
assemble, beforeAssemble, compare, disassemble, getHashCode, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isEntityType, isEqual, isModified, isSame, isXMLElement, replace, replaceNode, resolve, semiResolveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeepCopy, fromXMLNode, getReturnedClass, isMutable, replace, setToXMLNode, sqlTypes, toColumnNullness, toLoggableStringpublic boolean isDirty(Object old, Object current, boolean[] checkable, SessionImplementor session) throws HibernateException
TypeisDirty in interface Typeold - the old valuecurrent - the current valuecheckable - An array of booleans indicating which columns making up the value are actually checkablesession - The session from which the request originated.HibernateException - A problem occurred performing the checkingpublic Size[] dictatedSizes(Mapping mapping) throws MappingException
Typechar/Character would
have a dictated length limit of 1; for a string-based UUID would have a size limit of 36; etc.
NOTE: The number of elements in this array matches the return from Type.getColumnSpan(org.hibernate.engine.spi.Mapping).dictatedSizes in interface Typemapping - The mapping object :/MappingException - Generally indicates an issue accessing the passed mapping object.public Size[] defaultSizes(Mapping mapping) throws MappingException
TypeType.dictatedSizes(org.hibernate.engine.spi.Mapping) were given).
NOTE: The number of elements in this array matches the return from Type.getColumnSpan(org.hibernate.engine.spi.Mapping).defaultSizes in interface Typemapping - The mapping object :/MappingException - Generally indicates an issue accessing the passed mapping object.public boolean isEqual(Object x, Object y)
TypeisEqual in interface TypeisEqual in class AbstractTypex - The first valuey - The second valuepublic int getHashCode(Object x)
TypehashCode.getHashCode in interface TypegetHashCode in class AbstractTypex - The value for which to retrieve a hash codepublic String getName()
Typepublic int getColumnSpan(Mapping mapping) throws MappingException
TypesqlTypes(mapping).lengthgetColumnSpan in interface Typemapping - The mapping object :/MappingException - Generally indicates an issue accessing the passed mapping object.protected abstract Object get(ResultSet rs, String name) throws SQLException
SQLExceptionpublic Object nullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner) throws HibernateException, SQLException
Typemapped class from the JDBC result set. Implementors
should handle possibility of null values.nullSafeGet in interface Typers - The result set from which to extract value.names - the column names making up this type value (use to read from result set)session - The originating sessionowner - the parent entityHibernateException - An error from HibernateSQLException - An error from the JDBC driveralternative, 2-phase property initializationpublic Object nullSafeGet(ResultSet rs, String name, SessionImplementor session, Object owner) throws HibernateException, SQLException
Typemapped class from the JDBC result set. Implementors
should handle possibility of null values. This form might be called if the type is known to be a
single-column type.nullSafeGet in interface Typers - The result set from which to extract value.name - the column name making up this type value (use to read from result set)session - The originating sessionowner - the parent entityHibernateException - An error from HibernateSQLException - An error from the JDBC driverpublic void nullSafeSet(PreparedStatement st, Object value, int index, boolean[] settable, SessionImplementor session) throws HibernateException, SQLException
Typemapped class to the JDBC prepared
statement, ignoring some columns as dictated by the 'settable' parameter. Implementors should handle the
possibility of null values. A multi-column type should bind parameters starting from index.nullSafeSet in interface Typest - The JDBC prepared statement to which to bindvalue - the object to writeindex - starting parameter bind indexsettable - an array indicating which columns to bind/ignoresession - The originating sessionHibernateException - An error from HibernateSQLException - An error from the JDBC driverprotected abstract void set(PreparedStatement st, Object value, int index, SessionImplementor session) throws SQLException
SQLExceptionpublic void nullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session) throws HibernateException, SQLException
Typemapped class to the JDBC prepared
statement. Implementors should handle possibility of null values. A multi-column type should bind parameters
starting from index.nullSafeSet in interface Typest - The JDBC prepared statement to which to bindvalue - the object to writeindex - starting parameter bind indexsession - The originating sessionHibernateException - An error from HibernateSQLException - An error from the JDBC driverCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.