|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.gen.EntityUtils
public class EntityUtils
Attributes and Methods for working with ObjEntities.
Field Summary | |
---|---|
protected String |
baseClassName
|
protected String |
basePackageName
|
protected ObjEntity |
objEntity
|
protected DataMap |
primaryDataMap
|
protected String |
subClassName
|
protected String |
subPackageName
|
protected String |
superClassName
|
protected String |
superPackageName
|
Constructor Summary | |
---|---|
EntityUtils(DataMap dataMap,
ObjEntity objEntity,
String fqnBaseClass,
String fqnSuperClass,
String fqnSubClass)
|
Method Summary | |
---|---|
String |
getBaseClassName()
Deprecated. since 3.0 This value is a part of velocity context and therefore is redundant here. |
String |
getBasePackageName()
Deprecated. since 3.0 This value is a part of velocity context and therefore is redundant here. |
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()
|
String |
getSubClassName()
Deprecated. since 3.0 This value is a part of velocity context and therefore is redundant here. |
String |
getSubPackageName()
Deprecated. since 3.0 This value is a part of velocity context and therefore is redundant here. |
String |
getSuperClassName()
Deprecated. since 3.0 This value is a part of velocity context and therefore is redundant here. |
String |
getSuperPackageName()
Deprecated. since 3.0 This value is a part of velocity context and therefore is redundant here. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String subClassName
protected String superClassName
protected String baseClassName
protected String subPackageName
protected String superPackageName
protected String basePackageName
protected DataMap primaryDataMap
protected ObjEntity objEntity
Constructor Detail |
---|
public EntityUtils(DataMap dataMap, ObjEntity objEntity, String fqnBaseClass, String fqnSuperClass, String fqnSubClass)
Method Detail |
---|
public String getSubClassName()
public String getSuperClassName()
public String getBaseClassName()
public String getSubPackageName()
public String getSuperPackageName()
superPackageName
property that defines a superclass's
package name.
public String getBasePackageName()
basePackageName
property that defines a baseclass's
(superclass superclass) package name.
public DataMap getPrimaryDataMap()
public MappingNamespace getEntityResolver()
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |