Class ArrayColumnMapping

  • All Implemented Interfaces:
    ColumnMapping

    public class ArrayColumnMapping
    extends AbstractColumnMapping
    Mapping of an ARRAY column. Note that this is designed around how PostgreSQL handles arrays, and is largely limited to what is available for that datastore.
    • Field Detail

      • arrayElemSqlType

        java.lang.String arrayElemSqlType
        SQL type for the element.
    • Method Detail

      • initialize

        private void initialize()
      • setObject

        public void setObject​(java.sql.PreparedStatement ps,
                              int param,
                              java.lang.Object value)
        Description copied from interface: ColumnMapping
        Sets a value into ps at position specified by paramIndex.
        Specified by:
        setObject in interface ColumnMapping
        Overrides:
        setObject in class AbstractColumnMapping
        Parameters:
        ps - PreparedStatement
        param - the position of the value in the statement
        value - the value
      • getObject

        public java.lang.Object getObject​(java.sql.ResultSet rs,
                                          int param)
        Description copied from interface: ColumnMapping
        Obtains a value from resultSet at position specified by exprIndex.
        Specified by:
        getObject in interface ColumnMapping
        Overrides:
        getObject in class AbstractColumnMapping
        Parameters:
        rs - ResultSet
        param - the position of the value in the result
        Returns:
        the value