Class PrimitiveArrayToBinary

java.lang.Object
hec.io.dbf.types.PrimitiveArrayToBinary
All Implemented Interfaces:
UserType

public class PrimitiveArrayToBinary extends Object implements UserType
  • Constructor Details

    • PrimitiveArrayToBinary

      public PrimitiveArrayToBinary()
  • Method Details

    • returnedClass

      public Class returnedClass()
      Description copied from interface: UserType
      The class returned by nullSafeGet().
      Specified by:
      returnedClass in interface UserType
      Returns:
      Class
    • equals

      public boolean equals(Object o, Object o1)
      Description copied from interface: UserType
      Compare two instances of the class mapped by this type for persistence "equality". Equality of the persistent state.
      Specified by:
      equals in interface UserType
      Returns:
      boolean
    • hashCode

      public int hashCode(Object o)
      Description copied from interface: UserType
      Get a hashcode for the instance, consistent with persistence "equality"
      Specified by:
      hashCode in interface UserType
    • nullSafeGet

      public Object nullSafeGet(InputStream is) throws IOException
      Description copied from interface: UserType
      Retrieve an instance of the mapped class from a . Implementors should handle possibility of null values.
      Specified by:
      nullSafeGet in interface UserType
      Parameters:
      is - the value returned from the DBF file
      Returns:
      Object
      Throws:
      IOException
    • nullSafeSet

      public void nullSafeSet(OutputStream stream, Object value) throws IOException
      Description copied from interface: UserType
      Write an instance of the mapped class to a output stream. Implementors should handle possibility of null values. A multi-column type should be written to parameters starting from index.
      Specified by:
      nullSafeSet in interface UserType
      Parameters:
      stream - the stream to write the data to.
      value - the object to write
      Throws:
      IOException
    • setParameterValues

      public void setParameterValues(Properties prprts) throws IOException
      Sets the parameters used by this Type. The properties should be the class of the Enumerated Type being stored in the DB. The property to set is "enumClassname"
      Specified by:
      setParameterValues in interface UserType
      Parameters:
      prprts -
      Throws:
      IOException