<!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.4.2_12) on Mon Jun 12 16:48:11 PDT 2006 -->
<TITLE>
DbConnector (Oracle Adapter eWay Intelligent Adapter for Databases API)
</TITLE>

<META NAME="keywords" CONTENT="com.stc.connector.db.DbConnector interface">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="DbConnector (Oracle Adapter eWay Intelligent Adapter for Databases API)";
}
</SCRIPT>

</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=3 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="../../../../index-all.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="../../../../com/stc/connector/db/Session.html" title="interface in com.stc.connector.db"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="DbConnector.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;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&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">
com.stc.connector.db</FONT>
<BR>
Interface DbConnector</H2>
<DL>
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../com/stc/connector/Oracleadapter/base/DbConnectorImpl.html" title="class in com.stc.connector.Oracleadapter.base">DbConnectorImpl</A></DD>
</DL>
<HR>
<DL>
<DT>public interface <B>DbConnector</B></DL>

<P>
Connector interface for the database eWay.
<P>

<P>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->


<!-- =========== FIELD SUMMARY =========== -->


<!-- ======== CONSTRUCTOR SUMMARY ======== -->


<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></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="../../../../com/stc/connector/db/DbConnector.html#close()">close</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Requests the DbConnector to close a connection and
 release all the necessary resources.</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="../../../../com/stc/connector/db/DbConnector.html#commit()">commit</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Commits a transaction for the connection.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/stc/connector/db/DbConnector.html#connInvoke(java.lang.String, java.lang.Class[], java.lang.Object[])">connInvoke</A></B>(java.lang.String&nbsp;methodName,
           java.lang.Class[]&nbsp;argsCls,
           java.lang.Object[]&nbsp;args)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Invokes a method of the database <code>Connection</code> object of this ETD.</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="../../../../com/stc/connector/db/DbConnector.html#getAutoCommit()">getAutoCommit</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the AutoCommit mode of the connection.</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="../../../../com/stc/connector/db/DbConnector.html#getCatalog()">getCatalog</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the catalog name of the connection.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.sql.Connection</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/stc/connector/db/DbConnector.html#getConnection()">getConnection</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the database <code>Connection</code> object of this ETD.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;StatementAgent</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/stc/connector/db/DbConnector.html#getInstance(java.lang.Class)">getInstance</A></B>(java.lang.Class&nbsp;clsAgent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets an instance of the named StaementAgent.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;StatementAgent</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/stc/connector/db/DbConnector.html#getInstance(java.lang.Class, int, int)">getInstance</A></B>(java.lang.Class&nbsp;clsAgent,
            int&nbsp;iScroll,
            int&nbsp;iConcur)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets an instance of the named StaementAgent with the specified resultset
 and concurrency types.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/stc/connector/db/DbConnector.html#getTransactionIsolation()">getTransactionIsolation</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the transaction isolation level for the connection.</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="../../../../com/stc/connector/db/DbConnector.html#init(javax.sql.DataSource, java.util.Properties)">init</A></B>(javax.sql.DataSource&nbsp;ds,
     java.util.Properties&nbsp;props)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize DbConnector
 </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="../../../../com/stc/connector/db/DbConnector.html#isConnected()">isConnected</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the connection status.</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="../../../../com/stc/connector/db/DbConnector.html#isOpen()">isOpen</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks if the DbConnector has a open connection.</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="../../../../com/stc/connector/db/DbConnector.html#open(javax.sql.DataSource, java.util.Properties)">open</A></B>(javax.sql.DataSource&nbsp;ds,
     java.util.Properties&nbsp;props)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Requests the DbConnector object to open a connection
 and allocate necessary resources.</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="../../../../com/stc/connector/db/DbConnector.html#release()">release</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Releases all the DbConnector resources.</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="../../../../com/stc/connector/db/DbConnector.html#requestReset()">requestReset</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Receives a request to reset the data content of the DB ETD.</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="../../../../com/stc/connector/db/DbConnector.html#rollback()">rollback</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rollbacks a transaction for the connection.</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="../../../../com/stc/connector/db/DbConnector.html#setAutoCommit(boolean)">setAutoCommit</A></B>(boolean&nbsp;bAuto)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the AutoCommit mode of the connection.</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="../../../../com/stc/connector/db/DbConnector.html#setCatalog(java.lang.String)">setCatalog</A></B>(java.lang.String&nbsp;sCatalog)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the catalog name of the connection.</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="../../../../com/stc/connector/db/DbConnector.html#setConcurrencyToReadOnly()">setConcurrencyToReadOnly</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set concurrency type of the session to read only.</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="../../../../com/stc/connector/db/DbConnector.html#setConcurrencyToUpdatable()">setConcurrencyToUpdatable</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set concurrency type of the session to updatable.</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="../../../../com/stc/connector/db/DbConnector.html#setScrollTypeToForwardOnly()">setScrollTypeToForwardOnly</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set result set type of the session to be forward only.</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="../../../../com/stc/connector/db/DbConnector.html#setScrollTypeToScrollInsensitive()">setScrollTypeToScrollInsensitive</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set result set type of the session to be insensitive.</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="../../../../com/stc/connector/db/DbConnector.html#setScrollTypeToScrollSensitive()">setScrollTypeToScrollSensitive</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set result set type of the session to be sensitive.</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="../../../../com/stc/connector/db/DbConnector.html#setTransactionIsolation(int)">setTransactionIsolation</A></B>(int&nbsp;iLevel)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the transaction isolation level for the connection.</TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->


