|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| 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.OneToOneMapping
Represents a 1-1 relation with a persistent object type, where the PK value of the related type is stored in the primary table of the owning class.
| Fields inherited from class com.solarmetric.kodo.impl.jdbc.ormapping.FieldMapping |
|---|
COL_INDEX, COL_LENGTH, DATA_COL |
| Fields inherited from class com.solarmetric.kodo.impl.jdbc.ormapping.Mapping |
|---|
CUSTOM_MAPPING, dict, MAPPING, TABLE |
| Fields inherited from interface com.solarmetric.kodo.impl.jdbc.ormapping.Relation |
|---|
INVERSE, READ_ONLY |
| Constructor Summary | |
|---|---|
OneToOneMapping()
|
|
| Method Summary | |
|---|---|
protected boolean |
canMap(FieldMetaData fmd,
ClassResolver resolver)
|
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[] |
getPKColumns()
Return the primary key columns of the owning class. |
Column[] |
getRelationPKColumns()
Return the primary key column(s) of the related object. |
Class |
getRelationType()
Return the type the mapping relates to. |
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)
|
protected void |
installOneToOneMapping(FieldMetaData fmd,
JDBCConfiguration conf,
ClassResolver resolver,
DBDictionary dict)
|
protected boolean |
isValidInverse(FieldMetaData fmd,
FieldMetaData imd)
determine first if there is an inverse. |
void |
join(ObjectSelect sel)
Join this mapping to the given select statement. |
void |
load(StateManagerImpl sm,
int field,
ResultSet rs,
int startColumn)
Load the value of this mapping from the ResultSet produced by the Select passed to the select(com.solarmetric.kodo.impl.jdbc.sql.Select) method. |
void |
load(StateManagerImpl sm,
Object[] pks,
int field,
SQLExecutionManager sqlem)
Load the value of this mapping for the given instance. |
void |
select(Select sel)
Select the value of this mapping. |
void |
setPKColumns(Column[] val)
Set the primary key columns of the owning class. |
void |
setRelationPKColumns(Column[] columns)
|
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 |
|---|
compareToNull, getDataColumns, getInstance, getInstance, getMetaData, setDataColumns |
| Methods inherited from class com.solarmetric.kodo.impl.jdbc.ormapping.Mapping |
|---|
createMappings, createMappings, getConfiguration, getDictionary, getInstance, getTable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.solarmetric.kodo.impl.jdbc.ormapping.Relation |
|---|
getConfiguration |
| Constructor Detail |
public OneToOneMapping()
| Method Detail |
public Column[] getPKColumns()
public void setPKColumns(Column[] val)
public Class getRelationType()
RelationgetRelationType in interface Relationpublic Column[] getRelationPKColumns()
RelationgetRelationPKColumns in interface Relationpublic void setRelationPKColumns(Column[] columns)
public void select(Select sel)
LoadPrimaryselect in interface LoadPrimary
public void load(StateManagerImpl sm,
int field,
ResultSet rs,
int startColumn)
throws SQLException
LoadPrimaryLoadPrimary.select(com.solarmetric.kodo.impl.jdbc.sql.Select) method.load in interface LoadPrimarypublic void join(ObjectSelect sel)
FieldMappingjoin in class FieldMapping
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.
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)
protected final void install(FieldMetaData fmd,
JDBCConfiguration conf,
ClassResolver resolver,
DBDictionary dict)
protected void installOneToOneMapping(FieldMetaData fmd,
JDBCConfiguration conf,
ClassResolver resolver,
DBDictionary dict)
protected boolean isValidInverse(FieldMetaData fmd,
FieldMetaData imd)
public Column[] getColumns()
PrimaryTablegetColumns in interface PrimaryTable
|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||