blob: b756a81ad1e4cfda7edfb832582a4307a08ef671 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_67) on Sat Sep 20 17:22:56 FET 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>ByteArrayType (Cayenne Documentation 3.1 API)</title>
<meta name="date" content="2014-09-20">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ByteArrayType (Cayenne Documentation 3.1 API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ByteArrayType.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/cayenne/access/types/BooleanType.html" title="class in org.apache.cayenne.access.types"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/cayenne/access/types/ByteType.html" title="class in org.apache.cayenne.access.types"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/cayenne/access/types/ByteArrayType.html" target="_top">Frames</a></li>
<li><a href="ByteArrayType.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.cayenne.access.types</div>
<h2 title="Class ByteArrayType" class="title">Class ByteArrayType</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.cayenne.access.types.ByteArrayType</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../org/apache/cayenne/access/types/ExtendedType.html" title="interface in org.apache.cayenne.access.types">ExtendedType</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../../org/apache/cayenne/dba/oracle/OracleByteArrayType.html" title="class in org.apache.cayenne.dba.oracle">OracleByteArrayType</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">ByteArrayType</span>
extends <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="../../../../../org/apache/cayenne/access/types/ExtendedType.html" title="interface in org.apache.cayenne.access.types">ExtendedType</a></pre>
<div class="block">Handles <code>byte[]</code>, mapping it as either of JDBC types - BLOB or (VAR)BINARY.
Can be configured to trim trailing zero bytes.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cayenne/access/types/ByteArrayType.html#trimmingBytes">trimmingBytes</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cayenne/access/types/ByteArrayType.html#usingBlobs">usingBlobs</a></strong></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/cayenne/access/types/ByteArrayType.html#ByteArrayType(boolean,%20boolean)">ByteArrayType</a></strong>(boolean&nbsp;trimmingBytes,
boolean&nbsp;usingBlobs)</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cayenne/access/types/ByteArrayType.html#getClassName()">getClassName</a></strong>()</code>
<div class="block">Returns a full name of Java class that this ExtendedType supports.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cayenne/access/types/ByteArrayType.html#isTrimmingBytes()">isTrimmingBytes</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cayenne/access/types/ByteArrayType.html#isUsingBlobs()">isUsingBlobs</a></strong>()</code>
<div class="block">Returns <code>true</code> if byte columns are handled as BLOBs internally.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cayenne/access/types/ByteArrayType.html#materializeObject(java.sql.CallableStatement,%20int,%20int)">materializeObject</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/CallableStatement.html?is-external=true" title="class or interface in java.sql">CallableStatement</a>&nbsp;cs,
int&nbsp;index,
int&nbsp;type)</code>
<div class="block">Reads an object from a stored procedure OUT parameter, converting it to class
returned by 'getClassName' method.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cayenne/access/types/ByteArrayType.html#materializeObject(java.sql.ResultSet,%20int,%20int)">materializeObject</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/ResultSet.html?is-external=true" title="class or interface in java.sql">ResultSet</a>&nbsp;rs,
int&nbsp;index,
int&nbsp;type)</code>
<div class="block">Reads an object from JDBC ResultSet column, converting it to class returned by
'getClassName' method.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cayenne/access/types/ByteArrayType.html#readBinaryStream(java.sql.ResultSet,%20int)">readBinaryStream</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/ResultSet.html?is-external=true" title="class or interface in java.sql">ResultSet</a>&nbsp;rs,
int&nbsp;index)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cayenne/access/types/ByteArrayType.html#readBlob(java.sql.Blob)">readBlob</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/Blob.html?is-external=true" title="class or interface in java.sql">Blob</a>&nbsp;blob)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cayenne/access/types/ByteArrayType.html#readValueStream(java.io.InputStream,%20int,%20int)">readValueStream</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;in,
int&nbsp;streamSize,
int&nbsp;bufSize)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cayenne/access/types/ByteArrayType.html#setJdbcObject(java.sql.PreparedStatement,%20java.lang.Object,%20int,%20int,%20int)">setJdbcObject</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/PreparedStatement.html?is-external=true" title="class or interface in java.sql">PreparedStatement</a>&nbsp;st,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;val,
int&nbsp;pos,
int&nbsp;type,
int&nbsp;scale)</code>
<div class="block">Initializes a single parameter of a PreparedStatement with object value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cayenne/access/types/ByteArrayType.html#setTrimmingBytes(boolean)">setTrimmingBytes</a></strong>(boolean&nbsp;trimingBytes)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cayenne/access/types/ByteArrayType.html#setUsingBlobs(boolean)">setUsingBlobs</a></strong>(boolean&nbsp;usingBlobs)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cayenne/access/types/ByteArrayType.html#trimBytes(byte[])">trimBytes</a></strong>(byte[]&nbsp;bytes)</code>
<div class="block">Strips null bytes from the byte array, returning a potentially smaller array that
contains no trailing zero bytes.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/Blob.html?is-external=true" title="class or interface in java.sql">Blob</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cayenne/access/types/ByteArrayType.html#writeBlob(byte[])">writeBlob</a></strong>(byte[]&nbsp;bytes)</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="trimmingBytes">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trimmingBytes</h4>
<pre>protected&nbsp;boolean trimmingBytes</pre>
</li>
</ul>
<a name="usingBlobs">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>usingBlobs</h4>
<pre>protected&nbsp;boolean usingBlobs</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="ByteArrayType(boolean, boolean)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ByteArrayType</h4>
<pre>public&nbsp;ByteArrayType(boolean&nbsp;trimmingBytes,
boolean&nbsp;usingBlobs)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="trimBytes(byte[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trimBytes</h4>
<pre>public static&nbsp;byte[]&nbsp;trimBytes(byte[]&nbsp;bytes)</pre>
<div class="block">Strips null bytes from the byte array, returning a potentially smaller array that
contains no trailing zero bytes.</div>
</li>
</ul>
<a name="getClassName()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getClassName</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getClassName()</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/cayenne/access/types/ExtendedType.html#getClassName()">ExtendedType</a></code></strong></div>
<div class="block">Returns a full name of Java class that this ExtendedType supports.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/cayenne/access/types/ExtendedType.html#getClassName()">getClassName</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/cayenne/access/types/ExtendedType.html" title="interface in org.apache.cayenne.access.types">ExtendedType</a></code></dd>
</dl>
</li>
</ul>
<a name="materializeObject(java.sql.ResultSet, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>materializeObject</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;materializeObject(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/ResultSet.html?is-external=true" title="class or interface in java.sql">ResultSet</a>&nbsp;rs,
int&nbsp;index,
int&nbsp;type)
throws <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/cayenne/access/types/ExtendedType.html#materializeObject(java.sql.ResultSet,%20int,%20int)">ExtendedType</a></code></strong></div>
<div class="block">Reads an object from JDBC ResultSet column, converting it to class returned by
'getClassName' method.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/cayenne/access/types/ExtendedType.html#materializeObject(java.sql.ResultSet,%20int,%20int)">materializeObject</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/cayenne/access/types/ExtendedType.html" title="interface in org.apache.cayenne.access.types">ExtendedType</a></code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code> - if read error occurred, or an object can't be converted to a
target Java class.</dd></dl>
</li>
</ul>
<a name="materializeObject(java.sql.CallableStatement, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>materializeObject</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;materializeObject(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/CallableStatement.html?is-external=true" title="class or interface in java.sql">CallableStatement</a>&nbsp;cs,
int&nbsp;index,
int&nbsp;type)
throws <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/cayenne/access/types/ExtendedType.html#materializeObject(java.sql.CallableStatement,%20int,%20int)">ExtendedType</a></code></strong></div>
<div class="block">Reads an object from a stored procedure OUT parameter, converting it to class
returned by 'getClassName' method.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/cayenne/access/types/ExtendedType.html#materializeObject(java.sql.CallableStatement,%20int,%20int)">materializeObject</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/cayenne/access/types/ExtendedType.html" title="interface in org.apache.cayenne.access.types">ExtendedType</a></code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code> - if read error ocurred, or an object can't be converted to a
target Java class.</dd></dl>
</li>
</ul>
<a name="setJdbcObject(java.sql.PreparedStatement, java.lang.Object, int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setJdbcObject</h4>
<pre>public&nbsp;void&nbsp;setJdbcObject(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/PreparedStatement.html?is-external=true" title="class or interface in java.sql">PreparedStatement</a>&nbsp;st,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;val,
int&nbsp;pos,
int&nbsp;type,
int&nbsp;scale)
throws <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/cayenne/access/types/ExtendedType.html#setJdbcObject(java.sql.PreparedStatement,%20java.lang.Object,%20int,%20int,%20int)">ExtendedType</a></code></strong></div>
<div class="block">Initializes a single parameter of a PreparedStatement with object value.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/cayenne/access/types/ExtendedType.html#setJdbcObject(java.sql.PreparedStatement,%20java.lang.Object,%20int,%20int,%20int)">setJdbcObject</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/cayenne/access/types/ExtendedType.html" title="interface in org.apache.cayenne.access.types">ExtendedType</a></code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd></dl>
</li>
</ul>
<a name="writeBlob(byte[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>writeBlob</h4>
<pre>protected&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/Blob.html?is-external=true" title="class or interface in java.sql">Blob</a>&nbsp;writeBlob(byte[]&nbsp;bytes)</pre>
</li>
</ul>
<a name="readBlob(java.sql.Blob)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readBlob</h4>
<pre>protected&nbsp;byte[]&nbsp;readBlob(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/Blob.html?is-external=true" title="class or interface in java.sql">Blob</a>&nbsp;blob)
throws <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/SQLException.html?is-external=true" title="class or interface in java.sql">SQLException</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/SQLException.html?is-external=true" title="class or interface in java.sql">SQLException</a></code></dd></dl>
</li>
</ul>
<a name="readBinaryStream(java.sql.ResultSet, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readBinaryStream</h4>
<pre>protected&nbsp;byte[]&nbsp;readBinaryStream(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/ResultSet.html?is-external=true" title="class or interface in java.sql">ResultSet</a>&nbsp;rs,
int&nbsp;index)
throws <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/SQLException.html?is-external=true" title="class or interface in java.sql">SQLException</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/SQLException.html?is-external=true" title="class or interface in java.sql">SQLException</a></code></dd></dl>
</li>
</ul>
<a name="readValueStream(java.io.InputStream, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readValueStream</h4>
<pre>protected&nbsp;byte[]&nbsp;readValueStream(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;in,
int&nbsp;streamSize,
int&nbsp;bufSize)
throws <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl>
</li>
</ul>
<a name="isUsingBlobs()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isUsingBlobs</h4>
<pre>public&nbsp;boolean&nbsp;isUsingBlobs()</pre>
<div class="block">Returns <code>true</code> if byte columns are handled as BLOBs internally.</div>
</li>
</ul>
<a name="setUsingBlobs(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setUsingBlobs</h4>
<pre>public&nbsp;void&nbsp;setUsingBlobs(boolean&nbsp;usingBlobs)</pre>
</li>
</ul>
<a name="isTrimmingBytes()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isTrimmingBytes</h4>
<pre>public&nbsp;boolean&nbsp;isTrimmingBytes()</pre>
</li>
</ul>
<a name="setTrimmingBytes(boolean)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setTrimmingBytes</h4>
<pre>public&nbsp;void&nbsp;setTrimmingBytes(boolean&nbsp;trimingBytes)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ByteArrayType.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/cayenne/access/types/BooleanType.html" title="class in org.apache.cayenne.access.types"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/cayenne/access/types/ByteType.html" title="class in org.apache.cayenne.access.types"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/cayenne/access/types/ByteArrayType.html" target="_top">Frames</a></li>
<li><a href="ByteArrayType.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2001&#x2013;2014 <a href="http://cayenne.apache.org/">Apache Cayenne</a>. All rights reserved.</small></p>
</body>
</html>