com.mysema.query.sql.codegen
Class AbstractNamingStrategy

java.lang.Object
  extended by com.mysema.query.sql.codegen.AbstractNamingStrategy
All Implemented Interfaces:
NamingStrategy
Direct Known Subclasses:
DefaultNamingStrategy, OriginalNamingStrategy

public abstract class AbstractNamingStrategy
extends Object
implements NamingStrategy

Author:
tiwe

Field Summary
protected  String foreignKeysClassName
           
protected  String foreignKeysVariable
           
protected  String primaryKeysClassName
           
protected  String primaryKeysVariable
           
protected  String reservedSuffix
           
 
Constructor Summary
AbstractNamingStrategy()
           
 
Method Summary
 String appendSchema(String packageName, String schemaName)
          Normalizes and appends the given schema name to the package name
 String getForeignKeysClassName()
          Get the class name for the foreign keys inner class
 String getForeignKeysVariable(EntityType entityType)
          Get the field name for the foreign keys class instance
 String getPrimaryKeysClassName()
          Get the class name for the primary keys inner class
 String getPrimaryKeysVariable(EntityType entityType)
          Get the field name for the primary keys class instance
 void setForeignKeysClassName(String foreignKeysClassName)
           
 void setForeignKeysVariable(String foreignKeysVariable)
           
 void setPrimaryKeysClassName(String primaryKeysClassName)
           
 void setPrimaryKeysVariable(String primaryKeysVariable)
           
 void setReservedSuffix(String reservedSuffix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.mysema.query.sql.codegen.NamingStrategy
getClassName, getDefaultAlias, getDefaultVariableName, getPropertyName, getPropertyNameForForeignKey, getPropertyNameForInverseForeignKey, getPropertyNameForPrimaryKey, normalizeColumnName, normalizeSchemaName, normalizeTableName
 

Field Detail

foreignKeysClassName

protected String foreignKeysClassName

foreignKeysVariable

protected String foreignKeysVariable

primaryKeysClassName

protected String primaryKeysClassName

primaryKeysVariable

protected String primaryKeysVariable

reservedSuffix

protected String reservedSuffix
Constructor Detail

AbstractNamingStrategy

public AbstractNamingStrategy()
Method Detail

appendSchema

public String appendSchema(String packageName,
                           String schemaName)
Description copied from interface: NamingStrategy
Normalizes and appends the given schema name to the package name

Specified by:
appendSchema in interface NamingStrategy
Returns:

getForeignKeysClassName

public String getForeignKeysClassName()
Description copied from interface: NamingStrategy
Get the class name for the foreign keys inner class

Specified by:
getForeignKeysClassName in interface NamingStrategy
Returns:

getForeignKeysVariable

public String getForeignKeysVariable(EntityType entityType)
Description copied from interface: NamingStrategy
Get the field name for the foreign keys class instance

Specified by:
getForeignKeysVariable in interface NamingStrategy
Returns:

getPrimaryKeysClassName

public String getPrimaryKeysClassName()
Description copied from interface: NamingStrategy
Get the class name for the primary keys inner class

Specified by:
getPrimaryKeysClassName in interface NamingStrategy
Returns:

getPrimaryKeysVariable

public String getPrimaryKeysVariable(EntityType entityType)
Description copied from interface: NamingStrategy
Get the field name for the primary keys class instance

Specified by:
getPrimaryKeysVariable in interface NamingStrategy
Returns:

setForeignKeysClassName

public void setForeignKeysClassName(String foreignKeysClassName)

setForeignKeysVariable

public void setForeignKeysVariable(String foreignKeysVariable)

setPrimaryKeysClassName

public void setPrimaryKeysClassName(String primaryKeysClassName)

setPrimaryKeysVariable

public void setPrimaryKeysVariable(String primaryKeysVariable)

setReservedSuffix

public void setReservedSuffix(String reservedSuffix)


Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.