| org.jpox.store.mapping.MappingManager
All known Subclasses: org.jpox.store.mapping.AbstractMappingManager,
MappingManager | public interface MappingManager (Code) | | Representation of a MappingManager, mapping a java mapping type to a datastore mapping type.
Allows a java mapping type to map to multiple datastore mapping types.
Allows a default datastore mapping type be assigned to each java mapping type.
version: $Revision: 1.29 $ |
Method Summary | |
DatastoreField | createDatastoreField(JavaTypeMapping mapping, String javaType, int datastoreFieldIndex) Method to create a datastore field (column) in a container (table). | DatastoreField | createDatastoreField(JavaTypeMapping mapping, String javaType, ColumnMetaData colmd) Method to create a datastore field (column) in a container (table). | DatastoreField | createDatastoreField(AbstractMemberMetaData fmd, DatastoreContainerObject datastoreContainer, JavaTypeMapping mapping, ColumnMetaData colmd, DatastoreField reference, ClassLoaderResolver clr) Method to create a datastore field for a PersistenceCapable mapping. | DatastoreMapping | createDatastoreMapping(JavaTypeMapping mapping, AbstractMemberMetaData fmd, int index, StoreManager srm, DatastoreField column) Method to create the datastore mapping for a java type mapping at a particular index. | DatastoreMapping | createDatastoreMapping(JavaTypeMapping mapping, StoreManager storeMgr, DatastoreField column, String javaType) Method to create the datastore mapping for a particular column and java type. | JavaTypeMapping | getMapping(Class c, boolean serialised, boolean embedded, StoreManager storeMgr, String fieldName) Accessor for a mapping, for a java type. | JavaTypeMapping | getMapping(Class c, boolean serialised, boolean embedded, StoreManager storeMgr, ClassLoaderResolver clr) Accessor for a mapping, for a java type. | JavaTypeMapping | getMapping(DatastoreContainerObject table, AbstractMemberMetaData fmd, DatastoreAdapter dba, ClassLoaderResolver clr, int mappingFieldType) | void | loadDatastoreMapping(PluginManager mgr, ClassLoaderResolver clr, String vendorId) Initialise the datastore mapping. | void | registerDatastoreMapping(String javaTypeName, Class datastoreMappingType, String jdbcType, String sqlType, boolean dflt) Utility to register a datastore mapping for a java type, and the SQL/JDBC types it can be mapped to. |
createDatastoreField | DatastoreField createDatastoreField(JavaTypeMapping mapping, String javaType, int datastoreFieldIndex)(Code) | | Method to create a datastore field (column) in a container (table).
Parameters: mapping - The java mapping Parameters: javaType - The java type Parameters: datastoreFieldIndex - The index of the datastore field to create The datastore field |
createDatastoreField | DatastoreField createDatastoreField(JavaTypeMapping mapping, String javaType, ColumnMetaData colmd)(Code) | | Method to create a datastore field (column) in a container (table).
To be used for serialised PC element/key/value in a join table.
Parameters: mapping - The java mapping Parameters: javaType - The java type Parameters: colmd - MetaData for the column to create The datastore field |
createDatastoreMapping | DatastoreMapping createDatastoreMapping(JavaTypeMapping mapping, AbstractMemberMetaData fmd, int index, StoreManager srm, DatastoreField column)(Code) | | Method to create the datastore mapping for a java type mapping at a particular index.
Parameters: mapping - The java mapping Parameters: fmd - MetaData for the field Parameters: index - Index of the datastore field Parameters: srm - Store Manager Parameters: column - The column The datastore mapping |
createDatastoreMapping | DatastoreMapping createDatastoreMapping(JavaTypeMapping mapping, StoreManager storeMgr, DatastoreField column, String javaType)(Code) | | Method to create the datastore mapping for a particular column and java type.
Parameters: mapping - The java mapping Parameters: storeMgr - Store Manager Parameters: column - The column Parameters: javaType - The java type (isnt this stored in the java mapping ?) The datastore mapping |
getMapping | JavaTypeMapping getMapping(Class c, boolean serialised, boolean embedded, StoreManager storeMgr, String fieldName)(Code) | | Accessor for a mapping, for a java type.
Parameters: c - The java type Parameters: serialised - Whether the type is serialised Parameters: embedded - Whether the type is embedded Parameters: storeMgr - Manager for the datastore Parameters: fieldName - Name of the field (for logging only) The mapping |
getMapping | JavaTypeMapping getMapping(Class c, boolean serialised, boolean embedded, StoreManager storeMgr, ClassLoaderResolver clr)(Code) | | Accessor for a mapping, for a java type.
Parameters: c - The java type Parameters: serialised - Whether the type is serialised Parameters: embedded - Whether the type is embedded Parameters: storeMgr - Manager of the store Parameters: clr - ClassLoader resolver The mapping |
loadDatastoreMapping | void loadDatastoreMapping(PluginManager mgr, ClassLoaderResolver clr, String vendorId)(Code) | | Initialise the datastore mapping.
Parameters: mgr - the PlyginManager Parameters: clr - the ClassLoaderResolver Parameters: vendorId - the datastore vendor id |
registerDatastoreMapping | void registerDatastoreMapping(String javaTypeName, Class datastoreMappingType, String jdbcType, String sqlType, boolean dflt)(Code) | | Utility to register a datastore mapping for a java type, and the SQL/JDBC types it can be mapped to.
This can also be called to change the default setting of a mapping - just supply the same
values of java/JDBC/SQL types and a different default value
Parameters: javaTypeName - Name of the java type Parameters: datastoreMappingType - The datastore mapping Parameters: jdbcType - The JDBC type that can be used Parameters: sqlType - The SQL type that can be used Parameters: dflt - Whether this type should be used as the default mapping for this Java type |
|
|