<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="close()"><!-- --></A><H3>
close</H3>
<PRE>
public void <B>close</B>()
           throws java.sql.SQLException</PRE>
<DL>
<DD>Requests the DbConnector to close a connection and
 release all the necessary resources.
 <p>
 <DL><DT><B>Parameters:</B><DD>None.</DL>
<P>
<DD><DL>

<DT><B>Returns:</B><DD><CODE>void</CODE> - None.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - when encountering any error in closing a connection.</DL>
</DD>
</DL>
<HR>

<A NAME="commit()"><!-- --></A><H3>
commit</H3>
<PRE>
public void <B>commit</B>()
            throws java.sql.SQLException</PRE>
<DL>
<DD>Commits a transaction for the connection. All data changes will be permanent.
 <p>
 <DL><DT><B>Parameters:</B><DD>None.</DL>
<P>
<DD><DL>

<DT><B>Returns:</B><DD><CODE>void</CODE> - None.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - if there is any problem in commiting a transaction.</DL>
</DD>
</DL>
<HR>

<A NAME="connInvoke(java.lang.String, java.lang.Class[], java.lang.Object[])"><!-- --></A><H3>
connInvoke</H3>
<PRE>
public java.lang.Object <B>connInvoke</B>(java.lang.String&nbsp;methodName,
                                   java.lang.Class[]&nbsp;argsCls,
                                   java.lang.Object[]&nbsp;args)
                            throws java.sql.SQLException</PRE>
<DL>
<DD>Invokes a method of the database <code>Connection</code> object of this ETD.
 <p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>methodName</CODE> - the name of the method<DD><CODE>argsCls</CODE> - <code>Class</code> array for types of formal arguments for method,
                          in the declared order.  Can be <code>null</code> if there are no
                          formal arguments.  However, cannot invoke constructor here.<DD><CODE>args</CODE> - <code>Object</code> array of formal arguments for method in the
                          declared order.  Can be <code>null</code> if there are no formal
                          arguments.  However, cannot invoke constructor here.
<DT><B>Returns:</B><DD>the <code>Object</code> instance resulting from the method invocation.  Can be
          <code>null</code> if nothing is returned (<code>void</code> return declaration).
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - whatever exception the invoked method throws.</DL>
</DD>
</DL>
<HR>

<A NAME="getAutoCommit()"><!-- --></A><H3>
getAutoCommit</H3>
<PRE>
public boolean <B>getAutoCommit</B>()
                      throws java.sql.SQLException</PRE>
<DL>
<DD>Gets the AutoCommit mode of the connection.
 <p>
 <DL><DT><B>Parameters:</B><DD>None.</DL>
<P>
<DD><DL>

