Class DatabaseTypeMapImpl
java.lang.Object
ch.tocco.nice2.dbrefactoring.spi.modulesupport.DatabaseTypeMapImpl
- All Implemented Interfaces:
DatabaseTypeMap
- Direct Known Subclasses:
DatabaseTypeMapH2
Implementation for postgres.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getDatabaseTypename
(FieldModel fieldModel) getDatabaseTypename
(Type<?> niceType) getForeignKeyDatabaseTypename
(FieldModel fieldModel) Returns the database type name for the specified nice type that can be used for a foreign key.protected void
-
Constructor Details
-
DatabaseTypeMapImpl
public DatabaseTypeMapImpl()
-
-
Method Details
-
putType
-
get
-
getDatabaseTypename
-
getDatabaseTypename
- Specified by:
getDatabaseTypename
in interfaceDatabaseTypeMap
-
getForeignKeyDatabaseTypename
Description copied from interface:DatabaseTypeMap
Returns the database type name for the specified nice type that can be used for a foreign key.
For example, if the type given here is "SERIAL", this must return "INT" for postgresql.
- Specified by:
getForeignKeyDatabaseTypename
in interfaceDatabaseTypeMap
-