net.java.ao.schema
Class CanonicalClassNameTableNameConverter
java.lang.Object
net.java.ao.schema.CanonicalClassNameTableNameConverter
- All Implemented Interfaces:
- TableNameConverter
- Direct Known Subclasses:
- CamelCaseTableNameConverter, PluralizedTableNameConverter, UnderscoreTableNameConverter
public abstract class CanonicalClassNameTableNameConverter
- extends Object
- implements TableNameConverter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CanonicalClassNameTableNameConverter
public CanonicalClassNameTableNameConverter()
getName
public final String getName(Class<? extends RawEntity<?>> entityClass)
- Description copied from interface:
TableNameConverter
- Generates a table name to correspond with the specified class. The
algorithm used must check for the existance of the
Table
annotation and use the appropriate override when necessary. If this
check is not made, ActiveObjects will continue to function normally,
but any code assuming the proper imlementation of @Table
will likely fail.
- Specified by:
getName
in interface TableNameConverter
- Parameters:
entityClass
- The entity type for which a corresponding field name must be
generated.
- Returns:
- A database table name which corresponds to the given entity type.
getName
protected abstract String getName(String entityClassCanonicalName)
Copyright © 2007-2011. All Rights Reserved.