Class SequenceInformationImpl
java.lang.Object
org.hibernate.tool.schema.extract.internal.SequenceInformationImpl
- All Implemented Interfaces:
SequenceInformation
For now we only collect sequence name. If all databases support it, would really like to see INCREMENT here as well.
-
Constructor Summary
ConstructorsConstructorDescriptionSequenceInformationImpl
(QualifiedSequenceName sequenceName, Number startValue, Number minValue, Number maxValue, Number incrementValue) -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the extracted increment value defined for the sequence.Retrieve the extracted maximum value defined for the sequence.Retrieve the extracted minimum value defined for the sequence.The qualified sequence name.Retrieve the extracted start value defined for the sequence.
-
Constructor Details
-
SequenceInformationImpl
public SequenceInformationImpl(QualifiedSequenceName sequenceName, Number startValue, Number minValue, Number maxValue, Number incrementValue)
-
-
Method Details
-
getSequenceName
Description copied from interface:SequenceInformation
The qualified sequence name.- Specified by:
getSequenceName
in interfaceSequenceInformation
- Returns:
- The sequence name
-
getStartValue
Description copied from interface:SequenceInformation
Retrieve the extracted start value defined for the sequence.- Specified by:
getStartValue
in interfaceSequenceInformation
- Returns:
- The extracted start value or null id the value could not be extracted.
-
getMinValue
Description copied from interface:SequenceInformation
Retrieve the extracted minimum value defined for the sequence.- Specified by:
getMinValue
in interfaceSequenceInformation
- Returns:
- The extracted minimum value or null id the value could not be extracted.
-
getMaxValue
Description copied from interface:SequenceInformation
Retrieve the extracted maximum value defined for the sequence.- Specified by:
getMaxValue
in interfaceSequenceInformation
- Returns:
- The extracted maximum value or null id the value could not be extracted.
-
getIncrementValue
Description copied from interface:SequenceInformation
Retrieve the extracted increment value defined for the sequence.- Specified by:
getIncrementValue
in interfaceSequenceInformation
- Returns:
- The extracted increment value; use a negative number to indicate the increment could not be extracted.
-