|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.synchronoss.cpo.transform.jdbc.TransformTimestampToCalendar
public class TransformTimestampToCalendar
This is an example of a transform that does nothing. It is used to test the mechanics of the transform logic within CPO.
| Constructor Summary | |
|---|---|
TransformTimestampToCalendar()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransformTimestampToCalendar()
| Method Detail |
|---|
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.
CpoException
public Timestamp transformOut(JdbcCallableStatementFactory jcsf,
Calendar cal)
throws CpoException
java.util.Calendar from the CPO Bean into a
java.sql.Timestamp to be stored by JDBC
transformOut 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 instance
CpoException
public Timestamp transformOut(JdbcPreparedStatementFactory jpsf,
Calendar cal)
throws CpoException
java.util.Calendar from the CPO Bean into a
java.sql.Timestamp to be stored by JDBC
transformOut 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 instance
CpoException
public Timestamp transformOut(Calendar j)
throws CpoException,
UnsupportedOperationException
transformOut in interface CpoTransform<Timestamp,Calendar>CpoException
UnsupportedOperationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||