<DT><B>Returns:</B><DD>true if the Autocommit mode is true; false otherwise.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - if there is any error in getting the AutoCommit mode from the database.</DL>
</DD>
</DL>
<HR>

<A NAME="getCatalog()"><!-- --></A><H3>
getCatalog</H3>
<PRE>
public java.lang.String <B>getCatalog</B>()
                            throws java.sql.SQLException</PRE>
<DL>
<DD>Gets the catalog name of the connection.
 <p>
 <DL><DT><B>Parameters:</B><DD>None.</DL>
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the catalog name.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - if there is any problem in getting the catalog name.</DL>
</DD>
</DL>
<HR>

<A NAME="getConnection()"><!-- --></A><H3>
getConnection</H3>
<PRE>
public java.sql.Connection <B>getConnection</B>()
                                  throws java.sql.SQLException</PRE>
<DL>
<DD>Get the database <code>Connection</code> object of this ETD.
 <p>
 <DL><DT><B>Parameters:</B><DD>None.</DL>
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the database <code>Connection</code> object of this ETD.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - owing to connection retrieval.</DL>
</DD>
</DL>
<HR>

<A NAME="getInstance(java.lang.Class)"><!-- --></A><H3>
getInstance</H3>
<PRE>
public StatementAgent <B>getInstance</B>(java.lang.Class&nbsp;clsAgent)
                           throws java.sql.SQLException</PRE>
<DL>
<DD>Gets an instance of the named StaementAgent. Only one instance
 of this class will be created. The same instance will be retrieved
 if it has been created.
 <p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>clsAgent</CODE> - the class of the StatementAgent.
<DT><B>Returns:</B><DD>the named StatementAgent instance.
 <DT><B>Throws:</B><DD>None.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - if it encounters errors in instantiating the named class.</DL>
</DD>
</DL>
<HR>

<A NAME="getInstance(java.lang.Class, int, int)"><!-- --></A><H3>
getInstance</H3>
<PRE>
public StatementAgent <B>getInstance</B>(java.lang.Class&nbsp;clsAgent,
                                  int&nbsp;iScroll,
                                  int&nbsp;iConcur)
                           throws java.sql.SQLException</PRE>
<DL>
<DD>Gets an instance of the named StaementAgent with the specified resultset
 and concurrency types. Only one instance of this class will be created.
 The same instance will be retrieved if it has been created.
 <p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>clsAgent</CODE> - the class of the StatementAgent.<DD><CODE>iScroll</CODE> - resultset type; TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE<DD><CODE>iConcur</CODE> - concurrency type; CONCUR_READ_ONLY, CONCUR_UPDATABLE
<DT><B>Returns:</B><DD>the named StatementAgent instance.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - if it encounters errors in instantiating the named class.</DL>
</DD>
</DL>
<HR>

<A NAME="getTransactionIsolation()"><!-- --></A><H3>
getTransactionIsolation</H3>
<PRE>
public int <B>getTransactionIsolation</B>()
                            throws java.sql.SQLException</PRE>
<DL>
<DD>Gets the transaction isolation level for the connection.
 <p>
 <DL><DT><B>Parameters:</B><DD>None.</DL>
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the transaction isolation level: TRANSACTION_NONE, TRANSACTION_READ_UNCOMMITTED,
         TRANSACTION_READ_COMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - if there is any error in getting the transaction isolation level.</DL>
</DD>
</DL>
<HR>

<A NAME="init(javax.sql.DataSource, java.util.Properties)"><!-- --></A><H3>
init</H3>
<PRE>
public void <B>init</B>(javax.sql.DataSource&nbsp;ds,
                 java.util.Properties&nbsp;props)
          throws java.sql.SQLException</PRE>
<DL>
<DD>Initialize DbConnector
 <p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ds</CODE> - a DataSource object used to establish connection.<DD><CODE>props</CODE> - a property object which consists of connecton information.
<DT><B>Returns:</B><DD><CODE>void</CODE> - None.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - owing to session creation.</DL>
</DD>
</DL>
<HR>

