it.eng.spago.dbaccess.sql.mappers
Interface SQLMapper

All Known Implementing Classes:
DB2SQLMapper, MySQLMapper, OracleSQLMapper

public interface SQLMapper

Questa interfaccia definisce le funzioni di un SQLMapper che è responsabile per la conversione da oggetti a stringa e viceversa per gli oggetti di tipo sql.DATE e sql.TIMESTAMP che non sono standard e variano a seconda del vendor

Version:
1.0
Author:
Andrea Zoppello

Method Summary
 java.lang.Object getObjectValue(int sqlType, java.lang.String stringValue)
           
 java.lang.Object getObjectValueForDate(java.lang.String stringDateValue)
          Questo metodo converte un valore data di tipo Stringa in un oggetto
 java.lang.Object getObjectValueForTimeStamp(java.lang.String stringTimeStampValue)
          Questo metodo converte un valore timestamp di tipo Stringa in un oggetto
 java.lang.String getStringValue(int sqlType, java.lang.Object objectValue)
           
 java.lang.String getStringValueForDate(java.lang.Object objectDateValue)
          Questo metodo converte un valore data di tipo Object in un oggetto di tipo String
 java.lang.String getStringValueForTimeStamp(java.lang.Object objectTimeStampValue)
          Questo metodo converte un valore timestamp di tipo Object in un oggetto di tipo String
 

Method Detail

getStringValue

java.lang.String getStringValue(int sqlType,
                                java.lang.Object objectValue)

getObjectValue

java.lang.Object getObjectValue(int sqlType,
                                java.lang.String stringValue)

getObjectValueForDate

java.lang.Object getObjectValueForDate(java.lang.String stringDateValue)
Questo metodo converte un valore data di tipo Stringa in un oggetto

Parameters:
String - il valore di una data in una Stringa
Returns:
Object L'oggetto rappresentante la data

getObjectValueForTimeStamp

java.lang.Object getObjectValueForTimeStamp(java.lang.String stringTimeStampValue)
Questo metodo converte un valore timestamp di tipo Stringa in un oggetto

Parameters:
String - il valore di un timestamp in una stringa
Returns:
Object L'oggetto rappresentante il timeStamp

getStringValueForTimeStamp

java.lang.String getStringValueForTimeStamp(java.lang.Object objectTimeStampValue)
Questo metodo converte un valore timestamp di tipo Object in un oggetto di tipo String

Parameters:
Object - objectTimeStampValue - L'oggetto rappresentante il timeStamp
Returns:
String il valore in un oggetto di tipo String

getStringValueForDate

java.lang.String getStringValueForDate(java.lang.Object objectDateValue)
Questo metodo converte un valore data di tipo Object in un oggetto di tipo String

Parameters:
Object - objectDateValue - L'oggetto rappresentante la data
Returns:
String il valore in un oggetto di tipo String