Package overit.geocall.sql
Class StandardDBFieldMap
java.lang.Object
overit.geocall.sql.StandardDBFieldMap
- All Implemented Interfaces:
Serializable,DBFieldMap
The class defines the StandardDBFieldMap, the standard map between the fields of a table
in memory and a server database table.
It is created starting from a
PropertyGetter.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PropertiesProperties map that stores the associations between the field names in memory and the fields name on the database -
Constructor Summary
ConstructorsConstructorDescriptionStandardDBFieldMap(String strClass, Class c) Creates a StandardDBFieldMap starting from a properties file -
Method Summary
Modifier and TypeMethodDescriptiongetColumnName(String dbname) Returns the name of the virtual field name in memory starting from the name of the field of the same table in the server databasegetDBColumnName(String name) Returns the name of the server database table field starting from a virtual field name of the same table in memory
-
Field Details
-
_p
Properties map that stores the associations between the field names in memory and the fields name on the database
-
-
Constructor Details
-
StandardDBFieldMap
Creates a StandardDBFieldMap starting from a properties file- Parameters:
strClass- Name of the Java resource with the propertiesc- Caller's Java class. Used to choose the right ClassLoader- Throws:
IOException- The readoing of a properties file can raise anIOException
-
-
Method Details
-
getDBColumnName
Returns the name of the server database table field starting from a virtual field name of the same table in memory- Specified by:
getDBColumnNamein interfaceDBFieldMap- Parameters:
name- Name of the field of the table in memory- Returns:
- Name of the field of the server database table
-
getColumnName
Returns the name of the virtual field name in memory starting from the name of the field of the same table in the server database- Specified by:
getColumnNamein interfaceDBFieldMap- Parameters:
dbname- Name of the field of the server database table- Returns:
- Name of the field of the table in memory
-