|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITypeMapping
Mapping of single values to and from the database.
| Method Summary | |
|---|---|
void |
createDBField(org.eclipse.net4j.db.ddl.IDBTable table)
Creates the DBField and adds it to the given table. |
void |
createDBField(org.eclipse.net4j.db.ddl.IDBTable table,
java.lang.String fieldName)
Creates the DBField and adds it to the given table. |
org.eclipse.emf.ecore.EStructuralFeature |
getFeature()
|
org.eclipse.net4j.db.ddl.IDBField |
getField()
|
java.lang.Object |
readValue(java.sql.ResultSet resultSet,
int i)
Read a value from a ResultSet and convert it from the DB to the CDO representation. |
void |
readValueToRevision(java.sql.ResultSet resultSet,
int i,
InternalCDORevision revision)
Read a value from a ResultSet, convert it from the DB to the CDO representation and set it to the feature
of the revision. |
void |
setValue(java.sql.PreparedStatement stmt,
int index,
java.lang.Object value)
Set the given value to the JDBC PreparedStatement using an appropriate setXxx method. |
void |
setValueFromRevision(java.sql.PreparedStatement stmt,
int index,
InternalCDORevision value)
Set a value of the given revision to the JDBC PreparedStatement using an appropriate setXxx
method. |
| Method Detail |
|---|
org.eclipse.emf.ecore.EStructuralFeature getFeature()
org.eclipse.net4j.db.ddl.IDBField getField()
void createDBField(org.eclipse.net4j.db.ddl.IDBTable table)
table - the table to add this field to.
void createDBField(org.eclipse.net4j.db.ddl.IDBTable table,
java.lang.String fieldName)
table - the table to add this field to.fieldName - the name for the DBField.
void setValue(java.sql.PreparedStatement stmt,
int index,
java.lang.Object value)
throws java.sql.SQLException
PreparedStatement using an appropriate setXxx method.
stmt - the prepared statement to set the valueindex - the index to use for the setXxx method.value - the value to set.
java.sql.SQLException - if the setXxx throws it.
void setValueFromRevision(java.sql.PreparedStatement stmt,
int index,
InternalCDORevision value)
throws java.sql.SQLException
PreparedStatement using an appropriate setXxx
method. The feature from which the value is taken is determined by getFeature().
stmt - the prepared statement to set the valueindex - the index to use for the setXxx method.revision - the revision to get the value to set from.
java.sql.SQLException - if the setXxx throws it.
java.lang.Object readValue(java.sql.ResultSet resultSet,
int i)
throws java.sql.SQLException
ResultSet and convert it from the DB to the CDO representation.
resultSet - the result set to read fromi - the column index in the result set to read from
java.sql.SQLException - if reading the value throws an SQLException
void readValueToRevision(java.sql.ResultSet resultSet,
int i,
InternalCDORevision revision)
throws java.sql.SQLException
ResultSet, convert it from the DB to the CDO representation and set it to the feature
of the revision. The feature is determined by getFeature()
resultSet - the result set to read fromi - the column index in the result set to read fromrevision - the revision to which the value should be set.
java.sql.SQLException - if reading the value throws an SQLException
|
Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||