|
Tuscany DAS for Relational Databases | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Converter
A lightweight Table-column <--> DataObject-property converter framework. Converters allow a user to insert a transformation between a column value and is destination DataObject property value. For example, by default, a VARCHAR column will be represented as a String in its corresponding DataObject property. A user could insert a converter that transforms the the VARCHAR value to an Integer. If this is done then although the column returns character data, the DataObject property will be an Integer
Method Summary | |
---|---|
Object |
getColumnValue(Object propertyData)
Transform the columnData object to a new value and possibly new type. |
Object |
getPropertyValue(Object columnData)
Transform the columnData object to a new value and possibly new type. |
Method Detail |
---|
Object getPropertyValue(Object columnData)
columnData
- The column value to transorm
Object getColumnValue(Object propertyData)
propertyData
- The property value to transform
|
Tuscany DAS for Relational Databases | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |