org.apache.derbyTesting.functionTests.tests.jdbcapi
Class IsoLevel

java.lang.Object
  extended by org.apache.derbyTesting.functionTests.tests.jdbcapi.IsoLevel

final class IsoLevel
extends java.lang.Object

Utility class for representing isolation levels. Provides a convenient way to track the JDBC constant, the JDBC constant name and the SQL name of an isolation level. By overriding equals and toString it becomes convenient to use this class in JUnit's assertEquals methods.


Field Summary
private  int isoLevel_
           
private  java.lang.String jdbcName_
           
private  java.lang.String sqlName_
           
 
Constructor Summary
IsoLevel(java.sql.ResultSet rs)
          Constructs an IsoLevel object from a ResultSet.
 
Method Summary
 boolean equals(java.lang.Object that)
           
 int getIsoLevel()
           
 java.lang.String getJdbcName()
           
 java.lang.String getSqlName()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

isoLevel_

private final int isoLevel_

jdbcName_

private final java.lang.String jdbcName_

sqlName_

private final java.lang.String sqlName_
Constructor Detail

IsoLevel

public IsoLevel(java.sql.ResultSet rs)
         throws java.sql.SQLException
Constructs an IsoLevel object from a ResultSet. The ResultSet must be equivalent to 'SELECT * FROM ISOLATION_NAMES'. Calls next() on the ResultSet, so the caller must position the ResultSet on the row before the row that is to be used to create the IsoLevel object.

Parameters:
rs - ResultSet holding isolation level descriptions
Throws:
java.sql.SQLException
Method Detail

getIsoLevel

public int getIsoLevel()

getJdbcName

public java.lang.String getJdbcName()

getSqlName

public java.lang.String getSqlName()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

Built on Sat 2009-11-28 18:44:18-0800, from revision 885187

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