|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hibernate.mapping.Collection
Mapping for a collection. Subclasses specialize to particular collection styles.
Field Summary | |
static String |
DEFAULT_ELEMENT_COLUMN_NAME
|
static String |
DEFAULT_KEY_COLUMN_NAME
|
Constructor Summary | |
protected |
Collection(PersistentClass owner)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String DEFAULT_ELEMENT_COLUMN_NAME
public static final String DEFAULT_KEY_COLUMN_NAME
Constructor Detail |
protected Collection(PersistentClass owner)
Method Detail |
public boolean isSet()
public SimpleValue getKey()
public Value getElement()
public boolean isIndexed()
public Table getCollectionTable()
public void setCollectionTable(Table table)
public boolean isSorted()
public Comparator getComparator()
public boolean isLazy()
public void setLazy(boolean lazy)
public String getRole()
public abstract PersistentCollectionType getCollectionType()
public boolean isPrimitiveArray()
public boolean isArray()
public boolean isOneToMany()
public CacheConcurrencyStrategy getCache()
public boolean isInverse()
public Class getOwnerClass()
public String getOrderBy()
public void setCache(CacheConcurrencyStrategy cache)
cache
- The cache to setpublic void setComparator(Comparator comparator)
comparator
- The comparator to setpublic void setElement(Value element)
element
- The element to setpublic void setKey(SimpleValue key)
key
- The key to setpublic void setOrderBy(String orderBy)
orderBy
- The orderBy to setpublic void setRole(String role)
role
- The role to setpublic void setSorted(boolean sorted)
sorted
- The sorted to setpublic void setInverse(boolean inverse)
inverse
- The inverse to setpublic PersistentClass getOwner()
public void setOwner(PersistentClass owner)
owner
- The owner to setpublic String getWhere()
public void setWhere(String where)
where
- The where to setpublic boolean isIdentified()
public boolean hasOrphanDelete()
public void setOrphanDelete(boolean orphanDelete)
public int getBatchSize()
public void setBatchSize(int i)
public int getOuterJoinFetchSetting()
getOuterJoinFetchSetting
in interface Fetchable
public void setOuterJoinFetchSetting(int joinedFetch)
setOuterJoinFetchSetting
in interface Fetchable
public void setCollectionPersisterClass(Class persister)
public Class getCollectionPersisterClass()
public void validate(Mapping mapping) throws MappingException
MappingException
public Iterator getColumnIterator()
getColumnIterator
in interface Value
public int getColumnSpan()
getColumnSpan
in interface Value
public Formula getFormula()
getFormula
in interface Value
public Type getType()
public boolean isNullable()
isNullable
in interface Value
public boolean isUnique()
public Table getTable()
public void createForeignKey()
createForeignKey
in interface Value
public boolean isSimpleValue()
isSimpleValue
in interface Value
public boolean isValid(Mapping mapping) throws MappingException
MappingException
public void createAllKeys()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |