java.lang.Object
org.objectstyle.cayenne.project.NamedObjectFactory
org.objectstyle.cayenne.project.NamedObjectFactory.ObjRelationshipFactory
- Direct Known Subclasses:
- NamedObjectFactory.DbRelationshipFactory
- Enclosing class:
- NamedObjectFactory
- static class NamedObjectFactory.ObjRelationshipFactory
- extends NamedObjectFactory
| Nested classes inherited from class org.objectstyle.cayenne.project.NamedObjectFactory |
NamedObjectFactory.DataDomainFactory, NamedObjectFactory.DataMapFactory, NamedObjectFactory.DataNodeFactory, NamedObjectFactory.DbAttributeFactory, NamedObjectFactory.DbEntityFactory, NamedObjectFactory.DbRelationshipFactory, NamedObjectFactory.DerivedDbAttributeFactory, NamedObjectFactory.DerivedDbEntityFactory, NamedObjectFactory.ObjAttributeFactory, NamedObjectFactory.ObjEntityFactory, NamedObjectFactory.ObjRelationshipFactory, NamedObjectFactory.ProcedureFactory, NamedObjectFactory.ProcedureParameterFactory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
target
protected org.objectstyle.cayenne.map.Entity target
toMany
protected boolean toMany
NamedObjectFactory.ObjRelationshipFactory
public NamedObjectFactory.ObjRelationshipFactory(org.objectstyle.cayenne.map.Entity target,
boolean toMany)
create
protected java.lang.Object create(java.lang.String name,
java.lang.Object namingContext)
- Description copied from class:
NamedObjectFactory
- Internal factory method. Invoked after the name is figured out.
- Specified by:
create in class NamedObjectFactory
isNameInUse
protected boolean isNameInUse(java.lang.String name,
java.lang.Object namingContext)
- Description copied from class:
NamedObjectFactory
- Checks if the name is already taken by another sibling
in the same context.
- Specified by:
isNameInUse in class NamedObjectFactory
nameBase
protected java.lang.String nameBase()
- Returns generated name for the ObjRelationships.
For to-one case and entity name "xxxx" it generates name "toXxxx".
For to-many case and entity name "Xxxx" it generates name "xxxxArray".
- Specified by:
nameBase in class NamedObjectFactory