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