|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.hibernate.type.AbstractType
net.sf.hibernate.type.PersistentCollectionType
net.sf.hibernate.type.ArrayType
A type for persistent arrays.
| Constructor Summary | |
ArrayType(String role,
Class elementClass)
|
|
| Method Summary | |
Object |
copy(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copiedAlready)
|
Serializable |
disassemble(Object value,
SessionImplementor session)
Return a cacheable "disassembled" representation of the object. |
Iterator |
getElementsIterator(Object collection)
Not defined for collections of primitive type |
Class |
getReturnedClass()
The class returned by nullSafeGet() methods. |
PersistentCollection |
instantiate(SessionImplementor session,
CollectionPersister persister)
|
boolean |
isArrayType()
|
void |
nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session)
Write an instance of the mapped class to a prepared statement. |
String |
toString(Object value,
SessionFactoryImplementor factory)
A representation of the value to be embedded in an XML element. |
PersistentCollection |
wrap(SessionImplementor session,
Object array)
|
| Methods inherited from class net.sf.hibernate.type.PersistentCollectionType |
assemble, deepCopy, equals, equals, fromString, getAssociatedClass, getColumnSpan, getElementType, getForeignKeyDirection, getJoinable, getName, getReferencedColumns, getRole, hashCode, hasNiceEquals, hydrate, isAssociationType, isDirty, isModified, isMutable, isPersistentCollectionType, nullSafeGet, nullSafeGet, resolveIdentifier, sqlTypes, toString, usePrimaryKeyAsForeignKey |
| Methods inherited from class net.sf.hibernate.type.AbstractType |
isComponentType, isEntityType, isObjectType |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.sf.hibernate.type.Type |
isComponentType, isEntityType, isObjectType |
| Constructor Detail |
public ArrayType(String role, Class elementClass)
| Method Detail |
public Class getReturnedClass()
Type
public PersistentCollection instantiate(SessionImplementor session, CollectionPersister persister) throws HibernateException
instantiate in class PersistentCollectionTypeHibernateExceptionpublic void nullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session) throws HibernateException, SQLException
Type
nullSafeSet in interface TypenullSafeSet in class PersistentCollectionTypeHibernateException
SQLExceptionpublic Iterator getElementsIterator(Object collection)
getElementsIterator in class PersistentCollectionTypepublic Serializable disassemble(Object value, SessionImplementor session) throws HibernateException
Type
disassemble in interface Typedisassemble in class PersistentCollectionTypeHibernateExceptionpublic PersistentCollection wrap(SessionImplementor session, Object array)
wrap in class PersistentCollectionTypepublic boolean isArrayType()
isArrayType in class PersistentCollectionTypepublic String toString(Object value, SessionFactoryImplementor factory) throws HibernateException
Type
toString in interface TypetoString in class PersistentCollectionTypeHibernateExceptionpublic Object copy(Object original, Object target, SessionImplementor session, Object owner, Map copiedAlready) throws HibernateException
copy in interface Typecopy in class PersistentCollectionTypeHibernateException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||