<A NAME="isConnected()"><!-- --></A><H3>
isConnected</H3>
<PRE>
public boolean <B>isConnected</B>()</PRE>
<DL>
<DD>Returns the connection status.
 <p>
 <DL><DT><B>Parameters:</B><DD>None.</DL>
<P>
<DD><DL>

<DT><B>Returns:</B><DD>True if connection is broken or not established;
         false otherwise.
 <DT><B>Throws:</B><DD>None.</DL>
</DD>
</DL>
<HR>

<A NAME="isOpen()"><!-- --></A><H3>
isOpen</H3>
<PRE>
public boolean <B>isOpen</B>()
               throws java.sql.SQLException</PRE>
<DL>
<DD>Checks if the DbConnector has a open connection.
 <p>
 <DL><DT><B>Parameters:</B><DD>None.</DL>
<P>
<DD><DL>

<DT><B>Returns:</B><DD>true if the connection is still operating; false otherwise.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - if errors are encountered during connection checking.</DL>
</DD>
</DL>
<HR>

<A NAME="open(javax.sql.DataSource, java.util.Properties)"><!-- --></A><H3>
open</H3>
<PRE>
public void <B>open</B>(javax.sql.DataSource&nbsp;ds,
                 java.util.Properties&nbsp;props)
          throws java.sql.SQLException</PRE>
<DL>
<DD>Requests the DbConnector object to open a connection
 and allocate necessary resources.
 <p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ds</CODE> - a DataSource object used to establish connection.<DD><CODE>props</CODE> - a property object which consists of connecton information.
<DT><B>Returns:</B><DD><CODE>void</CODE> - None.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - owing to opening a connection.</DL>
</DD>
</DL>
<HR>

<A NAME="release()"><!-- --></A><H3>
release</H3>
<PRE>
public void <B>release</B>()</PRE>
<DL>
<DD>Releases all the DbConnector resources.
 <p>
 <DL><DT><B>Parameters:</B><DD>None.</DL>
<P>
<DD><DL>

<DT><B>Returns:</B><DD><CODE>void</CODE> - None.
 <DT><B>Throws:</B><DD>None.</DL>
</DD>
</DL>
<HR>

<A NAME="requestReset()"><!-- --></A><H3>
requestReset</H3>
<PRE>
public void <B>requestReset</B>()</PRE>
<DL>
<DD>Receives a request to reset the data content of the DB ETD.
 <p>
 <DL><DT><B>Parameters:</B><DD>None.</DL>
<P>
<DD><DL>

<DT><B>Returns:</B><DD><CODE>void</CODE> - None.
 <DT><B>Throws:</B><DD>None.</DL>
</DD>
</DL>
<HR>

<A NAME="rollback()"><!-- --></A><H3>
rollback</H3>
<PRE>
public void <B>rollback</B>()
              throws java.sql.SQLException</PRE>
<DL>
<DD>Rollbacks a transaction for the connection. All data changes will be cleared.
 <p>
 <DL><DT><B>Parameters:</B><DD>None.</DL>
<P>
<DD><DL>

<DT><B>Returns:</B><DD><CODE>void</CODE> - None.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - if there is any problem in rolling back a transaction.</DL>
</DD>
</DL>
<HR>

<A NAME="setAutoCommit(boolean)"><!-- --></A><H3>
setAutoCommit</H3>
<PRE>
public void <B>setAutoCommit</B>(boolean&nbsp;bAuto)
                   throws java.sql.SQLException</PRE>
<DL>
<DD>Sets the AutoCommit mode of the connection.
 <p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>bAuto</CODE> - a true value will set the connection to be in AutoCommit mode; false otherwise.
<DT><B>Returns:</B><DD><CODE>void</CODE> - None.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - if there is any problem in setting the AutoCommit mode.</DL>
</DD>
</DL>
<HR>

<A NAME="setCatalog(java.lang.String)"><!-- --></A><H3>
setCatalog</H3>
<PRE>
public void <B>setCatalog</B>(java.lang.String&nbsp;sCatalog)
                throws java.sql.SQLException</PRE>
<DL>
<DD>Sets the catalog name of the connection.
 <p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sCatalog</CODE> - the desired catalog name.
