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


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

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

getObjectValue

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

getObjectValueForDate

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

Returns:
Object L'oggetto rappresentante la data

getObjectValueForTimeStamp

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

Returns:
Object L'oggetto rappresentante il timeStamp

getStringValueForTimeStamp

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

Returns:
String il valore in un oggetto di tipo String

getStringValueForDate

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

Returns:
String il valore in un oggetto di tipo String