org.apache.cayenne.map.naming
Class BasicNamingStrategy

java.lang.Object
  extended by org.apache.cayenne.map.naming.BasicNamingStrategy
All Implemented Interfaces:
NamingStrategy

public class BasicNamingStrategy
extends java.lang.Object
implements NamingStrategy

BasicNamingStrategy is an naming strategy that creates names in Cayenne's old-fashioned manner, i.e. the same way Cayenne did before 3.0

Since:
3.0

Constructor Summary
BasicNamingStrategy()
           
 
Method Summary
 java.lang.String createDbRelationshipName(ExportedKey key, boolean toMany)
          Creates new name for Db Relationship
 java.lang.String createObjAttributeName(DbAttribute attr)
          Creates new name for Obj Attribute
 java.lang.String createObjEntityName(DbEntity dbEntity)
          Creates new name for Obj Entity
 java.lang.String createObjRelationshipName(DbRelationship dbRel)
          Creates new name for Obj Relationship
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicNamingStrategy

public BasicNamingStrategy()
Method Detail

createDbRelationshipName

public java.lang.String createDbRelationshipName(ExportedKey key,
                                                 boolean toMany)
Description copied from interface: NamingStrategy
Creates new name for Db Relationship

Specified by:
createDbRelationshipName in interface NamingStrategy

createObjEntityName

public java.lang.String createObjEntityName(DbEntity dbEntity)
Description copied from interface: NamingStrategy
Creates new name for Obj Entity

Specified by:
createObjEntityName in interface NamingStrategy

createObjAttributeName

public java.lang.String createObjAttributeName(DbAttribute attr)
Description copied from interface: NamingStrategy
Creates new name for Obj Attribute

Specified by:
createObjAttributeName in interface NamingStrategy

createObjRelationshipName

public java.lang.String createObjRelationshipName(DbRelationship dbRel)
Description copied from interface: NamingStrategy
Creates new name for Obj Relationship

Specified by:
createObjRelationshipName in interface NamingStrategy


Copyright © 2001-2012 Apache Cayenne. All Rights Reserved.