<DT><B>Returns:</B><DD><CODE>void</CODE> - None.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - if there is any problem in setting the catalog name.</DL>
</DD>
</DL>
<HR>

<A NAME="setConcurrencyToReadOnly()"><!-- --></A><H3>
setConcurrencyToReadOnly</H3>
<PRE>
public void <B>setConcurrencyToReadOnly</B>()
                              throws java.sql.SQLException</PRE>
<DL>
<DD>Set concurrency type of the session to read only.
 <p>
 <DL><DT><B>Parameters:</B><DD>None.</DL>
<P>
<DD><DL>

<DT><B>Returns:</B><DD><CODE>void</CODE> - None.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - if there is any problem in setting concurrency type.</DL>
</DD>
</DL>
<HR>

<A NAME="setConcurrencyToUpdatable()"><!-- --></A><H3>
setConcurrencyToUpdatable</H3>
<PRE>
public void <B>setConcurrencyToUpdatable</B>()
                               throws java.sql.SQLException</PRE>
<DL>
<DD>Set concurrency type of the session to updatable.
 <p>
 <DL><DT><B>Parameters:</B><DD>None.</DL>
<P>
<DD><DL>

<DT><B>Returns:</B><DD><CODE>void</CODE> - None.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - if there is any problem in setting concurrency type.</DL>
</DD>
</DL>
<HR>

<A NAME="setScrollTypeToForwardOnly()"><!-- --></A><H3>
setScrollTypeToForwardOnly</H3>
<PRE>
public void <B>setScrollTypeToForwardOnly</B>()
                                throws java.sql.SQLException</PRE>
<DL>
<DD>Set result set type of the session to be forward only.
 <p>
 <DL><DT><B>Parameters:</B><DD>None.</DL>
<P>
<DD><DL>

<DT><B>Returns:</B><DD><CODE>void</CODE> - None.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - if there is any problem in setting scroll type.</DL>
</DD>
</DL>
<HR>

<A NAME="setScrollTypeToScrollInsensitive()"><!-- --></A><H3>
setScrollTypeToScrollInsensitive</H3>
<PRE>
public void <B>setScrollTypeToScrollInsensitive</B>()
                                      throws java.sql.SQLException</PRE>
<DL>
<DD>Set result set type of the session to be insensitive.
 <p>
 <DL><DT><B>Parameters:</B><DD>None.</DL>
<P>
<DD><DL>

<DT><B>Returns:</B><DD><CODE>void</CODE> - None.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - if there is any problem in setting scroll type.</DL>
</DD>
</DL>
<HR>

<A NAME="setScrollTypeToScrollSensitive()"><!-- --></A><H3>
setScrollTypeToScrollSensitive</H3>
<PRE>
public void <B>setScrollTypeToScrollSensitive</B>()
                                    throws java.sql.SQLException</PRE>
<DL>
<DD>Set result set type of the session to be sensitive.
 <p>
 <DL><DT><B>Parameters:</B><DD>None.</DL>
<P>
<DD><DL>

<DT><B>Returns:</B><DD><CODE>void</CODE> - None.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - if there is any problem in setting scroll type.</DL>
</DD>
</DL>
<HR>

<A NAME="setTransactionIsolation(int)"><!-- --></A><H3>
setTransactionIsolation</H3>
<PRE>
public void <B>setTransactionIsolation</B>(int&nbsp;iLevel)
                             throws java.sql.SQLException</PRE>
<DL>
<DD>Sets the transaction isolation level for the connection.
 <p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>iLevel</CODE> - a transaction isolation value: TRANSACTION_NONE,
        TRANSACTION_READ_UNCOMMITTED, TRANSACTION_READ_COMMITTED,
        TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE.
<DT><B>Returns:</B><DD><CODE>void</CODE> - None.
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE> - if there is any problem in setting the transaction isolation level.</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=3 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="../../../../index-all.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="../../../../com/stc/connector/db/Session.html" title="interface in com.stc.connector.db"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="DbConnector.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;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
<p><i>Copyright 2006 by Sun Microsystems, Inc. All Rights Reserved.</i>
</BODY>
</HTML>
