it.eng.spago.dbaccess.sql.mappers
Class OracleSQLMapper

java.lang.Object
  extended byit.eng.spago.dbaccess.sql.mappers.OracleSQLMapper
All Implemented Interfaces:
SQLMapper

public class OracleSQLMapper
extends java.lang.Object
implements SQLMapper

Questa classe è 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 Questa classe implementa il Mapper per Database ORACLE


Constructor Summary
OracleSQLMapper()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleSQLMapper

public OracleSQLMapper()
Method Detail

getStringValue

public java.lang.String getStringValue(int sqlType,
                                       java.lang.Object objectValue)
Specified by:
getStringValue in interface SQLMapper

getObjectValue

public java.lang.Object getObjectValue(int sqlType,
                                       java.lang.String stringValue)
Specified by:
getObjectValue in interface SQLMapper

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

Specified by:
getStringValueForTimeStamp in interface SQLMapper
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

Specified by:
getStringValueForDate in interface SQLMapper
Returns:
String}> il valore in un oggetto di tipo String

getObjectValueForDate

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

Specified by:
getObjectValueForDate in interface SQLMapper
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

Specified by:
getObjectValueForTimeStamp in interface SQLMapper
Parameters:
stringTimeStampValue - Il valore di un timestamp in una stringa
Returns:
Object L'oggetto rappresentante il timeStamp