com.solarmetric.kodo.impl.jdbc.ormapping
Class ValueMapping
java.lang.Object
|
+--com.solarmetric.kodo.impl.jdbc.ormapping.Mapping
|
+--com.solarmetric.kodo.impl.jdbc.ormapping.FieldMapping
|
+--com.solarmetric.kodo.impl.jdbc.ormapping.ValueMapping
- All Implemented Interfaces:
- LoadPrimary, PrimaryTable, StorePrimary
- public class ValueMapping
- extends FieldMapping
- implements LoadPrimary, StorePrimary, PrimaryTable
Represents a simple FieldMapping of a value to a column of the
owning class' primary table.
|
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. |
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)
|
void |
load(StateManagerImpl sm,
int field,
ResultSet rs,
int index)
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 |
select(Select sel)
Select the value of this mapping. |
void |
update(Update update,
StateManagerImpl sm,
int field)
Update the given field into the primary table for this mapping. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueMapping
public ValueMapping()
select
public void select(Select sel)
- Description copied from interface:
LoadPrimary
- Select the value of this mapping.
- Specified by:
select in interface LoadPrimary
load
public void load(StateManagerImpl sm,
int field,
ResultSet rs,
int index)
throws SQLException
- Description copied from interface:
LoadPrimary
- Load the value of this mapping from the ResultSet produced by
the Select passed to the
LoadPrimary.select(com.solarmetric.kodo.impl.jdbc.sql.Select) method.
- Specified by:
load in interface LoadPrimary
insert
public void insert(Insert insert,
StateManagerImpl sm,
int field)
throws SQLException
- Description copied from interface:
StorePrimary
- Insert the given field into the primary table for this mapping.
- Specified by:
insert in interface StorePrimary
update
public void update(Update update,
StateManagerImpl sm,
int field)
throws SQLException
- Description copied from interface:
StorePrimary
- Update the given field into the primary table for this mapping.
- Specified by:
update in interface StorePrimary
delete
public void delete(Delete del,
StateManagerImpl sm,
int field)
throws SQLException
- Description copied from interface:
StorePrimary
- Delete the field from the primary table for this mapping.
- Specified by:
delete in interface StorePrimary
canMap
protected boolean canMap(FieldMetaData fmd,
ClassResolver resolver)
install
protected void install(FieldMetaData fmd,
JDBCConfiguration conf,
ClassResolver resolver,
DBDictionary dict)
getColumns
public Column[] getColumns()
- Description copied from interface:
PrimaryTable
- Return all columns of the primary table used only by this mapping.
- Specified by:
getColumns in interface PrimaryTable
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.