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 TypeMethodDescriptionbooleanCompare two instances of the class mapped by this type for persistence "equality".intGet a hashcode for the instance, consistent with persistence "equality"Retrieve an instance of the mapped class from a .voidnullSafeSet(OutputStream stream, Object value) Write an instance of the mapped class to a output stream.The class returned by nullSafeGet().voidsetParameterValues(Properties prprts) Sets the parameters used by this Type.
-
Constructor Details
-
PrimitiveArrayToBinary
public PrimitiveArrayToBinary()
-
-
Method Details
-
returnedClass
Description copied from interface:UserTypeThe class returned by nullSafeGet().- Specified by:
returnedClassin interfaceUserType- Returns:
- Class
-
equals
Description copied from interface:UserTypeCompare two instances of the class mapped by this type for persistence "equality". Equality of the persistent state. -
hashCode
Description copied from interface:UserTypeGet a hashcode for the instance, consistent with persistence "equality" -
nullSafeGet
Description copied from interface:UserTypeRetrieve an instance of the mapped class from a . Implementors should handle possibility of null values.- Specified by:
nullSafeGetin interfaceUserType- Parameters:
is- the value returned from the DBF file- Returns:
- Object
- Throws:
IOException
-
nullSafeSet
Description copied from interface:UserTypeWrite 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:
nullSafeSetin 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:
setParameterValuesin interfaceUserType- Parameters:
prprts-- Throws:
IOException
-