org.sape.carbon.services.sql
Class ResultSetConcurrencyEnum

java.lang.Object
  |
  +--org.sape.carbon.core.util.enum.BaseEnum
        |
        +--org.sape.carbon.services.sql.ResultSetConcurrencyEnum
All Implemented Interfaces:
Serializable

public class ResultSetConcurrencyEnum
extends BaseEnum
implements Serializable

This enumeration represents the types of concurrency supported in JDBC connections.

Copyright 2002 Sapient

Since:
carbon 1.0
Version:
$Revision: 1.6 $($Author: dvoet $ / $Date: 2003/05/05 21:21:36 $)
Author:
Greg Hinkle, July 2002
See Also:
ResultSet, Serialized Form

Nested Class Summary
static class ResultSetConcurrencyEnum.ResultSetConcurrencyEnumNotFoundException
          This class is a typesafe retriever excepection for an enumeration
 
Nested classes inherited from class org.sape.carbon.core.util.enum.BaseEnum
 
Field Summary
static ResultSetConcurrencyEnum CONCUR_READ_ONLY
          Represents the read-only type of concurrency
static ResultSetConcurrencyEnum CONCUR_UPDATABLE
          Represents the updatable type of concurrency
 
Fields inherited from class org.sape.carbon.core.util.enum.BaseEnum
name, ordinal
 
Constructor Summary
private ResultSetConcurrencyEnum(String name, int ordinal)
          Constructs a enumeration of type ResultSetConcurrencyEnum
 
Method Summary
static ResultSetConcurrencyEnum getByName(String name)
          Looks up a ResultSetConcurrencyEnum by its string representation
static ResultSetConcurrencyEnum getByOrdinal(int ordinal)
          Looks up a ResultSetConcurrencyEnum by its ordinal representation
static Iterator iterator()
          Retrieves and iterator by ascending ordinal order for all enumerations of this type.
(package private)  Object readResolve()
          Overrides part of serialization to return a reference to an enumeration instance that is managed by the Enumeration Subsystem.
 
Methods inherited from class org.sape.carbon.core.util.enum.BaseEnum
equals, getByName, getByOrdinal, getName, getOrdinal, hashCode, iterator, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CONCUR_READ_ONLY

public static final ResultSetConcurrencyEnum CONCUR_READ_ONLY
Represents the read-only type of concurrency

See Also:
ResultSet.CONCUR_READ_ONLY

CONCUR_UPDATABLE

public static final ResultSetConcurrencyEnum CONCUR_UPDATABLE
Represents the updatable type of concurrency

See Also:
ResultSet.CONCUR_UPDATABLE
Constructor Detail

ResultSetConcurrencyEnum

private ResultSetConcurrencyEnum(String name,
                                 int ordinal)
Constructs a enumeration of type ResultSetConcurrencyEnum

Parameters:
name - the String representation of this enumeration
ordinal - the integer ordinal value of a specific
Method Detail

getByName

public static final ResultSetConcurrencyEnum getByName(String name)
                                                throws ResultSetConcurrencyEnum.ResultSetConcurrencyEnumNotFoundException
Looks up a ResultSetConcurrencyEnum by its string representation

Parameters:
name - the String name of a enumeration instance
Returns:
an specific ResultSetConcurrencyEnum
Throws:
ResultSetConcurrencyEnum.ResultSetConcurrencyEnumNotFoundException - when there is no enumeration instance for the given name

getByOrdinal

public static ResultSetConcurrencyEnum getByOrdinal(int ordinal)
                                             throws ResultSetConcurrencyEnum.ResultSetConcurrencyEnumNotFoundException
Looks up a ResultSetConcurrencyEnum by its ordinal representation

Parameters:
ordinal - the integer ordinal value of a specific enumeration instance
Returns:
an specific ResultSetConcurrencyEnum
Throws:
ResultSetConcurrencyEnum.ResultSetConcurrencyEnumNotFoundException - when there is no enumeration instance for the given ordinal

iterator

public static Iterator iterator()
Retrieves and iterator by ascending ordinal order for all enumerations of this type.

Returns:
an iterator over all ResultSetConcurrencyEnum

readResolve

final Object readResolve()
                  throws ObjectStreamException
Overrides part of serialization to return a reference to an enumeration instance that is managed by the Enumeration Subsystem. This will always return the SAME object instance for any single enum instance and is what allows the "==" operator to be used for comparisons.

Returns:
the object instance that should be resolved by this class
Throws:
ObjectStreamException - indicates there is a failure to resolve the streamed object due to a format or read io exception


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.