|
||||||||||
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.ExtentEntity
public class ExtentEntity
A ExtentEntity represents a complex Data Type in an Extent.
Features:
Field Summary |
---|
Fields inherited from class ch.elca.el4j.services.persistence.hibernate.dao.extent.AbstractExtentPart |
---|
m_name, m_parent |
Constructor Summary | |
---|---|
ExtentEntity(Class<?> c)
Default Creator, hidden. |
|
ExtentEntity(Class<?> c,
Method method)
Default Creator, hidden. |
|
ExtentEntity(String name,
Class<?> c)
Default Creator, hidden. |
Method Summary | |
---|---|
ExtentEntity |
all(int depth)
Include all fields, entities and collections of the class-entity. |
static ExtentEntity |
entity(Class<?> c)
Returns a new Entity object, based on the given class. |
static ExtentEntity |
entity(Class<?> c,
Method m)
Returns a new Entity object, based on the given class and method. |
static ExtentEntity |
entity(String name,
Class<?> c)
Returns a new Entity object, based on the given name and class. |
ExtentEntity |
freeze()
Freeze the ExtentEntity, meaning that no further changes to it are possible. |
List<ExtentEntity> |
getChildEntities()
Child entities. |
List<ExtentCollection> |
getCollections()
Collections. |
Class<?> |
getEntityClass()
Class of the entity. |
List<String> |
getFields()
Field-methods of the entity. |
String |
getId()
|
boolean |
isRoot()
|
ExtentEntity |
merge(ExtentEntity other)
Merge two ExtentEntities. |
static ExtentEntity |
rootEntity(Class<?> c)
Returns a new Entity object, based on the given class. |
String |
toString()
|
protected void |
updateId()
Updates the id of the extent part. |
ExtentEntity |
with(String... fields)
Extend the entity by the given fields. |
ExtentEntity |
without(String... fields)
Exclude fields from the entity. |
ExtentEntity |
withSubentities(AbstractExtentPart... entities)
Extend the entity by the given sub-entities. |
Methods inherited from class ch.elca.el4j.services.persistence.hibernate.dao.extent.AbstractExtentPart |
---|
compareTo, equals, firstCharLower, firstCharUpper, getMethod, getName, getParent, hashCode, nativeToString, setParent, toFieldName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExtentEntity(Class<?> c)
c
- the class of the entitypublic ExtentEntity(String name, Class<?> c)
name
- the name of the entityc
- the class of the entitypublic ExtentEntity(Class<?> c, Method method)
c
- the class of the entitymethod
- the method to get the entityMethod Detail |
---|
public String getId()
getId
in class AbstractExtentPart
protected void updateId()
updateId
in class AbstractExtentPart
public boolean isRoot()
public Class<?> getEntityClass()
public List<String> getFields()
public List<ExtentEntity> getChildEntities()
public List<ExtentCollection> getCollections()
public static ExtentEntity rootEntity(Class<?> c)
c
- the class of the entity.
public static ExtentEntity entity(Class<?> c)
c
- the class of the entity.
public static ExtentEntity entity(String name, Class<?> c)
name
- the name of the entity.c
- the class of the entity.
public static ExtentEntity entity(Class<?> c, Method m)
c
- the class of the entity.m
- the method to get the entity.
public ExtentEntity with(String... fields) throws NoSuchMethodException
fields
- fields to be added.
NoSuchMethodException
public ExtentEntity withSubentities(AbstractExtentPart... entities) throws NoSuchMethodException
entities
- entities to be added.
NoSuchMethodException
public ExtentEntity without(String... fields)
fields
- fields to be excluded.
public ExtentEntity all(int depth)
depth
- Exploration depth.
public ExtentEntity merge(ExtentEntity other)
other
- the extent to be merged with.
public ExtentEntity freeze()
public String toString()
toString
in class AbstractExtentPart
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |