Class SequenceInformationImpl
- java.lang.Object
-
- org.hibernate.tool.schema.extract.internal.SequenceInformationImpl
-
- All Implemented Interfaces:
SequenceInformation
public class SequenceInformationImpl extends Object implements SequenceInformation
For now we only collect sequence name. If all databases support it, would really like to see INCREMENT here as well.
-
-
Constructor Summary
Constructors Constructor Description SequenceInformationImpl(QualifiedSequenceName sequenceName, Number startValue, Number minValue, Number maxValue, Number incrementValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NumbergetIncrementValue()Retrieve the extracted increment value defined for the sequence.NumbergetMaxValue()Retrieve the extracted maximum value defined for the sequence.NumbergetMinValue()Retrieve the extracted minimum value defined for the sequence.QualifiedSequenceNamegetSequenceName()The qualified sequence name.NumbergetStartValue()Retrieve the extracted start value defined for the sequence.
-
-
-
Constructor Detail
-
SequenceInformationImpl
public SequenceInformationImpl(QualifiedSequenceName sequenceName, Number startValue, Number minValue, Number maxValue, Number incrementValue)
-
-
Method Detail
-
getSequenceName
public QualifiedSequenceName getSequenceName()
Description copied from interface:SequenceInformationThe qualified sequence name.- Specified by:
getSequenceNamein interfaceSequenceInformation- Returns:
- The sequence name
-
getStartValue
public Number 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
public Number 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
public Number 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
public Number 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.
-
-