org.apache.derby.client.am
Class SqlCode

java.lang.Object
  extended by org.apache.derby.client.am.SqlCode

public class SqlCode
extends java.lang.Object


Field Summary
private  int code_
           
static SqlCode disconnectError
           
static SqlCode END_OF_DATA
          SQL code for SQL state 02000 (end of data).
static SqlCode invalidCommitOrRollbackUnderXA
           
static SqlCode invalidSetAutoCommitUnderXA
           
static SqlCode queuedXAError
           
static SqlCode undefinedError
           
 
Constructor Summary
SqlCode(int code)
           
 
Method Summary
 int getCode()
          Return the SQL code represented by this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_

private int code_

invalidCommitOrRollbackUnderXA

public static final SqlCode invalidCommitOrRollbackUnderXA

invalidSetAutoCommitUnderXA

public static final SqlCode invalidSetAutoCommitUnderXA

queuedXAError

public static final SqlCode queuedXAError

disconnectError

public static final SqlCode disconnectError

undefinedError

public static final SqlCode undefinedError

END_OF_DATA

public static final SqlCode END_OF_DATA
SQL code for SQL state 02000 (end of data). DRDA does not specify the SQL code for this SQL state, but Derby uses 100.

Constructor Detail

SqlCode

public SqlCode(int code)
Method Detail

getCode

public final int getCode()
Return the SQL code represented by this instance.

Returns:
an SQL code

Built on Thu 2010-12-23 20:49:13+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.