Package com.vladmihalcea.hibernate.id
Enum BatchSequenceGenerator.IdentifierExtractor
- java.lang.Object
-
- java.lang.Enum<BatchSequenceGenerator.IdentifierExtractor>
-
- com.vladmihalcea.hibernate.id.BatchSequenceGenerator.IdentifierExtractor
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BatchSequenceGenerator.IdentifierExtractor>
- Enclosing class:
- BatchSequenceGenerator
static enum BatchSequenceGenerator.IdentifierExtractor extends java.lang.Enum<BatchSequenceGenerator.IdentifierExtractor>
Extracts aSerializable
identifier from aResultSet
.- See Also:
IntegralDataTypeHolder
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BIG_DECIMAL_IDENTIFIER_EXTRACTOR
BIG_INTEGER_IDENTIFIER_EXTRACTOR
INTEGER_IDENTIFIER_EXTRACTOR
LONG_IDENTIFIER_EXTRACTOR
-
Constructor Summary
Constructors Modifier Constructor Description private
IdentifierExtractor()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract java.io.Serializable
extractIdentifier(java.sql.ResultSet resultSet)
(package private) static BatchSequenceGenerator.IdentifierExtractor
getIdentifierExtractor(java.lang.Class<?> integralType)
static BatchSequenceGenerator.IdentifierExtractor
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BatchSequenceGenerator.IdentifierExtractor[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTEGER_IDENTIFIER_EXTRACTOR
public static final BatchSequenceGenerator.IdentifierExtractor INTEGER_IDENTIFIER_EXTRACTOR
-
LONG_IDENTIFIER_EXTRACTOR
public static final BatchSequenceGenerator.IdentifierExtractor LONG_IDENTIFIER_EXTRACTOR
-
BIG_INTEGER_IDENTIFIER_EXTRACTOR
public static final BatchSequenceGenerator.IdentifierExtractor BIG_INTEGER_IDENTIFIER_EXTRACTOR
-
BIG_DECIMAL_IDENTIFIER_EXTRACTOR
public static final BatchSequenceGenerator.IdentifierExtractor BIG_DECIMAL_IDENTIFIER_EXTRACTOR
-
-
Method Detail
-
values
public static BatchSequenceGenerator.IdentifierExtractor[] 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 (BatchSequenceGenerator.IdentifierExtractor c : BatchSequenceGenerator.IdentifierExtractor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BatchSequenceGenerator.IdentifierExtractor valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
extractIdentifier
abstract java.io.Serializable extractIdentifier(java.sql.ResultSet resultSet) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getIdentifierExtractor
static BatchSequenceGenerator.IdentifierExtractor getIdentifierExtractor(java.lang.Class<?> integralType)
-
-