blob: 98493e4f7e3cced7b3075c4304140700d7919ffc [file] [log] [blame]
<!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:46 EDT 2006 -->
<TITLE>
AutoAdapter (Cayenne API Documentation - v.1.2)
</TITLE>
<META NAME="keywords" CONTENT="org.objectstyle.cayenne.dba.AutoAdapter class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../objectstyle-javadoc.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="AutoAdapter (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>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/objectstyle/cayenne/dba/AutoAdapter.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="AutoAdapter.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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.dba</FONT>
<BR>
Class AutoAdapter</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.objectstyle.cayenne.dba.AutoAdapter</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>AutoAdapter</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></DL>
</PRE>
<P>
A DbAdapter that automatically detects the kind of database it is running on and
instantiates an appropriate DB-specific adapter, delegating all subsequent method calls
to this adapter.
<P>
<P>
<DL>
<DT><B>Since:</B></DT>
<DD>1.2</DD>
<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 &nbsp;<A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapterFactory.html" title="interface in org.objectstyle.cayenne.dba">DbAdapterFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#adapterFactory">adapterFactory</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;javax.sql.DataSource</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#dataSource">dataSource</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../org/objectstyle/cayenne/dba/PkGenerator.html" title="interface in org.objectstyle.cayenne.dba">PkGenerator</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#pkGenerator">pkGenerator</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== 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/dba/AutoAdapter.html#AutoAdapter(javax.sql.DataSource)">AutoAdapter</A></B>(javax.sql.DataSource&nbsp;dataSource)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an AutoAdapter that can detect adapters known to Cayenne.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#AutoAdapter(org.objectstyle.cayenne.dba.DbAdapterFactory, javax.sql.DataSource)">AutoAdapter</A></B>(<A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapterFactory.html" title="interface in org.objectstyle.cayenne.dba">DbAdapterFactory</A>&nbsp;adapterFactory,
javax.sql.DataSource&nbsp;dataSource)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an AutoAdapter with specified adapter factory and DataSource.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== 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>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#bindParameter(java.sql.PreparedStatement, java.lang.Object, int, int, int)">bindParameter</A></B>(java.sql.PreparedStatement&nbsp;statement,
java.lang.Object&nbsp;object,
int&nbsp;pos,
int&nbsp;sqlType,
int&nbsp;precision)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Binds an object value to PreparedStatement's numbered parameter.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/objectstyle/cayenne/map/DbAttribute.html" title="class in org.objectstyle.cayenne.map">DbAttribute</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#buildAttribute(java.lang.String, java.lang.String, int, int, int, boolean)">buildAttribute</A></B>(java.lang.String&nbsp;name,
java.lang.String&nbsp;typeName,
int&nbsp;type,
int&nbsp;size,
int&nbsp;precision,
boolean&nbsp;allowNulls)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates and returns a DbAttribute based on supplied parameters (usually obtained
from database meta data).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/objectstyle/cayenne/access/DataNode.html" title="class in org.objectstyle.cayenne.access">DataNode</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#createDataNode(java.lang.String)">createDataNode</A></B>(java.lang.String&nbsp;name)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>since 1.2 this method is deprecated in DbAdapter interface.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapterFactory.html" title="interface in org.objectstyle.cayenne.dba">DbAdapterFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#createDefaultFactory()">createDefaultFactory</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called from constructor to initialize factory in case no factory was specified by
the object creator.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#createFkConstraint(org.objectstyle.cayenne.map.DbRelationship)">createFkConstraint</A></B>(<A HREF="../../../../org/objectstyle/cayenne/map/DbRelationship.html" title="class in org.objectstyle.cayenne.map">DbRelationship</A>&nbsp;rel)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a SQL string that can be used to create a foreign key constraint for the
relationship.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#createTable(org.objectstyle.cayenne.map.DbEntity)">createTable</A></B>(<A HREF="../../../../org/objectstyle/cayenne/map/DbEntity.html" title="class in org.objectstyle.cayenne.map">DbEntity</A>&nbsp;entity)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a SQL string that can be used to create database table corresponding to
<code>ent</code> parameter.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#createUniqueConstraint(org.objectstyle.cayenne.map.DbEntity, java.util.Collection)">createUniqueConstraint</A></B>(<A HREF="../../../../org/objectstyle/cayenne/map/DbEntity.html" title="class in org.objectstyle.cayenne.map">DbEntity</A>&nbsp;source,
java.util.Collection&nbsp;columns)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a DDL string to create a unique constraint over a set of columns.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#dropTable(org.objectstyle.cayenne.map.DbEntity)">dropTable</A></B>(<A HREF="../../../../org/objectstyle/cayenne/map/DbEntity.html" title="class in org.objectstyle.cayenne.map">DbEntity</A>&nbsp;entity)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a SQL string that can be used to drop a database table corresponding to
<code>ent</code> parameter.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#externalTypesForJdbcType(int)">externalTypesForJdbcType</A></B>(int&nbsp;type)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an array of RDBMS types that can be used with JDBC <code>type</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/objectstyle/cayenne/query/SQLAction.html" title="interface in org.objectstyle.cayenne.query">SQLAction</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#getAction(org.objectstyle.cayenne.query.Query, org.objectstyle.cayenne.access.DataNode)">getAction</A></B>(<A HREF="../../../../org/objectstyle/cayenne/query/Query.html" title="interface in org.objectstyle.cayenne.query">Query</A>&nbsp;query,
<A HREF="../../../../org/objectstyle/cayenne/access/DataNode.html" title="class in org.objectstyle.cayenne.access">DataNode</A>&nbsp;node)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an instance of SQLAction that should handle the query.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#getAdapter()">getAdapter</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a proxied DbAdapter, lazily creating it on first invocation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#getBatchTerminator()">getBatchTerminator</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a String used to terminate a batch in command-line tools.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapterFactory.html" title="interface in org.objectstyle.cayenne.dba">DbAdapterFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#getDefaultFactory()">getDefaultFactory</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a DbAdapterFactory configured to detect all databases officially supported
by Cayenne.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/objectstyle/cayenne/access/types/ExtendedTypeMap.html" title="class in org.objectstyle.cayenne.access.types">ExtendedTypeMap</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#getExtendedTypes()">getExtendedTypes</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a map of ExtendedTypes that is used to translate values between Java and
JDBC layer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/objectstyle/cayenne/dba/PkGenerator.html" title="interface in org.objectstyle.cayenne.dba">PkGenerator</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#getPkGenerator()">getPkGenerator</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a primary key generator.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/objectstyle/cayenne/access/trans/QualifierTranslator.html" title="class in org.objectstyle.cayenne.access.trans">QualifierTranslator</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#getQualifierTranslator(org.objectstyle.cayenne.access.trans.QueryAssembler)">getQualifierTranslator</A></B>(<A HREF="../../../../org/objectstyle/cayenne/access/trans/QueryAssembler.html" title="class in org.objectstyle.cayenne.access.trans">QueryAssembler</A>&nbsp;queryAssembler)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/objectstyle/cayenne/access/QueryTranslator.html" title="class in org.objectstyle.cayenne.access">QueryTranslator</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#getQueryTranslator(org.objectstyle.cayenne.query.Query)">getQueryTranslator</A></B>(<A HREF="../../../../org/objectstyle/cayenne/query/Query.html" title="interface in org.objectstyle.cayenne.query">Query</A>&nbsp;query)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>since 1.2 this method is deprecated in DbAdapter interface.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#loadAdapter()">loadAdapter</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens a connection, retrieves JDBC metadata and attempts to guess adapter form it.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#setPkGenerator(org.objectstyle.cayenne.dba.PkGenerator)">setPkGenerator</A></B>(<A HREF="../../../../org/objectstyle/cayenne/dba/PkGenerator.html" title="interface in org.objectstyle.cayenne.dba">PkGenerator</A>&nbsp;pkGenerator)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a PK generator override.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#shouldRunBatchQuery(org.objectstyle.cayenne.access.DataNode, java.sql.Connection, org.objectstyle.cayenne.query.BatchQuery, org.objectstyle.cayenne.access.OperationObserver)">shouldRunBatchQuery</A></B>(<A HREF="../../../../org/objectstyle/cayenne/access/DataNode.html" title="class in org.objectstyle.cayenne.access">DataNode</A>&nbsp;node,
java.sql.Connection&nbsp;con,
<A HREF="../../../../org/objectstyle/cayenne/query/BatchQuery.html" title="class in org.objectstyle.cayenne.query">BatchQuery</A>&nbsp;query,
<A HREF="../../../../org/objectstyle/cayenne/access/OperationObserver.html" title="interface in org.objectstyle.cayenne.access">OperationObserver</A>&nbsp;delegate)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>since 1.2 this method is deprecated in DbAdapter interface.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#supportsBatchUpdates()">supportsBatchUpdates</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <code>true</code> if the target database supports batch updates.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#supportsFkConstraints()">supportsFkConstraints</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if a target database supports FK constraints.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#supportsGeneratedKeys()">supportsGeneratedKeys</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if a target database supports key autogeneration.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#supportsUniqueConstraints()">supportsUniqueConstraints</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if a target database supports UNIQUE constraints.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#tableTypeForTable()">tableTypeForTable</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the name of the table type (as returned by
<code>DatabaseMetaData.getTableTypes</code>) for a simple user table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/dba/AutoAdapter.html#tableTypeForView()">tableTypeForView</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the name of the table type (as returned by
<code>DatabaseMetaData.getTableTypes</code>) for a view table.</TD>
</TR>
</TABLE>
&nbsp;<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, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<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="adapterFactory"><!-- --></A><H3>
adapterFactory</H3>
<PRE>
protected <A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapterFactory.html" title="interface in org.objectstyle.cayenne.dba">DbAdapterFactory</A> <B>adapterFactory</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="dataSource"><!-- --></A><H3>
dataSource</H3>
<PRE>
protected javax.sql.DataSource <B>dataSource</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="pkGenerator"><!-- --></A><H3>
pkGenerator</H3>
<PRE>
protected <A HREF="../../../../org/objectstyle/cayenne/dba/PkGenerator.html" title="interface in org.objectstyle.cayenne.dba">PkGenerator</A> <B>pkGenerator</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="AutoAdapter(javax.sql.DataSource)"><!-- --></A><H3>
AutoAdapter</H3>
<PRE>
public <B>AutoAdapter</B>(javax.sql.DataSource&nbsp;dataSource)</PRE>
<DL>
<DD>Creates an AutoAdapter that can detect adapters known to Cayenne.
<P>
</DL>
<HR>
<A NAME="AutoAdapter(org.objectstyle.cayenne.dba.DbAdapterFactory, javax.sql.DataSource)"><!-- --></A><H3>
AutoAdapter</H3>
<PRE>
public <B>AutoAdapter</B>(<A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapterFactory.html" title="interface in org.objectstyle.cayenne.dba">DbAdapterFactory</A>&nbsp;adapterFactory,
javax.sql.DataSource&nbsp;dataSource)</PRE>
<DL>
<DD>Creates an AutoAdapter with specified adapter factory and DataSource. If
adapterFactory is null, default factory is used.
<P>
</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="getDefaultFactory()"><!-- --></A><H3>
getDefaultFactory</H3>
<PRE>
public static <A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapterFactory.html" title="interface in org.objectstyle.cayenne.dba">DbAdapterFactory</A> <B>getDefaultFactory</B>()</PRE>
<DL>
<DD>Returns a DbAdapterFactory configured to detect all databases officially supported
by Cayenne.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="createDefaultFactory()"><!-- --></A><H3>
createDefaultFactory</H3>
<PRE>
protected <A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapterFactory.html" title="interface in org.objectstyle.cayenne.dba">DbAdapterFactory</A> <B>createDefaultFactory</B>()</PRE>
<DL>
<DD>Called from constructor to initialize factory in case no factory was specified by
the object creator.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getAdapter()"><!-- --></A><H3>
getAdapter</H3>
<PRE>
protected <A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A> <B>getAdapter</B>()</PRE>
<DL>
<DD>Returns a proxied DbAdapter, lazily creating it on first invocation.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="loadAdapter()"><!-- --></A><H3>
loadAdapter</H3>
<PRE>
protected <A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A> <B>loadAdapter</B>()</PRE>
<DL>
<DD>Opens a connection, retrieves JDBC metadata and attempts to guess adapter form it.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getBatchTerminator()"><!-- --></A><H3>
getBatchTerminator</H3>
<PRE>
public java.lang.String <B>getBatchTerminator</B>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#getBatchTerminator()">DbAdapter</A></CODE></B></DD>
<DD>Returns a String used to terminate a batch in command-line tools. E.g. ";" on
Oracle or "go" on Sybase.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#getBatchTerminator()">getBatchTerminator</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="createDataNode(java.lang.String)"><!-- --></A><H3>
createDataNode</H3>
<PRE>
public <A HREF="../../../../org/objectstyle/cayenne/access/DataNode.html" title="class in org.objectstyle.cayenne.access">DataNode</A> <B>createDataNode</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>since 1.2 this method is deprecated in DbAdapter interface.</I>
<P>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#createDataNode(java.lang.String)">DbAdapter</A></CODE></B></DD>
<DD>Creates an returns a named instance of a DataNode.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#createDataNode(java.lang.String)">createDataNode</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getQueryTranslator(org.objectstyle.cayenne.query.Query)"><!-- --></A><H3>
getQueryTranslator</H3>
<PRE>
public <A HREF="../../../../org/objectstyle/cayenne/access/QueryTranslator.html" title="class in org.objectstyle.cayenne.access">QueryTranslator</A> <B>getQueryTranslator</B>(<A HREF="../../../../org/objectstyle/cayenne/query/Query.html" title="interface in org.objectstyle.cayenne.query">Query</A>&nbsp;query)
throws java.lang.Exception</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>since 1.2 this method is deprecated in DbAdapter interface.</I>
<P>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#getQueryTranslator(org.objectstyle.cayenne.query.Query)">DbAdapter</A></CODE></B></DD>
<DD>Creates and returns a QueryTranslator appropriate for the specified
<code>query</code> parameter. Sets translator "query" and "adapter" property.
<p>
This factory method allows subclasses to specify their own translators that
implement vendor-specific optimizations.
</p>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#getQueryTranslator(org.objectstyle.cayenne.query.Query)">getQueryTranslator</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getQualifierTranslator(org.objectstyle.cayenne.access.trans.QueryAssembler)"><!-- --></A><H3>
getQualifierTranslator</H3>
<PRE>
public <A HREF="../../../../org/objectstyle/cayenne/access/trans/QualifierTranslator.html" title="class in org.objectstyle.cayenne.access.trans">QualifierTranslator</A> <B>getQualifierTranslator</B>(<A HREF="../../../../org/objectstyle/cayenne/access/trans/QueryAssembler.html" title="class in org.objectstyle.cayenne.access.trans">QueryAssembler</A>&nbsp;queryAssembler)</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#getQualifierTranslator(org.objectstyle.cayenne.access.trans.QueryAssembler)">getQualifierTranslator</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getAction(org.objectstyle.cayenne.query.Query, org.objectstyle.cayenne.access.DataNode)"><!-- --></A><H3>
getAction</H3>
<PRE>
public <A HREF="../../../../org/objectstyle/cayenne/query/SQLAction.html" title="interface in org.objectstyle.cayenne.query">SQLAction</A> <B>getAction</B>(<A HREF="../../../../org/objectstyle/cayenne/query/Query.html" title="interface in org.objectstyle.cayenne.query">Query</A>&nbsp;query,
<A HREF="../../../../org/objectstyle/cayenne/access/DataNode.html" title="class in org.objectstyle.cayenne.access">DataNode</A>&nbsp;node)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#getAction(org.objectstyle.cayenne.query.Query, org.objectstyle.cayenne.access.DataNode)">DbAdapter</A></CODE></B></DD>
<DD>Returns an instance of SQLAction that should handle the query.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#getAction(org.objectstyle.cayenne.query.Query, org.objectstyle.cayenne.access.DataNode)">getAction</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="supportsFkConstraints()"><!-- --></A><H3>
supportsFkConstraints</H3>
<PRE>
public boolean <B>supportsFkConstraints</B>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#supportsFkConstraints()">DbAdapter</A></CODE></B></DD>
<DD>Returns true if a target database supports FK constraints.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#supportsFkConstraints()">supportsFkConstraints</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="supportsUniqueConstraints()"><!-- --></A><H3>
supportsUniqueConstraints</H3>
<PRE>
public boolean <B>supportsUniqueConstraints</B>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#supportsUniqueConstraints()">DbAdapter</A></CODE></B></DD>
<DD>Returns true if a target database supports UNIQUE constraints.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#supportsUniqueConstraints()">supportsUniqueConstraints</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="supportsGeneratedKeys()"><!-- --></A><H3>
supportsGeneratedKeys</H3>
<PRE>
public boolean <B>supportsGeneratedKeys</B>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#supportsGeneratedKeys()">DbAdapter</A></CODE></B></DD>
<DD>Returns true if a target database supports key autogeneration. This feature also
requires JDBC3-compliant driver.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#supportsGeneratedKeys()">supportsGeneratedKeys</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="supportsBatchUpdates()"><!-- --></A><H3>
supportsBatchUpdates</H3>
<PRE>
public boolean <B>supportsBatchUpdates</B>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#supportsBatchUpdates()">DbAdapter</A></CODE></B></DD>
<DD>Returns <code>true</code> if the target database supports batch updates.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#supportsBatchUpdates()">supportsBatchUpdates</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="dropTable(org.objectstyle.cayenne.map.DbEntity)"><!-- --></A><H3>
dropTable</H3>
<PRE>
public java.lang.String <B>dropTable</B>(<A HREF="../../../../org/objectstyle/cayenne/map/DbEntity.html" title="class in org.objectstyle.cayenne.map">DbEntity</A>&nbsp;entity)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#dropTable(org.objectstyle.cayenne.map.DbEntity)">DbAdapter</A></CODE></B></DD>
<DD>Returns a SQL string that can be used to drop a database table corresponding to
<code>ent</code> parameter.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#dropTable(org.objectstyle.cayenne.map.DbEntity)">dropTable</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="createTable(org.objectstyle.cayenne.map.DbEntity)"><!-- --></A><H3>
createTable</H3>
<PRE>
public java.lang.String <B>createTable</B>(<A HREF="../../../../org/objectstyle/cayenne/map/DbEntity.html" title="class in org.objectstyle.cayenne.map">DbEntity</A>&nbsp;entity)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#createTable(org.objectstyle.cayenne.map.DbEntity)">DbAdapter</A></CODE></B></DD>
<DD>Returns a SQL string that can be used to create database table corresponding to
<code>ent</code> parameter.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#createTable(org.objectstyle.cayenne.map.DbEntity)">createTable</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="createUniqueConstraint(org.objectstyle.cayenne.map.DbEntity, java.util.Collection)"><!-- --></A><H3>
createUniqueConstraint</H3>
<PRE>
public java.lang.String <B>createUniqueConstraint</B>(<A HREF="../../../../org/objectstyle/cayenne/map/DbEntity.html" title="class in org.objectstyle.cayenne.map">DbEntity</A>&nbsp;source,
java.util.Collection&nbsp;columns)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#createUniqueConstraint(org.objectstyle.cayenne.map.DbEntity, java.util.Collection)">DbAdapter</A></CODE></B></DD>
<DD>Returns a DDL string to create a unique constraint over a set of columns.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#createUniqueConstraint(org.objectstyle.cayenne.map.DbEntity, java.util.Collection)">createUniqueConstraint</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="createFkConstraint(org.objectstyle.cayenne.map.DbRelationship)"><!-- --></A><H3>
createFkConstraint</H3>
<PRE>
public java.lang.String <B>createFkConstraint</B>(<A HREF="../../../../org/objectstyle/cayenne/map/DbRelationship.html" title="class in org.objectstyle.cayenne.map">DbRelationship</A>&nbsp;rel)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#createFkConstraint(org.objectstyle.cayenne.map.DbRelationship)">DbAdapter</A></CODE></B></DD>
<DD>Returns a SQL string that can be used to create a foreign key constraint for the
relationship.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#createFkConstraint(org.objectstyle.cayenne.map.DbRelationship)">createFkConstraint</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="externalTypesForJdbcType(int)"><!-- --></A><H3>
externalTypesForJdbcType</H3>
<PRE>
public java.lang.String[] <B>externalTypesForJdbcType</B>(int&nbsp;type)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#externalTypesForJdbcType(int)">DbAdapter</A></CODE></B></DD>
<DD>Returns an array of RDBMS types that can be used with JDBC <code>type</code>.
Valid JDBC types are defined in java.sql.Types.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#externalTypesForJdbcType(int)">externalTypesForJdbcType</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getExtendedTypes()"><!-- --></A><H3>
getExtendedTypes</H3>
<PRE>
public <A HREF="../../../../org/objectstyle/cayenne/access/types/ExtendedTypeMap.html" title="class in org.objectstyle.cayenne.access.types">ExtendedTypeMap</A> <B>getExtendedTypes</B>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#getExtendedTypes()">DbAdapter</A></CODE></B></DD>
<DD>Returns a map of ExtendedTypes that is used to translate values between Java and
JDBC layer.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#getExtendedTypes()">getExtendedTypes</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../../org/objectstyle/cayenne/access/types/ExtendedType.html" title="interface in org.objectstyle.cayenne.access.types"><CODE>ExtendedType</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getPkGenerator()"><!-- --></A><H3>
getPkGenerator</H3>
<PRE>
public <A HREF="../../../../org/objectstyle/cayenne/dba/PkGenerator.html" title="interface in org.objectstyle.cayenne.dba">PkGenerator</A> <B>getPkGenerator</B>()</PRE>
<DL>
<DD>Returns a primary key generator.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#getPkGenerator()">getPkGenerator</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setPkGenerator(org.objectstyle.cayenne.dba.PkGenerator)"><!-- --></A><H3>
setPkGenerator</H3>
<PRE>
public void <B>setPkGenerator</B>(<A HREF="../../../../org/objectstyle/cayenne/dba/PkGenerator.html" title="interface in org.objectstyle.cayenne.dba">PkGenerator</A>&nbsp;pkGenerator)</PRE>
<DL>
<DD>Sets a PK generator override. If set to non-null value, such PK generator will be
used instead of the one provided by wrapped adapter.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="buildAttribute(java.lang.String, java.lang.String, int, int, int, boolean)"><!-- --></A><H3>
buildAttribute</H3>
<PRE>
public <A HREF="../../../../org/objectstyle/cayenne/map/DbAttribute.html" title="class in org.objectstyle.cayenne.map">DbAttribute</A> <B>buildAttribute</B>(java.lang.String&nbsp;name,
java.lang.String&nbsp;typeName,
int&nbsp;type,
int&nbsp;size,
int&nbsp;precision,
boolean&nbsp;allowNulls)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#buildAttribute(java.lang.String, java.lang.String, int, int, int, boolean)">DbAdapter</A></CODE></B></DD>
<DD>Creates and returns a DbAttribute based on supplied parameters (usually obtained
from database meta data).
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#buildAttribute(java.lang.String, java.lang.String, int, int, int, boolean)">buildAttribute</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - database column name<DD><CODE>typeName</CODE> - database specific type name, may be used as a hint to determine the
right JDBC type.<DD><CODE>type</CODE> - JDBC column type<DD><CODE>size</CODE> - database column size (ignored if less than zero)<DD><CODE>precision</CODE> - database column precision (ignored if less than zero)<DD><CODE>allowNulls</CODE> - database column nullable parameter</DL>
</DD>
</DL>
<HR>
<A NAME="bindParameter(java.sql.PreparedStatement, java.lang.Object, int, int, int)"><!-- --></A><H3>
bindParameter</H3>
<PRE>
public void <B>bindParameter</B>(java.sql.PreparedStatement&nbsp;statement,
java.lang.Object&nbsp;object,
int&nbsp;pos,
int&nbsp;sqlType,
int&nbsp;precision)
throws java.sql.SQLException,
java.lang.Exception</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#bindParameter(java.sql.PreparedStatement, java.lang.Object, int, int, int)">DbAdapter</A></CODE></B></DD>
<DD>Binds an object value to PreparedStatement's numbered parameter.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#bindParameter(java.sql.PreparedStatement, java.lang.Object, int, int, int)">bindParameter</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="tableTypeForTable()"><!-- --></A><H3>
tableTypeForTable</H3>
<PRE>
public java.lang.String <B>tableTypeForTable</B>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#tableTypeForTable()">DbAdapter</A></CODE></B></DD>
<DD>Returns the name of the table type (as returned by
<code>DatabaseMetaData.getTableTypes</code>) for a simple user table.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#tableTypeForTable()">tableTypeForTable</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="tableTypeForView()"><!-- --></A><H3>
tableTypeForView</H3>
<PRE>
public java.lang.String <B>tableTypeForView</B>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#tableTypeForView()">DbAdapter</A></CODE></B></DD>
<DD>Returns the name of the table type (as returned by
<code>DatabaseMetaData.getTableTypes</code>) for a view table.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#tableTypeForView()">tableTypeForView</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="shouldRunBatchQuery(org.objectstyle.cayenne.access.DataNode, java.sql.Connection, org.objectstyle.cayenne.query.BatchQuery, org.objectstyle.cayenne.access.OperationObserver)"><!-- --></A><H3>
shouldRunBatchQuery</H3>
<PRE>
public boolean <B>shouldRunBatchQuery</B>(<A HREF="../../../../org/objectstyle/cayenne/access/DataNode.html" title="class in org.objectstyle.cayenne.access">DataNode</A>&nbsp;node,
java.sql.Connection&nbsp;con,
<A HREF="../../../../org/objectstyle/cayenne/query/BatchQuery.html" title="class in org.objectstyle.cayenne.query">BatchQuery</A>&nbsp;query,
<A HREF="../../../../org/objectstyle/cayenne/access/OperationObserver.html" title="interface in org.objectstyle.cayenne.access">OperationObserver</A>&nbsp;delegate)
throws java.sql.SQLException,
java.lang.Exception</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>since 1.2 this method is deprecated in DbAdapter interface.</I>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html#shouldRunBatchQuery(org.objectstyle.cayenne.access.DataNode, java.sql.Connection, org.objectstyle.cayenne.query.BatchQuery, org.objectstyle.cayenne.access.OperationObserver)">shouldRunBatchQuery</A></CODE> in interface <CODE><A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba">DbAdapter</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE>
<DD><CODE>java.lang.Exception</CODE></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>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../org/objectstyle/cayenne/dba/DbAdapter.html" title="interface in org.objectstyle.cayenne.dba"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/objectstyle/cayenne/dba/AutoAdapter.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="AutoAdapter.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<!--@SFLOGO@--> &nbsp; <i>Copyright &#169; 2001-2006 <a href=
"http://objectstyle.org" target="_top">ObjectStyle.org</a> All Rights Reserved.</i>
</BODY>
</HTML>