|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.type.AbstractType org.hibernate.type.AbstractLobType
@Deprecated public abstract class AbstractLobType
Constructor Summary | |
---|---|
AbstractLobType()
Deprecated. |
Method Summary | |
---|---|
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,
EntityMode entityMode)
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,
EntityMode entityMode)
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. Retrieve an instance of the mapped class from a JDBC resultset. |
Object |
nullSafeGet(ResultSet rs,
String name,
SessionImplementor session,
Object owner)
Deprecated. Retrieve an instance of the mapped class from a JDBC resultset. |
void |
nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SessionImplementor session)
Deprecated. Write an instance of the mapped class to a prepared statement, ignoring some columns. |
void |
nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session)
Deprecated. Write an instance of the mapped class to a prepared statement. |
protected abstract void |
set(PreparedStatement st,
Object value,
int index,
SessionImplementor session)
Deprecated. |
Methods inherited from class org.hibernate.type.AbstractType |
---|
assemble, beforeAssemble, compare, disassemble, getHashCode, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isEntityType, isEqual, isModified, isSame, isXMLElement, replace, replaceNode, resolve, semiResolve |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.hibernate.type.Type |
---|
deepCopy, fromXMLNode, getReturnedClass, isMutable, replace, setToXMLNode, sqlTypes, toColumnNullness, toLoggableString |
Constructor Detail |
---|
public AbstractLobType()
Method Detail |
---|
public boolean isDirty(Object old, Object current, boolean[] checkable, SessionImplementor session) throws HibernateException
Type
isDirty
in interface Type
old
- 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 boolean isEqual(Object x, Object y, EntityMode entityMode)
Type
isEqual
in interface Type
isEqual
in class AbstractType
x
- The first valuey
- The second valueentityMode
- The entity mode of the values.
public int getHashCode(Object x, EntityMode entityMode)
Type
#hashCode
.
getHashCode
in interface Type
getHashCode
in class AbstractType
x
- The value for which to retrieve a hash codeentityMode
- The entity mode of the value.
public String getName()
Type
getName
in interface Type
public int getColumnSpan(Mapping mapping) throws MappingException
Type
sqlTypes(mapping).length
getColumnSpan
in interface Type
mapping
- The mapping object :/
MappingException
- Generally indicates an issue accessing the passed mapping object.protected abstract Object get(ResultSet rs, String name) throws SQLException
SQLException
public Object nullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner) throws HibernateException, SQLException
Type
nullSafeGet
in interface Type
names
- the column namesowner
- the parent entity
HibernateException
SQLException
alternative, 2-phase property initialization
public Object nullSafeGet(ResultSet rs, String name, SessionImplementor session, Object owner) throws HibernateException, SQLException
Type
nullSafeGet
in interface Type
name
- the column nameowner
- the parent entity
HibernateException
SQLException
public void nullSafeSet(PreparedStatement st, Object value, int index, boolean[] settable, SessionImplementor session) throws HibernateException, SQLException
Type
nullSafeSet
in interface Type
value
- the object to writeindex
- statement parameter indexsettable
- an array indicating which columns to ignore
HibernateException
SQLException
protected abstract void set(PreparedStatement st, Object value, int index, SessionImplementor session) throws SQLException
SQLException
public void nullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session) throws HibernateException, SQLException
Type
nullSafeSet
in interface Type
value
- the object to writeindex
- statement parameter index
HibernateException
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |