Class OracleByteArrayType
java.lang.Object
org.apache.cayenne.access.types.ByteArrayType
org.apache.cayenne.dba.oracle.OracleByteArrayType
- All Implemented Interfaces:
ExtendedType<byte[]>
-
Field Summary
Fields inherited from class ByteArrayType
trimmingBytes, usingBlobsFields inherited from interface ExtendedType
TRIM_VALUES_THRESHOLDModifier and TypeFieldDescriptionstatic final intDefines trimming constant for toString method that helps to limit logging of large values. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetJdbcObject(PreparedStatement st, byte[] val, int pos, int type, int scale) Initializes a single parameter of a PreparedStatement with object value.Methods inherited from class ByteArrayType
getClassName, isTrimmingBytes, isUsingBlobs, logBytes, materializeObject, materializeObject, readBinaryStream, readBlob, readValueStream, setTrimmingBytes, setUsingBlobs, toString, trimBytes, writeBlobModifier and TypeMethodDescriptionReturns a full name of Java class that this ExtendedType supports.booleanbooleanReturnstrueif byte columns are handled as BLOBs internally.static voidlogBytes(StringBuilder buffer, byte[] bytes) byte[]materializeObject(CallableStatement cs, int index, int type) Reads an object from a stored procedure OUT parameter, converting it to class returned by 'getClassName' method.byte[]materializeObject(ResultSet rs, int index, int type) Reads an object from JDBC ResultSet column, converting it to class returned by 'getClassName' method.protected byte[]readBinaryStream(ResultSet rs, int index) protected byte[]protected byte[]readValueStream(InputStream in, int streamSize, int bufSize) voidsetTrimmingBytes(boolean trimingBytes) voidsetUsingBlobs(boolean usingBlobs) toString(byte[] value) Converts value of the supported type to a human-readable String representation.static byte[]trimBytes(byte[] bytes) Strips null bytes from the byte array, returning a potentially smaller array that contains no trailing zero bytes.protected BlobwriteBlob(byte[] bytes)
-
Constructor Details
-
OracleByteArrayType
public OracleByteArrayType()
-
-
Method Details
-
setJdbcObject
public void setJdbcObject(PreparedStatement st, byte[] val, int pos, int type, int scale) throws Exception Description copied from interface:ExtendedTypeInitializes a single parameter of a PreparedStatement with object value.- Specified by:
setJdbcObjectin interfaceExtendedType<byte[]>- Overrides:
setJdbcObjectin classByteArrayType- Throws:
Exception
-