public class TransformTimestampToCalendar extends Object implements JdbcCpoTransform<Timestamp,Calendar>
| Constructor and Description |
|---|
TransformTimestampToCalendar() |
| Modifier and Type | Method and Description |
|---|---|
Calendar |
transformIn(Timestamp ts)
Transforms the
java.sql.Timestamp returned from JDBC into a
java.util.Calendar to be used by the class. |
Timestamp |
transformOut(Calendar j) |
Timestamp |
transformOut(JdbcCallableStatementFactory jcsf,
Calendar cal)
Transforms a
java.util.Calendar from the CPO Bean into a
java.sql.Timestamp to be stored by JDBC |
Timestamp |
transformOut(JdbcPreparedStatementFactory jpsf,
Calendar cal)
Transforms a
java.util.Calendar from the CPO Bean into a
java.sql.Timestamp to be stored by JDBC |
public Calendar transformIn(Timestamp ts) throws CpoException
java.sql.Timestamp returned from JDBC into a
java.util.Calendar to be used by the class.transformIn in interface CpoTransform<Timestamp,Calendar>ts - The Timestamp from JDBC.CpoExceptionpublic Timestamp transformOut(JdbcCallableStatementFactory jcsf, Calendar cal) throws CpoException
java.util.Calendar from the CPO Bean into a
java.sql.Timestamp to be stored by JDBCtransformOut in interface JdbcCpoTransform<Timestamp,Calendar>jcsf - a reference to the JdbcCallableStatementFactory. This is necessary as some DBMSs (ORACLE !#$%^&!) that
require access to the connection to deal with certain datatypes.A - Calendar instanceCpoExceptionpublic Timestamp transformOut(JdbcPreparedStatementFactory jpsf, Calendar cal) throws CpoException
java.util.Calendar from the CPO Bean into a
java.sql.Timestamp to be stored by JDBCtransformOut in interface JdbcCpoTransform<Timestamp,Calendar>jpsf - a reference to the JdbcPreparedStatementFactory. This is necessary as some DBMSs (ORACLE !#$%^&!) that
require access to the connection to deal with certain datatypes.A - Calendar instanceCpoExceptionpublic Timestamp transformOut(Calendar j) throws CpoException, UnsupportedOperationException
transformOut in interface CpoTransform<Timestamp,Calendar>CpoExceptionUnsupportedOperationExceptionCopyright © 2014. All Rights Reserved.