|
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.LobMapping
Represents the mapping of a locator object column in the owning class' primary table. Locator objects are loaded and stored as secondary mappings for efficiency and due to the special handling needed to deal with them.
| Field Summary | |
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 | |
LobMapping()
|
|
| 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 |
delete(Delete del,
StateManagerImpl sm,
int field)
Delete the field from the primary table for this mapping. |
Column[] |
getColumns()
Return all columns of the primary table used only by this mapping. |
Column[] |
getKeyColumns()
Return the key columns of the mapping. |
protected ResultSet |
getLoadResultSet(StateManagerImpl sm,
Object[] pks,
int field,
SQLExecutionManager sqlem)
|
Column[] |
getPKColumns()
Return the primary key columns of the owning class. |
Column[] |
getRefColumns()
|
protected abstract int |
getSQLType()
Returns the SQLType code for this concrete LOB implementation. |
void |
insert(Insert insert,
StateManagerImpl sm,
int field)
Insert the given field into the primary 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 |
joinKeyRelation(Joins joins,
PersistenceManagerImpl pm)
Join this value's table to the table for the related first class object key type, if any. |
void |
joinRelation(Joins joins,
PersistenceManagerImpl pm)
Join this value's table to the table for the related first class object type, if any. |
void |
load(StateManagerImpl sm,
Object[] pks,
int field,
SQLExecutionManager sqlem)
Load the value of this mapping for the given instance. |
void |
select(QuerySelect sel)
Select this mapping. |
void |
setPKColumns(Column[] columns)
Set the primary key columns of the owning class. |
void |
setRefColumns(Column[] refColumns)
|
void |
update(Update update,
StateManagerImpl sm,
int field)
Update the given field into the primary table for this mapping. |
| Methods inherited from class com.solarmetric.kodo.impl.jdbc.ormapping.FieldMapping |
addColumn, addPKColumns, compareToNull, getDataColumns, getDataStoreValue, getInstance, getInstance, getKeyDataStoreValue, getMetaData, join, 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 LobMapping()
| Method Detail |
protected abstract int getSQLType()
public Column[] getPKColumns()
public void setRefColumns(Column[] refColumns)
public Column[] getRefColumns()
public void setPKColumns(Column[] columns)
public void load(StateManagerImpl sm,
Object[] pks,
int field,
SQLExecutionManager sqlem)
throws SQLException
LoadSecondaryload in interface LoadSecondarycom.solarmetric.kodo.impl.jdbc.ormapping.LoadSecondarystmnt - The caller is responsible for closing the statement.
protected ResultSet getLoadResultSet(StateManagerImpl sm,
Object[] pks,
int field,
SQLExecutionManager sqlem)
throws SQLException
public void insert(Insert insert,
StateManagerImpl sm,
int field)
throws SQLException
StorePrimaryinsert in interface StorePrimary
public void update(Update update,
StateManagerImpl sm,
int field)
throws SQLException
StorePrimaryupdate in interface StorePrimary
public void delete(Delete del,
StateManagerImpl sm,
int field)
throws SQLException
StorePrimarydelete in interface StorePrimary
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 Column[] getColumns()
PrimaryTablegetColumns in interface PrimaryTablepublic 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
public void joinRelation(Joins joins,
PersistenceManagerImpl pm)
FieldMappingjoinRelation in class FieldMapping
public void joinKeyRelation(Joins joins,
PersistenceManagerImpl pm)
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 | ||||||||