| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <!-- Generated by javadoc (build 1.5.0_06) on Wed Jul 19 14:42:42 EDT 2006 --> |
| <TITLE> |
| CharType (Cayenne API Documentation - v.1.2) |
| </TITLE> |
| |
| <META NAME="keywords" CONTENT="org.objectstyle.cayenne.access.types.CharType class"> |
| |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../objectstyle-javadoc.css" TITLE="Style"> |
| |
| <SCRIPT type="text/javascript"> |
| function windowTitle() |
| { |
| parent.document.title="CharType (Cayenne API Documentation - v.1.2)"; |
| } |
| </SCRIPT> |
| <NOSCRIPT> |
| </NOSCRIPT> |
| |
| </HEAD> |
| |
| <BODY BGCOLOR="white" onload="windowTitle();"> |
| |
| |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <A NAME="navbar_top"><!-- --></A> |
| <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_top_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../org/objectstyle/cayenne/access/types/ByteType.html" title="class in org.objectstyle.cayenne.access.types"><B>PREV CLASS</B></A> |
| <A HREF="../../../../../org/objectstyle/cayenne/access/types/DefaultType.html" title="class in org.objectstyle.cayenne.access.types"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../index.html?org/objectstyle/cayenne/access/types/CharType.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="CharType.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_top"></A> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| org.objectstyle.cayenne.access.types</FONT> |
| <BR> |
| Class CharType</H2> |
| <PRE> |
| java.lang.Object |
| <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../org/objectstyle/cayenne/access/types/AbstractType.html" title="class in org.objectstyle.cayenne.access.types">org.objectstyle.cayenne.access.types.AbstractType</A> |
| <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.objectstyle.cayenne.access.types.CharType</B> |
| </PRE> |
| <DL> |
| <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/objectstyle/cayenne/access/types/ExtendedType.html" title="interface in org.objectstyle.cayenne.access.types">ExtendedType</A></DD> |
| </DL> |
| <HR> |
| <DL> |
| <DT><PRE>public class <B>CharType</B><DT>extends <A HREF="../../../../../org/objectstyle/cayenne/access/types/AbstractType.html" title="class in org.objectstyle.cayenne.access.types">AbstractType</A></DL> |
| </PRE> |
| |
| <P> |
| Handles <code>java.lang.String</code>, mapping it as either of JDBC types - CLOB or |
| (VAR)CHAR. Can be configured to trim trailing spaces. |
| <P> |
| |
| <P> |
| <DL> |
| <DT><B>Author:</B></DT> |
| <DD>Andrus Adamchik</DD> |
| </DL> |
| <HR> |
| |
| <P> |
| <!-- =========== FIELD SUMMARY =========== --> |
| |
| <A NAME="field_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Field Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/objectstyle/cayenne/access/types/CharType.html#trimmingChars">trimmingChars</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/objectstyle/cayenne/access/types/CharType.html#usingClobs">usingClobs</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| |
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Constructor Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../org/objectstyle/cayenne/access/types/CharType.html#CharType(boolean, boolean)">CharType</A></B>(boolean trimingChars, |
| boolean usingClobs)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Method Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/objectstyle/cayenne/access/types/CharType.html#getClassName()">getClassName</A></B>()</CODE> |
| |
| <BR> |
| Returns "java.lang.String".</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/objectstyle/cayenne/access/types/CharType.html#isTrimmingChars()">isTrimmingChars</A></B>()</CODE> |
| |
| <BR> |
| Returns <code>true</code> if 'materializeObject' method should trim trailing |
| spaces from the CHAR columns.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/objectstyle/cayenne/access/types/CharType.html#isUsingClobs()">isUsingClobs</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.Object</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/objectstyle/cayenne/access/types/CharType.html#materializeObject(java.sql.CallableStatement, int, int)">materializeObject</A></B>(java.sql.CallableStatement cs, |
| int index, |
| int type)</CODE> |
| |
| <BR> |
| Return trimmed string.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.Object</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/objectstyle/cayenne/access/types/CharType.html#materializeObject(java.sql.ResultSet, int, int)">materializeObject</A></B>(java.sql.ResultSet rs, |
| int index, |
| int type)</CODE> |
| |
| <BR> |
| Return trimmed string.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/objectstyle/cayenne/access/types/CharType.html#readCharStream(java.sql.ResultSet, int)">readCharStream</A></B>(java.sql.ResultSet rs, |
| int index)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/objectstyle/cayenne/access/types/CharType.html#readClob(java.sql.Clob)">readClob</A></B>(java.sql.Clob clob)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/objectstyle/cayenne/access/types/CharType.html#readValueStream(java.io.Reader, int, int)">readValueStream</A></B>(java.io.Reader in, |
| int streamSize, |
| int bufSize)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/objectstyle/cayenne/access/types/CharType.html#setJdbcObject(java.sql.PreparedStatement, java.lang.Object, int, int, int)">setJdbcObject</A></B>(java.sql.PreparedStatement st, |
| java.lang.Object val, |
| int pos, |
| int type, |
| int precision)</CODE> |
| |
| <BR> |
| Calls "PreparedStatement.setObject(..)".</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/objectstyle/cayenne/access/types/CharType.html#setTrimmingChars(boolean)">setTrimmingChars</A></B>(boolean trimingChars)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/objectstyle/cayenne/access/types/CharType.html#setUsingClobs(boolean)">setUsingClobs</A></B>(boolean usingClobs)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/objectstyle/cayenne/access/types/CharType.html#validateProperty(java.lang.Object, java.lang.String, java.lang.Object, org.objectstyle.cayenne.map.DbAttribute, org.objectstyle.cayenne.validation.ValidationResult)">validateProperty</A></B>(java.lang.Object source, |
| java.lang.String property, |
| java.lang.Object value, |
| <A HREF="../../../../../org/objectstyle/cayenne/map/DbAttribute.html" title="class in org.objectstyle.cayenne.map">DbAttribute</A> dbAttribute, |
| <A HREF="../../../../../org/objectstyle/cayenne/validation/ValidationResult.html" title="class in org.objectstyle.cayenne.validation">ValidationResult</A> validationResult)</CODE> |
| |
| <BR> |
| Validates string property.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_org.objectstyle.cayenne.access.types.AbstractType"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from class org.objectstyle.cayenne.access.types.<A HREF="../../../../../org/objectstyle/cayenne/access/types/AbstractType.html" title="class in org.objectstyle.cayenne.access.types">AbstractType</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/AbstractType.html#toString()">toString</A>, <A HREF="../../../../../org/objectstyle/cayenne/access/types/AbstractType.html#validateNull(java.lang.Object, java.lang.String, java.lang.Object, org.objectstyle.cayenne.map.DbAttribute, org.objectstyle.cayenne.validation.ValidationResult)">validateNull</A></CODE></TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <P> |
| |
| <!-- ============ FIELD DETAIL =========== --> |
| |
| <A NAME="field_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Field Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="trimmingChars"><!-- --></A><H3> |
| trimmingChars</H3> |
| <PRE> |
| protected boolean <B>trimmingChars</B></PRE> |
| <DL> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="usingClobs"><!-- --></A><H3> |
| usingClobs</H3> |
| <PRE> |
| protected boolean <B>usingClobs</B></PRE> |
| <DL> |
| <DL> |
| </DL> |
| </DL> |
| |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| |
| <A NAME="constructor_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Constructor Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="CharType(boolean, boolean)"><!-- --></A><H3> |
| CharType</H3> |
| <PRE> |
| public <B>CharType</B>(boolean trimingChars, |
| boolean usingClobs)</PRE> |
| <DL> |
| </DL> |
| |
| <!-- ============ METHOD DETAIL ========== --> |
| |
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Method Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="getClassName()"><!-- --></A><H3> |
| getClassName</H3> |
| <PRE> |
| public java.lang.String <B>getClassName</B>()</PRE> |
| <DL> |
| <DD>Returns "java.lang.String". |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/ExtendedType.html#getClassName()">getClassName</A></CODE> in interface <CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/ExtendedType.html" title="interface in org.objectstyle.cayenne.access.types">ExtendedType</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/AbstractType.html#getClassName()">getClassName</A></CODE> in class <CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/AbstractType.html" title="class in org.objectstyle.cayenne.access.types">AbstractType</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="validateProperty(java.lang.Object, java.lang.String, java.lang.Object, org.objectstyle.cayenne.map.DbAttribute, org.objectstyle.cayenne.validation.ValidationResult)"><!-- --></A><H3> |
| validateProperty</H3> |
| <PRE> |
| public boolean <B>validateProperty</B>(java.lang.Object source, |
| java.lang.String property, |
| java.lang.Object value, |
| <A HREF="../../../../../org/objectstyle/cayenne/map/DbAttribute.html" title="class in org.objectstyle.cayenne.map">DbAttribute</A> dbAttribute, |
| <A HREF="../../../../../org/objectstyle/cayenne/validation/ValidationResult.html" title="class in org.objectstyle.cayenne.validation">ValidationResult</A> validationResult)</PRE> |
| <DL> |
| <DD>Validates string property. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/ExtendedType.html#validateProperty(java.lang.Object, java.lang.String, java.lang.Object, org.objectstyle.cayenne.map.DbAttribute, org.objectstyle.cayenne.validation.ValidationResult)">validateProperty</A></CODE> in interface <CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/ExtendedType.html" title="interface in org.objectstyle.cayenne.access.types">ExtendedType</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/AbstractType.html#validateProperty(java.lang.Object, java.lang.String, java.lang.Object, org.objectstyle.cayenne.map.DbAttribute, org.objectstyle.cayenne.validation.ValidationResult)">validateProperty</A></CODE> in class <CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/AbstractType.html" title="class in org.objectstyle.cayenne.access.types">AbstractType</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="materializeObject(java.sql.ResultSet, int, int)"><!-- --></A><H3> |
| materializeObject</H3> |
| <PRE> |
| public java.lang.Object <B>materializeObject</B>(java.sql.ResultSet rs, |
| int index, |
| int type) |
| throws java.lang.Exception</PRE> |
| <DL> |
| <DD>Return trimmed string. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/ExtendedType.html#materializeObject(java.sql.ResultSet, int, int)">materializeObject</A></CODE> in interface <CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/ExtendedType.html" title="interface in org.objectstyle.cayenne.access.types">ExtendedType</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/AbstractType.html#materializeObject(java.sql.ResultSet, int, int)">materializeObject</A></CODE> in class <CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/AbstractType.html" title="class in org.objectstyle.cayenne.access.types">AbstractType</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE>java.lang.Exception</CODE> - if read error ocurred, or an object can't be converted to a |
| target Java class.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="materializeObject(java.sql.CallableStatement, int, int)"><!-- --></A><H3> |
| materializeObject</H3> |
| <PRE> |
| public java.lang.Object <B>materializeObject</B>(java.sql.CallableStatement cs, |
| int index, |
| int type) |
| throws java.lang.Exception</PRE> |
| <DL> |
| <DD>Return trimmed string. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/ExtendedType.html#materializeObject(java.sql.CallableStatement, int, int)">materializeObject</A></CODE> in interface <CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/ExtendedType.html" title="interface in org.objectstyle.cayenne.access.types">ExtendedType</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/AbstractType.html#materializeObject(java.sql.CallableStatement, int, int)">materializeObject</A></CODE> in class <CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/AbstractType.html" title="class in org.objectstyle.cayenne.access.types">AbstractType</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE>java.lang.Exception</CODE> - if read error ocurred, or an object can't be converted to a |
| target Java class.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setJdbcObject(java.sql.PreparedStatement, java.lang.Object, int, int, int)"><!-- --></A><H3> |
| setJdbcObject</H3> |
| <PRE> |
| public void <B>setJdbcObject</B>(java.sql.PreparedStatement st, |
| java.lang.Object val, |
| int pos, |
| int type, |
| int precision) |
| throws java.lang.Exception</PRE> |
| <DL> |
| <DD><B>Description copied from class: <CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/AbstractType.html#setJdbcObject(java.sql.PreparedStatement, java.lang.Object, int, int, int)">AbstractType</A></CODE></B></DD> |
| <DD>Calls "PreparedStatement.setObject(..)". Some DbAdapters may need to override this |
| behavior for at least some of the object types, as it doesn't work consistently |
| across all JDBC drivers. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/ExtendedType.html#setJdbcObject(java.sql.PreparedStatement, java.lang.Object, int, int, int)">setJdbcObject</A></CODE> in interface <CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/ExtendedType.html" title="interface in org.objectstyle.cayenne.access.types">ExtendedType</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/AbstractType.html#setJdbcObject(java.sql.PreparedStatement, java.lang.Object, int, int, int)">setJdbcObject</A></CODE> in class <CODE><A HREF="../../../../../org/objectstyle/cayenne/access/types/AbstractType.html" title="class in org.objectstyle.cayenne.access.types">AbstractType</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE>java.lang.Exception</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="readClob(java.sql.Clob)"><!-- --></A><H3> |
| readClob</H3> |
| <PRE> |
| protected java.lang.String <B>readClob</B>(java.sql.Clob clob) |
| throws java.io.IOException, |
| java.sql.SQLException</PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE>java.io.IOException</CODE> |
| <DD><CODE>java.sql.SQLException</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="readCharStream(java.sql.ResultSet, int)"><!-- --></A><H3> |
| readCharStream</H3> |
| <PRE> |
| protected java.lang.String <B>readCharStream</B>(java.sql.ResultSet rs, |
| int index) |
| throws java.io.IOException, |
| java.sql.SQLException</PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE>java.io.IOException</CODE> |
| <DD><CODE>java.sql.SQLException</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="readValueStream(java.io.Reader, int, int)"><!-- --></A><H3> |
| readValueStream</H3> |
| <PRE> |
| protected java.lang.String <B>readValueStream</B>(java.io.Reader in, |
| int streamSize, |
| int bufSize) |
| throws java.io.IOException</PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE>java.io.IOException</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isTrimmingChars()"><!-- --></A><H3> |
| isTrimmingChars</H3> |
| <PRE> |
| public boolean <B>isTrimmingChars</B>()</PRE> |
| <DL> |
| <DD>Returns <code>true</code> if 'materializeObject' method should trim trailing |
| spaces from the CHAR columns. This addresses an issue with some JDBC drivers (e.g. |
| Oracle), that return Strings for CHAR columsn padded with spaces. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setTrimmingChars(boolean)"><!-- --></A><H3> |
| setTrimmingChars</H3> |
| <PRE> |
| public void <B>setTrimmingChars</B>(boolean trimingChars)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isUsingClobs()"><!-- --></A><H3> |
| isUsingClobs</H3> |
| <PRE> |
| public boolean <B>isUsingClobs</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setUsingClobs(boolean)"><!-- --></A><H3> |
| setUsingClobs</H3> |
| <PRE> |
| public void <B>setUsingClobs</B>(boolean usingClobs)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <HR> |
| |
| |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <A NAME="navbar_bottom"><!-- --></A> |
| <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../org/objectstyle/cayenne/access/types/ByteType.html" title="class in org.objectstyle.cayenne.access.types"><B>PREV CLASS</B></A> |
| <A HREF="../../../../../org/objectstyle/cayenne/access/types/DefaultType.html" title="class in org.objectstyle.cayenne.access.types"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../index.html?org/objectstyle/cayenne/access/types/CharType.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="CharType.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_bottom"></A> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| |
| <HR> |
| |
| <!--@SFLOGO@--> <i>Copyright © 2001-2006 <a href= |
| "http://objectstyle.org" target="_top">ObjectStyle.org</a> All Rights Reserved.</i> |
| |
| </BODY> |
| </HTML> |