Package net.java.ao.schema
Class CachingTableNameConverter
java.lang.Object
net.java.ao.schema.CachingTableNameConverter
- All Implemented Interfaces:
TableNameConverter
A table name converter that simply caches the converted table names.
This implementation uses a LoadingCache and is thread safe.
- Since:
- 0.9
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CachingTableNameConverter
-
-
Method Details
-
getName
Description copied from interface:TableNameConverterGenerates a table name to correspond with the specified class. The algorithm used must check for the existance of theTableannotation 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@Tablewill likely fail.- Specified by:
getNamein interfaceTableNameConverter- 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.
-