|
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.AbstractCollectionMapping
Represents a collection of values. Should be overridden by concrete Collection types.
| Field Summary | |
static String |
REF_COL
Metadata extension key used to mark the name of the reference column for this collection. |
| 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 | |
AbstractCollectionMapping()
|
|
| Method Summary | |
(package private) void |
addValueMatchCondition(SQLStatement sql,
Object value,
ClassResolver resolver)
Add a WHERE [data cols] = [value] for the given object value to the given sql statement. |
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. |
(package private) 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)
|
Collection |
fromArray(Object array)
Helper method to convert the given array to a collection. |
(package private) FieldMetaData |
getInverse(FieldMetaData fmd,
ClassResolver resolver)
Returns the metadata for the inverse extension of the given metadata, or null if it does not exist. |
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. |
(package private) void |
insert(Insert insert,
Object value,
int index,
StateManagerImpl sm,
Object[] pks,
int field)
Prepare the insert for storage. |
void |
insert(StateManagerImpl sm,
Object[] pks,
int field,
SQLExecutionManager sqlem)
|
(package private) 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 join,
PersistenceManagerImpl pms)
Join the key value to the class table. |
void |
joinKeyRelation(Joins join,
PersistenceManagerImpl pms)
Join this value's table to the table for the related first class object key type, if any. |
void |
select(QuerySelect sel)
Select this mapping. |
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. |
Object |
toArray(Collection vals)
Helper method to convert the given collection to an array of the proper component type. |
void |
update(StateManagerImpl sm,
Object[] pks,
int field,
SQLExecutionManager sqlem)
|
| Methods inherited from class com.solarmetric.kodo.impl.jdbc.ormapping.FieldMapping |
addColumn, addPKColumns, getDataColumns, getDataStoreValue, getInstance, getInstance, getKeyDataStoreValue, getMetaData, join, 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 |
|
| Field Detail |
public static final String REF_COL
| Constructor Detail |
public AbstractCollectionMapping()
| Method Detail |
public Column[] getRefColumns()
public void setRefColumns(Column[] val)
public Column[] getPKColumns()
public void setPKColumns(Column[] val)
public void compareToNull(ObjectSelect sel,
boolean isNull)
FieldMappingcompareToNull in class FieldMapping
public void insert(StateManagerImpl sm,
Object[] pks,
int field,
SQLExecutionManager sqlem)
throws SQLException
public void update(StateManagerImpl sm,
Object[] pks,
int field,
SQLExecutionManager sqlem)
throws SQLException
public void delete(StateManagerImpl sm,
Object[] pks,
int field,
SQLExecutionManager sqlem)
throws SQLException
void insert(Insert insert,
Object value,
int index,
StateManagerImpl sm,
Object[] pks,
int field)
void addValueMatchCondition(SQLStatement sql,
Object value,
ClassResolver resolver)
FieldMetaData getInverse(FieldMetaData fmd,
ClassResolver resolver)
public Object toArray(Collection vals)
public Collection fromArray(Object array)
boolean canMap(FieldMetaData fmd,
ClassResolver resolver)
FieldMappingcanMap in class FieldMapping
void install(FieldMetaData fmd,
JDBCConfiguration conf,
ClassResolver resolver,
DBDictionary dict)
FieldMappinginstall in class FieldMappingpublic 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 join,
PersistenceManagerImpl pms)
FieldMappingjoinKey in class FieldMapping
public void joinKeyRelation(Joins join,
PersistenceManagerImpl pms)
FieldMappingjoinKeyRelation 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 | ||||||||