Module org.firebirdsql.jaybird
Enum Class ConnectionPropertyType
- All Implemented Interfaces:
Serializable,Comparable<ConnectionPropertyType>,Constable
Basic connection property types supported by Jaybird.
- Since:
- 5
- Author:
- Mark Rotteveel
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMaps between transaction isolation level names and JDBC transaction isolation level codes. -
Method Summary
Modifier and TypeMethodDescriptionabstract BooleanConvert a value of this property type to boolean.abstract IntegerConvert a value of this property type to integer.Convert a value of this property type to string.final DpbTypeabstract ObjectConvert a boolean to a value of this property type.abstract ObjectConvert an integer to a value of this property type.abstract ObjectConvert a string to a value of this property type.static ConnectionPropertyTypeReturns the enum constant of this class with the specified name.static ConnectionPropertyType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRING
-
INT
-
BOOLEAN
-
TRANSACTION_ISOLATION
Maps between transaction isolation level names and JDBC transaction isolation level codes. For internal use only.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getDefaultParameterType
-
toType
Convert a string to a value of this property type.- Parameters:
stringValue- String value- Returns:
- Appropriate value of this type
- Throws:
IllegalArgumentException- For conversion errors
-
toType
Convert an integer to a value of this property type.- Parameters:
intValue- integer value- Returns:
- Appropriate value of this type
- Throws:
IllegalArgumentException- For conversion errors
-
toType
Convert a boolean to a value of this property type.- Parameters:
booleanValue- boolean value- Returns:
- Appropriate value of this type
- Throws:
IllegalArgumentException- For conversion errors
-
asInteger
Convert a value of this property type to integer.- Parameters:
value- value of this property type- Returns:
- Integer equivalent
- Throws:
ClassCastException- ifvalueis not of this type
-
asString
Convert a value of this property type to string.- Parameters:
value- value of this property type- Returns:
- String equivalent
-
asBoolean
Convert a value of this property type to boolean.- Parameters:
value- value of this property type- Returns:
- Boolean equivalent
- Throws:
ClassCastException- ifvalueis not of this type
-