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:SequenceInformationThe qualified sequence name.- Specified by:
getSequenceNamein interfaceSequenceInformation- Returns:
- The sequence name
-
getStartValue
Description copied from interface:SequenceInformationRetrieve the extracted start value defined for the sequence.- Specified by:
getStartValuein interfaceSequenceInformation- Returns:
- The extracted start value or null id the value could not be extracted.
-
getMinValue
Description copied from interface:SequenceInformationRetrieve the extracted minimum value defined for the sequence.- Specified by:
getMinValuein interfaceSequenceInformation- Returns:
- The extracted minimum value or null id the value could not be extracted.
-
getMaxValue
Description copied from interface:SequenceInformationRetrieve the extracted maximum value defined for the sequence.- Specified by:
getMaxValuein interfaceSequenceInformation- Returns:
- The extracted maximum value or null id the value could not be extracted.
-
getIncrementValue
Description copied from interface:SequenceInformationRetrieve the extracted increment value defined for the sequence.- Specified by:
getIncrementValuein interfaceSequenceInformation- Returns:
- The extracted increment value; use a negative number to indicate the increment could not be extracted.
-