Interface JdbcCpoTransform<D,J>

Type Parameters:
D - The datasource type
J - The java type
All Superinterfaces:
CpoTransform<D,J>
All Known Implementing Classes:
TransformCharArray, TransformClob, TransformGZipBytes, TransformNoOp, TransformStringChar, TransformTimestampToCalendar

public interface JdbcCpoTransform<D,J> extends CpoTransform<D,J>
Transforms are used when standard java types to data types do not work.
Since:
9/19/10
Author:
Michael Bellomo
  • Method Details

    • transformOut

      D transformOut(JdbcPreparedStatementFactory jpsf, J attributeObject) throws CpoException
      Transforms a java object to a data source object for the preparedstatement
      Parameters:
      jpsf - the prepared statement factory that will be receiving the object
      attributeObject - the java object to be transformed
      Returns:
      The datasource object
      Throws:
      CpoException - an error transforming the java object to the data object
    • transformOut

      D transformOut(JdbcCallableStatementFactory jcsf, J attributeObject) throws CpoException
      Transforms a java object to a data source object for the preparedstatement
      Parameters:
      jcsf - the callable statement factory that will be receiving the object
      attributeObject - the java object to be transformed
      Returns:
      The datasource object
      Throws:
      CpoException - an error transforming the java object to the data object