Klasse DelegatingTypeMapping
java.lang.Object
org.eclipse.emf.cdo.server.db.mapping.DelegatingTypeMapping
- Alle implementierten Schnittstellen:
ITypeMapping
- Seit:
- 4.10
- Autor:
- Eike Stepper
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.emf.cdo.server.db.mapping.ITypeMapping
ITypeMapping.Descriptor, ITypeMapping.Factory, ITypeMapping.Provider, ITypeMapping.Registry -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidcreateDBField(org.eclipse.net4j.db.ddl.IDBTable table) voidcreateDBField(org.eclipse.net4j.db.ddl.IDBTable table, String fieldName) Creates the DBField and adds it to the given table.protected Objectprotected Objectorg.eclipse.net4j.db.DBTypeabstract AbstractTypeMappingorg.eclipse.net4j.db.ddl.IDBFieldgetField()Read the value from aResultSetand convert it from the DB to the CDO representation.voidreadValueToRevision(ResultSet resultSet, InternalCDORevision revision) Read a value from aResultSet, convert it from the DB to the CDO representation and set it to the feature of the revision.voidsetDBField(org.eclipse.net4j.db.ddl.IDBTable table, String fieldName) Sets the DBField.voidsetDBType(org.eclipse.net4j.db.DBType dbType) voidsetDefaultValue(PreparedStatement stmt, int index) Set the feature's default value to the JDBCIDBPreparedStatementusing an appropriatesetXxxmethod.voidsetFeature(EStructuralFeature feature) voidsetMappingStrategy(IMappingStrategy mappingStrategy) voidsetValue(PreparedStatement stmt, int index, Object value) Set the given value to the JDBCIDBPreparedStatementusing an appropriatesetXxxmethod.voidsetValueFromRevision(PreparedStatement stmt, int index, InternalCDORevision revision) Set a value of the given revision to the JDBCIDBPreparedStatementusing an appropriatesetXxxmethod.
-
Konstruktordetails
-
DelegatingTypeMapping
public DelegatingTypeMapping()
-
-
Methodendetails
-
getDelegate
-
getFeature
- Angegeben von:
getFeaturein SchnittstelleITypeMapping- Gibt zurück:
- The feature which is associated with this mapping.
-
getField
public org.eclipse.net4j.db.ddl.IDBField getField()- Angegeben von:
getFieldin SchnittstelleITypeMapping- Gibt zurück:
- The db field which is associated with this mapping.
-
getDBType
public org.eclipse.net4j.db.DBType getDBType()- Angegeben von:
getDBTypein SchnittstelleITypeMapping- Gibt zurück:
- The db type which is associated with this mapping.
-
setMappingStrategy
- Angegeben von:
setMappingStrategyin SchnittstelleITypeMapping
-
setFeature
- Angegeben von:
setFeaturein SchnittstelleITypeMapping
-
setDBType
public void setDBType(org.eclipse.net4j.db.DBType dbType) - Angegeben von:
setDBTypein SchnittstelleITypeMapping
-
createDBField
public void createDBField(org.eclipse.net4j.db.ddl.IDBTable table) - Angegeben von:
createDBFieldin SchnittstelleITypeMapping
-
createDBField
Beschreibung aus Schnittstelle kopiert:ITypeMappingCreates the DBField and adds it to the given table. The name of the DBField is explicitly determined by the corresponding parameter.- Angegeben von:
createDBFieldin SchnittstelleITypeMapping- Parameter:
table- the table to add this field to.fieldName- the name for the DBField.
-
setDBField
Beschreibung aus Schnittstelle kopiert:ITypeMappingSets the DBField. The name of the DBField is explicitly determined by the corresponding parameter.- Angegeben von:
setDBFieldin SchnittstelleITypeMapping- Parameter:
table- the table to add this field to.fieldName- the name for the DBField.
-
setValue
Beschreibung aus Schnittstelle kopiert:ITypeMappingSet the given value to the JDBCIDBPreparedStatementusing an appropriatesetXxxmethod.- Angegeben von:
setValuein SchnittstelleITypeMapping- Parameter:
stmt- the prepared statement to set the valueindex- the index to use for thesetXxxmethod.value- the value to set.- Löst aus:
SQLException- if thesetXxxthrows it.
-
setDefaultValue
Beschreibung aus Schnittstelle kopiert:ITypeMappingSet the feature's default value to the JDBCIDBPreparedStatementusing an appropriatesetXxxmethod.- Angegeben von:
setDefaultValuein SchnittstelleITypeMapping- Parameter:
stmt- the prepared statement to set the valueindex- the index to use for thesetXxxmethod.- Löst aus:
SQLException- if thesetXxxthrows it.
-
setValueFromRevision
public void setValueFromRevision(PreparedStatement stmt, int index, InternalCDORevision revision) throws SQLException Beschreibung aus Schnittstelle kopiert:ITypeMappingSet a value of the given revision to the JDBCIDBPreparedStatementusing an appropriatesetXxxmethod. The feature from which the value is taken is determined byITypeMapping.getFeature().- Angegeben von:
setValueFromRevisionin SchnittstelleITypeMapping- Parameter:
stmt- the prepared statement to set the valueindex- the index to use for thesetXxxmethod.revision- the revision to get the value to set from.- Löst aus:
SQLException- if thesetXxxthrows it.
-
readValue
Beschreibung aus Schnittstelle kopiert:ITypeMappingRead the value from aResultSetand convert it from the DB to the CDO representation. The resultSet field to read from is determined automatically by the internalITypeMapping.getField()name.- Angegeben von:
readValuein SchnittstelleITypeMapping- Parameter:
resultSet- the result set to read from- Gibt zurück:
- the read value
- Löst aus:
SQLException- if reading the value throws an SQLException
-
readValueToRevision
public void readValueToRevision(ResultSet resultSet, InternalCDORevision revision) throws SQLException Beschreibung aus Schnittstelle kopiert:ITypeMappingRead a value from aResultSet, convert it from the DB to the CDO representation and set it to the feature of the revision. The feature is determined by getFeature() The resultSet field to read from is determined automatically by the internalITypeMapping.getField()name.- Angegeben von:
readValueToRevisionin SchnittstelleITypeMapping- Parameter:
resultSet- the result set to read fromrevision- the revision to which the value should be set.- Löst aus:
SQLException- if reading the value throws an SQLException
-
encode
-
decode
-