public class EntityUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
baseClassName |
protected String |
basePackageName |
protected Collection<String> |
callbackNames |
protected ObjEntity |
objEntity |
protected DataMap |
primaryDataMap |
protected String |
subClassName |
protected String |
subPackageName |
protected String |
superClassName |
protected String |
superPackageName |
| Constructor and Description |
|---|
EntityUtils(DataMap dataMap,
ObjEntity objEntity,
String fqnBaseClass,
String fqnSuperClass,
String fqnSubClass) |
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
getCallbackNames() |
MappingNamespace |
getEntityResolver()
Returns the EntityResolver for this set of DataMaps.
|
String |
getMapKeyType(ObjRelationship relationship)
Returns the map key type for a collection relationship of type
java.util.Map.
|
DataMap |
getPrimaryDataMap() |
boolean |
hasToManyDeclaredRelationships()
Returns true if current ObjEntity contains at least one toMany
relationship, ignoring those declared in superentities.
|
boolean |
hasToManyDeclaredRelationships(ObjEntity anObjEntity)
Returns true if an ObjEntity contains at least one toMany relationship,
ignoring those declared in superentities.
|
boolean |
hasToManyRelationships()
Returns true if current ObjEntity contains at least one toMany
relationship.
|
boolean |
hasToManyRelationships(ObjEntity anObjEntity)
Returns true if an ObjEntity contains at least one toMany relationship.
|
boolean |
hasToOneDeclaredRelationships()
Returns true if current ObjEntity contains at least one toOne
relationship, ignoring those declared in superentities.
|
boolean |
hasToOneDeclaredRelationships(ObjEntity anObjEntity)
Returns true if an ObjEntity contains at least one toOne relationship,
ignoring those declared in superentities.
|
boolean |
hasToOneRelationships()
Returns true if current ObjEntity contains at least one toOne
relationship.
|
boolean |
hasToOneRelationships(ObjEntity anObjEntity)
Returns true if an ObjEntity contains at least one toOne relationship.
|
boolean |
isAbstract()
Returns true if current ObjEntity is defined as abstract.
|
boolean |
isAbstract(ObjEntity anObjEntity)
Returns true if current ObjEntity is defined as abstract.
|
protected String subClassName
protected String superClassName
protected String baseClassName
protected String subPackageName
protected String superPackageName
protected String basePackageName
protected DataMap primaryDataMap
protected ObjEntity objEntity
protected Collection<String> callbackNames
public DataMap getPrimaryDataMap()
public MappingNamespace getEntityResolver()
public boolean isAbstract()
public boolean isAbstract(ObjEntity anObjEntity)
public boolean hasToManyRelationships()
public boolean hasToManyRelationships(ObjEntity anObjEntity)
public boolean hasToManyDeclaredRelationships()
public boolean hasToManyDeclaredRelationships(ObjEntity anObjEntity)
public boolean hasToOneRelationships()
public boolean hasToOneRelationships(ObjEntity anObjEntity)
public boolean hasToOneDeclaredRelationships()
public boolean hasToOneDeclaredRelationships(ObjEntity anObjEntity)
public String getMapKeyType(ObjRelationship relationship)
relationship - The relationship to look up type information for.public Collection<String> getCallbackNames()
Copyright © 2001–2015 Apache Cayenne. All rights reserved.