Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.cayenne.project
Class NamedObjectFactory.ObjRelationshipFactory  view NamedObjectFactory.ObjRelationshipFactory download NamedObjectFactory.ObjRelationshipFactory.java

java.lang.Object
  extended byorg.objectstyle.cayenne.project.NamedObjectFactory
      extended byorg.objectstyle.cayenne.project.NamedObjectFactory.ObjRelationshipFactory
Direct Known Subclasses:
NamedObjectFactory.DbRelationshipFactory
Enclosing class:
NamedObjectFactory

static class NamedObjectFactory.ObjRelationshipFactory
extends NamedObjectFactory


Nested Class Summary
 
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
 
Field Summary
protected  org.objectstyle.cayenne.map.Entity target
           
protected  boolean toMany
           
 
Fields inherited from class org.objectstyle.cayenne.project.NamedObjectFactory
 
Constructor Summary
NamedObjectFactory.ObjRelationshipFactory(org.objectstyle.cayenne.map.Entity target, boolean toMany)
           
 
Method Summary
protected  java.lang.Object create(java.lang.String name, java.lang.Object namingContext)
          Internal factory method.
protected  boolean isNameInUse(java.lang.String name, java.lang.Object namingContext)
          Checks if the name is already taken by another sibling in the same context.
protected  java.lang.String nameBase()
          Returns generated name for the ObjRelationships.
 
Methods inherited from class org.objectstyle.cayenne.project.NamedObjectFactory
createName, createObject, createRelationship, makeName, makeObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

protected org.objectstyle.cayenne.map.Entity target

toMany

protected boolean toMany
Constructor Detail

NamedObjectFactory.ObjRelationshipFactory

public NamedObjectFactory.ObjRelationshipFactory(org.objectstyle.cayenne.map.Entity target,
                                                 boolean toMany)
Method Detail

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