public interface ObjectNameGenerator
NameBuilder, that will resolve duplication conflicts.| Modifier and Type | Method and Description |
|---|---|
String |
objAttributeName(DbAttribute dbAttribute)
Generates a name for ObjAttribute derived from DbAttribute name.
|
String |
objEntityName(DbEntity dbEntity)
Generates a name for ObjEntity derived from DbEntity name.
|
String |
relationshipName(DbRelationship... relationshipChain)
Generates a String that can be used as a name of an ObjRelationship, derived from join semantics of a chain of
connected DbRelationships.
|
String objEntityName(DbEntity dbEntity)
String objAttributeName(DbAttribute dbAttribute)
String relationshipName(DbRelationship... relationshipChain)
The chain must contain at least one relationship. Though if we are dealing with a flattened relationship, more than one can be passed, in the same order as they are present in a flattened relationship.
Generated name can be used for DbRelationship itself (in which case the chain must have exactly one parameter).
Copyright © 2001–2019 Apache Cayenne. All rights reserved.