Package hec.io.dbf.types
Class PrimitiveArrayToBinary
java.lang.Object
hec.io.dbf.types.PrimitiveArrayToBinary
- All Implemented Interfaces:
UserType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare two instances of the class mapped by this type for persistence "equality".int
Get a hashcode for the instance, consistent with persistence "equality"Retrieve an instance of the mapped class from a .void
nullSafeSet
(OutputStream stream, Object value) Write an instance of the mapped class to a output stream.The class returned by nullSafeGet().void
setParameterValues
(Properties prprts) Sets the parameters used by this Type.
-
Constructor Details
-
PrimitiveArrayToBinary
public PrimitiveArrayToBinary()
-
-
Method Details
-
returnedClass
Description copied from interface:UserType
The class returned by nullSafeGet().- Specified by:
returnedClass
in interfaceUserType
- Returns:
- Class
-
equals
Description copied from interface:UserType
Compare two instances of the class mapped by this type for persistence "equality". Equality of the persistent state. -
hashCode
Description copied from interface:UserType
Get a hashcode for the instance, consistent with persistence "equality" -
nullSafeGet
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 interfaceUserType
- Parameters:
is
- the value returned from the DBF file- Returns:
- Object
- Throws:
IOException
-
nullSafeSet
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 interfaceUserType
- Parameters:
stream
- the stream to write the data to.value
- the object to write- Throws:
IOException
-
setParameterValues
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 interfaceUserType
- Parameters:
prprts
-- Throws:
IOException
-