|
||||||||||
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
public abstract class AbstractLobType
Constructor Summary | |
---|---|
AbstractLobType()
|
Method Summary | |
---|---|
protected abstract Object |
get(ResultSet rs,
String name)
|
int |
getColumnSpan(Mapping mapping)
How many columns are used to persist this type. |
int |
getHashCode(Object x,
EntityMode entityMode)
Get a hashcode, consistent with persistence "equality" |
String |
getName()
Returns the abbreviated name of the type. |
boolean |
isDirty(Object old,
Object current,
boolean[] checkable,
SessionImplementor session)
Should the parent be considered dirty, given both the old and current field or element value? |
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. |
Object |
nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner)
Retrieve an instance of the mapped class from a JDBC resultset. |
Object |
nullSafeGet(ResultSet rs,
String name,
SessionImplementor session,
Object owner)
Retrieve an instance of the mapped class from a JDBC resultset. |
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. |
void |
nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session)
Write an instance of the mapped class to a prepared statement. |
protected abstract void |
set(PreparedStatement st,
Object value,
int index,
SessionImplementor session)
|
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
- which columns are actually updatable
HibernateException
public boolean isEqual(Object x, Object y, EntityMode entityMode)
Type
isEqual
in interface Type
isEqual
in class AbstractType
public int getHashCode(Object x, EntityMode entityMode)
Type
getHashCode
in interface Type
getHashCode
in class AbstractType
public String getName()
Type
getName
in interface Type
public int getColumnSpan(Mapping mapping) throws MappingException
Type
getColumnSpan
in interface Type
MappingException
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 |