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 Number
getIncrementValue()
Retrieve the extracted increment value defined for the sequence.Number
getMaxValue()
Retrieve the extracted maximum value defined for the sequence.Number
getMinValue()
Retrieve the extracted minimum value defined for the sequence.QualifiedSequenceName
getSequenceName()
The qualified sequence name.Number
getStartValue()
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:SequenceInformation
The qualified sequence name.- Specified by:
getSequenceName
in interfaceSequenceInformation
- Returns:
- The sequence name
-
getStartValue
public Number 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
public Number 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
public Number 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
public Number 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.
-
-