|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.solarmetric.kodo.impl.jdbc.ormapping.Mapping
|
+--com.solarmetric.kodo.impl.jdbc.ormapping.FieldMapping
|
+--com.solarmetric.kodo.impl.jdbc.ormapping.AbstractMapMapping
Abstract mapping to be extended by concrete Map mapping types.
| Field Summary | |
static String |
KEY_COL
Metadata extension key used to mark the name of the key column for this map. |
static String |
KEY_COL_INDEX
Metadata extension key used to mark the key column as indexed. |
static String |
KEY_COL_LENGTH
Metadata extension key used to mark the key column length. |
static String |
REF_COL
Metadata extension key used to mark the name of the reference column for this map. |
| Fields inherited from class com.solarmetric.kodo.impl.jdbc.ormapping.FieldMapping |
COL_INDEX, COL_LENGTH, DATA_COL, EMPTY_COLUMNS |
| Fields inherited from class com.solarmetric.kodo.impl.jdbc.ormapping.Mapping |
_loc, _log, CUSTOM_MAPPING, dict, MAPPING, TABLE |
| Constructor Summary | |
AbstractMapMapping()
|
|
| Method Summary | |
void |
appendIsEmpty(QuerySQLBuffer sql,
Joins joins)
Create a where clause to the given statement asking if this value is empty. |
void |
appendIsNotNull(QuerySQLBuffer sql,
Joins joins)
Add a where clause to the given statement asking if this value is not null. |
void |
appendIsNull(QuerySQLBuffer sql,
Joins joins)
Add a where clause to the given statement asking if this value is null. |
protected boolean |
canMap(FieldMetaData fmd,
ClassResolver resolver)
Return true if this mapping type can handle the given field, false otherwise. |
void |
compareToNull(ObjectSelect sel,
boolean isNull)
Compare this column to null. |
void |
delete(StateManagerImpl sm,
Object[] pks,
int field,
SQLExecutionManager sqlem)
Delete the field from the secondary table for this mapping. |
Column |
getKeyColumn()
Return the key in this map. |
Column[] |
getKeyColumns()
Return the key columns of the mapping. |
Column[] |
getPKColumns()
Return the primary key columns of the owning class. |
Column[] |
getRefColumns()
Return the columns of the table this Collection is stored in which hold the PK values of the owning object. |
Table |
getSecondaryTable()
Return the secondary table used by this mapping. |
protected abstract void |
insert(Insert insert,
Object key,
Object val,
StateManagerImpl sm,
Object[] pks,
int field)
|
void |
insert(StateManagerImpl sm,
Object[] pks,
int field,
SQLExecutionManager sqlem)
Insert the given field into the secondary table for this mapping. |
protected void |
install(FieldMetaData fmd,
JDBCConfiguration conf,
ClassResolver resolver,
DBDictionary dict)
Setup this FieldMapping using the given metadata. |
void |
join(Joins joins,
PersistenceManagerImpl pm)
Join this value to the class table. |
void |
joinKey(Joins joins,
PersistenceManagerImpl pm)
Join the key value to the class table. |
void |
select(QuerySelect sel)
Select this mapping. |
void |
setKeyColumn(Column column)
Set the key column for this map. |
void |
setPKColumns(Column[] val)
Set the primary key columns of the owning class. |
void |
setRefColumns(Column[] val)
Set the columns of the table this Collection is stored in which hold the PK values of the owning object. |
void |
update(StateManagerImpl sm,
Object[] pks,
int field,
SQLExecutionManager sqlem)
Update the given field into the secondary table for this mapping. |
| Methods inherited from class com.solarmetric.kodo.impl.jdbc.ormapping.FieldMapping |
addColumn, addPKColumns, getDataColumns, getDataStoreValue, getInstance, getInstance, getKeyDataStoreValue, getMetaData, join, joinKeyRelation, joinRelation, setDataColumns |
| Methods inherited from class com.solarmetric.kodo.impl.jdbc.ormapping.Mapping |
checkExtension, createMapping, createMapping, createMappings, createMappings, getClassName, getConfiguration, getDictionary, getFieldMapping, getInstance, getTable, install |
| Methods inherited from class java.lang.Object |
|
| Methods inherited from interface com.solarmetric.kodo.impl.jdbc.ormapping.Key |
joinKey |
| Methods inherited from interface com.solarmetric.kodo.impl.jdbc.ormapping.LoadSecondary |
load |
| Field Detail |
public static final String REF_COL
public static final String KEY_COL
public static final String KEY_COL_INDEX
public static final String KEY_COL_LENGTH
| Constructor Detail |
public AbstractMapMapping()
| Method Detail |
public Column[] getRefColumns()
public void setRefColumns(Column[] val)
public Column[] getPKColumns()
public void setPKColumns(Column[] val)
public Column getKeyColumn()
public void setKeyColumn(Column column)
public void compareToNull(ObjectSelect sel,
boolean isNull)
FieldMappingcompareToNull in class FieldMapping
public void insert(StateManagerImpl sm,
Object[] pks,
int field,
SQLExecutionManager sqlem)
throws SQLException
StoreSecondaryinsert in interface StoreSecondary
public void update(StateManagerImpl sm,
Object[] pks,
int field,
SQLExecutionManager sqlem)
throws SQLException
StoreSecondaryupdate in interface StoreSecondary
public void delete(StateManagerImpl sm,
Object[] pks,
int field,
SQLExecutionManager sqlem)
throws SQLException
StoreSecondarydelete in interface StoreSecondary
protected abstract void insert(Insert insert,
Object key,
Object val,
StateManagerImpl sm,
Object[] pks,
int field)
throws SQLException
protected boolean canMap(FieldMetaData fmd,
ClassResolver resolver)
FieldMappingcanMap in class FieldMapping
protected void install(FieldMetaData fmd,
JDBCConfiguration conf,
ClassResolver resolver,
DBDictionary dict)
FieldMappinginstall in class FieldMappingpublic Table getSecondaryTable()
SecondaryTablegetSecondaryTable in interface SecondaryTablepublic void select(QuerySelect sel)
FieldMappingselect in class FieldMappingpublic Column[] getKeyColumns()
FieldMappinggetKeyColumns in class FieldMapping
public void appendIsEmpty(QuerySQLBuffer sql,
Joins joins)
FieldMappingappendIsEmpty in class FieldMapping
public void appendIsNull(QuerySQLBuffer sql,
Joins joins)
FieldMappingappendIsNull in class FieldMapping
public void appendIsNotNull(QuerySQLBuffer sql,
Joins joins)
FieldMappingappendIsNotNull in class FieldMapping
public void join(Joins joins,
PersistenceManagerImpl pm)
FieldMappingjoin in class FieldMapping
public void joinKey(Joins joins,
PersistenceManagerImpl pm)
FieldMappingjoinKey in class FieldMapping
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||