org.apache.derbyTesting.functionTests.tests.jdbcapi
Class IsoLevel
java.lang.Object
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.
|
Constructor Summary |
IsoLevel(java.sql.ResultSet rs)
Constructs an IsoLevel object from a ResultSet. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
isoLevel_
private final int isoLevel_
jdbcName_
private final java.lang.String jdbcName_
sqlName_
private final java.lang.String sqlName_
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
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
Apache Derby V10.6 Internals - Copyright © 2004,2008 The Apache Software Foundation. All Rights Reserved.