|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hibernate.type.AbstractType net.sf.hibernate.type.NullableType
Superclass of single-column nullable types.
Constructor Summary | |
NullableType()
|
Method Summary | |
Object |
deepCopy(Object value)
Return a deep copy of the persistent state, stopping at entities and at collections. |
abstract Object |
deepCopyNotNull(Object value)
|
Object |
fromString(String xml)
Parse the XML representation of an instance. |
abstract Object |
fromStringValue(String xml)
|
abstract Object |
get(ResultSet rs,
String name)
|
int |
getColumnSpan(Mapping session)
How many columns are used to persist this type. |
Object |
nullSafeGet(ResultSet rs,
String name)
|
Object |
nullSafeGet(ResultSet rs,
String[] names)
|
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)
|
void |
nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session)
Write an instance of the mapped class to a prepared statement. |
abstract void |
set(PreparedStatement st,
Object value,
int index)
|
abstract int |
sqlType()
|
int[] |
sqlTypes(Mapping session)
Return the SQL type codes for the columns mapped by this type. |
abstract String |
toString(Object value)
|
String |
toString(Object value,
SessionFactoryImplementor pc)
A representation of the value to be embedded in an XML element. |
Methods inherited from class net.sf.hibernate.type.AbstractType |
assemble, copy, disassemble, equals, hashCode, hydrate, isAssociationType, isComponentType, isDirty, isEntityType, isModified, isObjectType, isPersistentCollectionType, resolveIdentifier |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.hibernate.type.Type |
equals, getName, getReturnedClass, hasNiceEquals, isMutable |
Constructor Detail |
public NullableType()
Method Detail |
public abstract Object get(ResultSet rs, String name) throws HibernateException, SQLException
HibernateException
SQLException
public abstract void set(PreparedStatement st, Object value, int index) throws HibernateException, SQLException
HibernateException
SQLException
public abstract int sqlType()
public abstract String toString(Object value) throws HibernateException
HibernateException
public abstract Object fromStringValue(String xml) throws HibernateException
HibernateException
public final void nullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session) throws HibernateException, SQLException
Type
st
- value
- the object to writeindex
- statement parameter indexsession
-
SQLException
HibernateException
public final void nullSafeSet(PreparedStatement st, Object value, int index) throws HibernateException, SQLException
HibernateException
SQLException
public final Object nullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner) throws HibernateException, SQLException
Type
rs
- names
- the column namessession
- owner
- the parent entity
HibernateException
SQLException
alternative, 2-phase property initialization
public final Object nullSafeGet(ResultSet rs, String[] names) throws HibernateException, SQLException
HibernateException
SQLException
public final Object nullSafeGet(ResultSet rs, String name) throws HibernateException, SQLException
HibernateException
SQLException
public final Object nullSafeGet(ResultSet rs, String name, SessionImplementor session, Object owner) throws HibernateException, SQLException
Type
rs
- name
- the column namesession
- owner
- the parent entity
SQLException
HibernateException
public final String toString(Object value, SessionFactoryImplementor pc) throws HibernateException
Type
value
- pc
-
HibernateException
public final Object fromString(String xml) throws HibernateException
Type
xml
-
HibernateException
public final int getColumnSpan(Mapping session)
Type
public final int[] sqlTypes(Mapping session)
Type
Types
public abstract Object deepCopyNotNull(Object value) throws HibernateException
HibernateException
public final Object deepCopy(Object value) throws HibernateException
Type
value
- generally a collection element or entity field
HibernateException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |