|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface implemented by all mappings.
Method Summary | |
void |
addMappingInfoAttributes(Collection attrs)
Add all mapping attributes names used by this mapping to the given collection. |
void |
delete(KodoStateManager sm,
JDBCStoreManager store)
Override this method to customize flushing this mapping. |
void |
delete(KodoStateManager sm,
RowManager rm)
Set the where values appropriately to delete the proper instance, and set all relations on non-secondary tables as updates. |
void |
fromMappingInfo(MappingInfo info,
boolean adapt)
Deserialize this mapping from a simple MappingInfo
instance parsed from XML or some other format. |
MappingRepository |
getMappingRepository()
Return the mapping's repository. |
String |
getMappingType()
Return the abbreviated name of this mapping, or the full class name if it is a custom mapping. |
Table |
getTable()
Return the mapping's primary data table. |
void |
insert(KodoStateManager sm,
JDBCStoreManager store)
Override this method to customize flushing this mapping. |
void |
insert(KodoStateManager sm,
RowManager rm)
Set values for the mapping into the proper rows. |
Boolean |
isCustomDelete(KodoStateManager sm)
Return Boolean.FALSE if this mapping does not customize the
delete process, Boolean.TRUE if it does, or null if it does
customize the delete, but also relies on the standard delete method
being called. |
Boolean |
isCustomInsert(KodoStateManager sm)
Return Boolean.FALSE if this mapping does not customize the
insert process, Boolean.TRUE if it does, or null if it does
customize the insert, but also relies on the standard insert method
being called. |
Boolean |
isCustomUpdate(KodoStateManager sm)
Return Boolean.FALSE if this mapping does not customize the
update process, Boolean.TRUE if it does, or null if it does
customize the update, but also relies on the standard update method
being called. |
boolean |
map()
Map a new instance of this mapping type. |
void |
refSchemaComponents()
Increment the reference count of all used schema components. |
void |
reverseMap(SchemaGroup schema,
ReverseMappingTool tool)
Create mappings from the schema, using the given tool. |
void |
toMappingInfo(MappingInfo info)
Serialize this mapping to a simple MappingInfo instance
for transfer to XML or some other format. |
void |
update(KodoStateManager sm,
JDBCStoreManager store)
Override this method to customize flushing this mapping. |
void |
update(KodoStateManager sm,
RowManager rm)
Set values for the mapping into the proper rows. |
Method Detail |
public MappingRepository getMappingRepository()
public String getMappingType()
public void toMappingInfo(MappingInfo info)
MappingInfo
instance
for transfer to XML or some other format.public void fromMappingInfo(MappingInfo info, boolean adapt)
MappingInfo
instance parsed from XML or some other format. If the info is
incompatible and adapt
is true, try to adapt to the new
info. This method must validate
the given mapping information using the SchemaGroup.findTable(kodo.jdbc.schema.Table)
method to find any needed tables, the Table.getColumn(java.lang.String)
method
to retrieve columns from those tables, and the
Column.isCompatible(int, int)
method to check all column types.
This validation is important, as some schema groups use these methods
to build themselves up dynamically rather than reading schema
information from the database.MappingInfoNotFoundException
- if the given info is invalidpublic void addMappingInfoAttributes(Collection attrs)
public boolean map()
public void reverseMap(SchemaGroup schema, ReverseMappingTool tool)
public Table getTable()
public void refSchemaComponents()
public void insert(KodoStateManager sm, RowManager rm) throws SQLException
public void update(KodoStateManager sm, RowManager rm) throws SQLException
insert(kodo.runtime.KodoStateManager, kodo.jdbc.sql.RowManager)
public void delete(KodoStateManager sm, RowManager rm) throws SQLException
insert(kodo.runtime.KodoStateManager, kodo.jdbc.sql.RowManager)
public Boolean isCustomInsert(KodoStateManager sm)
Boolean.FALSE
if this mapping does not customize the
insert process, Boolean.TRUE
if it does, or null if it does
customize the insert, but also relies on the standard insert method
being called. Implement the
insert(KodoStateManager,JDBCStoreManager)
method
to implement the custom insertion behavior.public Boolean isCustomUpdate(KodoStateManager sm)
Boolean.FALSE
if this mapping does not customize the
update process, Boolean.TRUE
if it does, or null if it does
customize the update, but also relies on the standard update method
being called. Implement the
update(KodoStateManager,JDBCStoreManager)
method
to override the default update behavior.public Boolean isCustomDelete(KodoStateManager sm)
Boolean.FALSE
if this mapping does not customize the
delete process, Boolean.TRUE
if it does, or null if it does
customize the delete, but also relies on the standard delete method
being called. Implement the
delete(KodoStateManager,JDBCStoreManager)
method
to override the default deletion behavior.public void insert(KodoStateManager sm, JDBCStoreManager store) throws SQLException
public void update(KodoStateManager sm, JDBCStoreManager store) throws SQLException
public void delete(KodoStateManager sm, JDBCStoreManager store) throws SQLException
|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |