|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.ao.schema.AbstractTableNameConverter
net.java.ao.schema.CamelCaseTableNameConverter
public class CamelCaseTableNameConverter
Imposes a standard camelCase convention upon table names. This will convert entity names in the following way:
Entity Name | Table Name |
Person |
person |
LicenseRegistration |
licenseRegistration |
Volume4 |
volume4 |
Company |
company |
This is the default table name converter for ActiveObjects.
Constructor Summary | |
---|---|
CamelCaseTableNameConverter()
|
Method Summary | |
---|---|
protected String |
convertName(Class<? extends RawEntity<?>> type)
Performs the actual operation of converting a class type into a proper table name. |
Methods inherited from class net.java.ao.schema.AbstractTableNameConverter |
---|
addClassMapping, addClassMappings, addPatternMapping, addPatternMappings, getName, postProcessName, processName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CamelCaseTableNameConverter()
Method Detail |
---|
protected String convertName(Class<? extends RawEntity<?>> type)
AbstractTableNameConverter
Performs the actual operation of converting a class type into a proper
table name. This method need not concern itself with particulars of
@Table
annotations or pattern mappings. All of these
things are handled in the AbstractTableNameConverter.getName(Class)
method in the
superclass implementation.
This method must run as fast as possible and should be thread-safe. If
necessary, caching may be employed, but it is also within scope for such
caching to be utilized within the superclass. As such, the implementation
of this method should be kept extremely simple. Also note that this method
may not be called for every entity type which must be converted
(due to mappings, @Table
overrides, etc).
convertName
in class AbstractTableNameConverter
type
- The entity type which must be converted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |