Package net.sf.jkniv.sqlegance.statement
Enum ResultSetHoldability
- java.lang.Object
-
- java.lang.Enum<ResultSetHoldability>
-
- net.sf.jkniv.sqlegance.statement.ResultSetHoldability
-
- All Implemented Interfaces:
Serializable,Comparable<ResultSetHoldability>
public enum ResultSetHoldability extends Enum<ResultSetHoldability>
Flags to indicate the type ofResultSetobjects with the given holdability.- Since:
- 0.6.0
- Author:
- Alisson Gomes
- See Also:
ResultSet
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSE_CURSORS_AT_COMMITopen ResultSet objects with this holdability will remain open when the current transaction is commited.DEFAULTOpen ResultSet objects with this holdability will be closed when the current transaction is commited.HOLD_CURSORS_OVER_COMMITOpen ResultSet objects with this holdability will be closed when the current transaction is commited.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResultSetHoldabilityget(String type)intgetHoldability()static ResultSetHoldabilityvalueOf(String name)Returns the enum constant of this type with the specified name.static ResultSetHoldability[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final ResultSetHoldability DEFAULT
Open ResultSet objects with this holdability will be closed when the current transaction is commited.
-
HOLD_CURSORS_OVER_COMMIT
public static final ResultSetHoldability HOLD_CURSORS_OVER_COMMIT
Open ResultSet objects with this holdability will be closed when the current transaction is commited.
-
CLOSE_CURSORS_AT_COMMIT
public static final ResultSetHoldability CLOSE_CURSORS_AT_COMMIT
open ResultSet objects with this holdability will remain open when the current transaction is commited.
-
-
Method Detail
-
values
public static ResultSetHoldability[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ResultSetHoldability c : ResultSetHoldability.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResultSetHoldability valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
get
public static ResultSetHoldability get(String type)
- Parameters:
type- String that represent enum ignoring case- Returns:
- the value of
type, type of not found returnDEFAULTenum.
-
getHoldability
public int getHoldability()
-
-