|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.elca.el4j.services.persistence.hibernate.dao.extent.AbstractExtentPart ch.elca.el4j.services.persistence.hibernate.dao.extent.ExtentCollection
public class ExtentCollection
An ExtentCollection represents a collection of an entity.
Features:
DataExtent
.
Field Summary |
---|
Fields inherited from class ch.elca.el4j.services.persistence.hibernate.dao.extent.AbstractExtentPart |
---|
m_name, m_parent |
Constructor Summary | |
---|---|
ExtentCollection(Class<?> c,
Method method)
Default Creator, hidden. |
|
ExtentCollection(String name)
Default Creator. |
|
ExtentCollection(String name,
Class<?> c)
Default Creator. |
Method Summary | |
---|---|
static ExtentCollection |
collection(Class<?> c,
Method m)
Returns a new Collection object, based on the given class and method. |
static ExtentCollection |
collection(String name,
Class<?> c)
Returns a new Collection object, based on the given name and class. |
static ExtentCollection |
collection(String name,
ExtentEntity entity)
Returns a new Collection object, based on the given name and entity. |
ExtentCollection |
freeze()
Freeze the ExtentCollection, meaning that no further changes to it are possible. |
ExtentEntity |
getContainedEntity()
Contained entity of the collection. |
String |
getId()
|
ExtentCollection |
merge(ExtentCollection other)
Merge two ExtentCollections. |
void |
setContainedEntity(ExtentEntity entity)
Set the entity contained in this collection. |
protected void |
updateId()
Updates the id of the extent part. |
Methods inherited from class ch.elca.el4j.services.persistence.hibernate.dao.extent.AbstractExtentPart |
---|
compareTo, equals, firstCharLower, firstCharUpper, getMethod, getName, getParent, hashCode, nativeToString, setParent, toFieldName, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExtentCollection(String name)
name
- the name of the collectionpublic ExtentCollection(String name, Class<?> c)
name
- the name of the collectionc
- the class of the contained entitypublic ExtentCollection(Class<?> c, Method method)
c
- the class of the contained entitymethod
- the method to get the collectionMethod Detail |
---|
public String getId()
getId
in class AbstractExtentPart
protected void updateId()
updateId
in class AbstractExtentPart
public ExtentEntity getContainedEntity()
public void setContainedEntity(ExtentEntity entity)
entity
- the contained entity of the collection.public static ExtentCollection collection(String name, Class<?> c)
name
- the name of the collection.c
- the class of the contained entity.
public static ExtentCollection collection(Class<?> c, Method m)
c
- the class of the contained entity.m
- the method to get the collection.
public static ExtentCollection collection(String name, ExtentEntity entity)
name
- the name of the collection.entity
- the contained entity.
public ExtentCollection merge(ExtentCollection other)
other
- the collection to be merged with.
public ExtentCollection freeze()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |