org.jbpm.hibernate
Class PvmNamingStrategy

java.lang.Object
  extended by org.hibernate.cfg.ImprovedNamingStrategy
      extended by org.jbpm.hibernate.PvmNamingStrategy
All Implemented Interfaces:
java.io.Serializable, org.hibernate.cfg.NamingStrategy

public class PvmNamingStrategy
extends org.hibernate.cfg.ImprovedNamingStrategy

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.hibernate.cfg.ImprovedNamingStrategy
INSTANCE
 
Constructor Summary
PvmNamingStrategy(java.lang.String prefix)
           
 
Method Summary
 java.lang.String classToTableName(java.lang.String className)
           
 java.lang.String collectionTableName(java.lang.String ownerEntity, java.lang.String ownerEntityTable, java.lang.String associatedEntity, java.lang.String associatedEntityTable, java.lang.String propertyName)
           
 java.lang.String columnName(java.lang.String columnName)
           
 java.lang.String foreignKeyColumnName(java.lang.String propertyName, java.lang.String propertyEntityName, java.lang.String propertyTableName, java.lang.String referencedColumnName)
           
 java.lang.String joinKeyColumnName(java.lang.String joinedColumn, java.lang.String joinedTable)
           
 java.lang.String logicalCollectionColumnName(java.lang.String columnName, java.lang.String propertyName, java.lang.String referencedColumn)
           
 java.lang.String logicalCollectionTableName(java.lang.String tableName, java.lang.String ownerEntityTable, java.lang.String associatedEntityTable, java.lang.String propertyName)
           
 java.lang.String logicalColumnName(java.lang.String columnName, java.lang.String propertyName)
           
 java.lang.String propertyToColumnName(java.lang.String propertyName)
           
 java.lang.String tableName(java.lang.String tableName)
           
 
Methods inherited from class org.hibernate.cfg.ImprovedNamingStrategy
addUnderscores
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PvmNamingStrategy

public PvmNamingStrategy(java.lang.String prefix)
Method Detail

classToTableName

public java.lang.String classToTableName(java.lang.String className)
Specified by:
classToTableName in interface org.hibernate.cfg.NamingStrategy
Overrides:
classToTableName in class org.hibernate.cfg.ImprovedNamingStrategy

tableName

public java.lang.String tableName(java.lang.String tableName)
Specified by:
tableName in interface org.hibernate.cfg.NamingStrategy
Overrides:
tableName in class org.hibernate.cfg.ImprovedNamingStrategy

collectionTableName

public java.lang.String collectionTableName(java.lang.String ownerEntity,
                                            java.lang.String ownerEntityTable,
                                            java.lang.String associatedEntity,
                                            java.lang.String associatedEntityTable,
                                            java.lang.String propertyName)
Specified by:
collectionTableName in interface org.hibernate.cfg.NamingStrategy
Overrides:
collectionTableName in class org.hibernate.cfg.ImprovedNamingStrategy

propertyToColumnName

public java.lang.String propertyToColumnName(java.lang.String propertyName)
Specified by:
propertyToColumnName in interface org.hibernate.cfg.NamingStrategy
Overrides:
propertyToColumnName in class org.hibernate.cfg.ImprovedNamingStrategy

logicalColumnName

public java.lang.String logicalColumnName(java.lang.String columnName,
                                          java.lang.String propertyName)
Specified by:
logicalColumnName in interface org.hibernate.cfg.NamingStrategy
Overrides:
logicalColumnName in class org.hibernate.cfg.ImprovedNamingStrategy

columnName

public java.lang.String columnName(java.lang.String columnName)
Specified by:
columnName in interface org.hibernate.cfg.NamingStrategy
Overrides:
columnName in class org.hibernate.cfg.ImprovedNamingStrategy

foreignKeyColumnName

public java.lang.String foreignKeyColumnName(java.lang.String propertyName,
                                             java.lang.String propertyEntityName,
                                             java.lang.String propertyTableName,
                                             java.lang.String referencedColumnName)
Specified by:
foreignKeyColumnName in interface org.hibernate.cfg.NamingStrategy
Overrides:
foreignKeyColumnName in class org.hibernate.cfg.ImprovedNamingStrategy

logicalCollectionColumnName

public java.lang.String logicalCollectionColumnName(java.lang.String columnName,
                                                    java.lang.String propertyName,
                                                    java.lang.String referencedColumn)
Specified by:
logicalCollectionColumnName in interface org.hibernate.cfg.NamingStrategy
Overrides:
logicalCollectionColumnName in class org.hibernate.cfg.ImprovedNamingStrategy

logicalCollectionTableName

public java.lang.String logicalCollectionTableName(java.lang.String tableName,
                                                   java.lang.String ownerEntityTable,
                                                   java.lang.String associatedEntityTable,
                                                   java.lang.String propertyName)
Specified by:
logicalCollectionTableName in interface org.hibernate.cfg.NamingStrategy
Overrides:
logicalCollectionTableName in class org.hibernate.cfg.ImprovedNamingStrategy

joinKeyColumnName

public java.lang.String joinKeyColumnName(java.lang.String joinedColumn,
                                          java.lang.String joinedTable)
Specified by:
joinKeyColumnName in interface org.hibernate.cfg.NamingStrategy
Overrides:
joinKeyColumnName in class org.hibernate.cfg.ImprovedNamingStrategy