Top Description Fields Constructors Methods
org.hibernate.tool.schema.extract.internal

public Class SequenceInformationImpl

extends Object
implements SequenceInformation
Class Inheritance
All Implemented Interfaces
org.hibernate.tool.schema.extract.spi.SequenceInformation
Imports
org.hibernate.boot.model.relational.QualifiedSequenceName, org.hibernate.tool.schema.extract.spi.SequenceInformation

For now we only collect sequence name. If all databases support it, would really like to see INCREMENT here as well.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Number
private final Number
private final Number
private final QualifiedSequenceName
private final Number

Constructor Summary

AccessConstructor and Description
public
SequenceInformationImpl(QualifiedSequenceName sequenceName, Number startValue, Number minValue, Number maxValue, Number incrementValue)

Method Summary

Modifier and TypeMethod and Description
public Number
getIncrementValue()

Implements org.hibernate.tool.schema.extract.spi.SequenceInformation.getIncrementValue.

Retrieve the extracted increment value defined for the sequence.
public Number
getMaxValue()

Implements org.hibernate.tool.schema.extract.spi.SequenceInformation.getMaxValue.

Retrieve the extracted maximum value defined for the sequence.
public Number
getMinValue()

Implements org.hibernate.tool.schema.extract.spi.SequenceInformation.getMinValue.

Retrieve the extracted minimum value defined for the sequence.
public QualifiedSequenceName
public Number
getStartValue()

Implements org.hibernate.tool.schema.extract.spi.SequenceInformation.getStartValue.

Retrieve the extracted start value defined for the sequence.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

incrementValueback to summary
private final Number incrementValue
maxValueback to summary
private final Number maxValue
minValueback to summary
private final Number minValue
sequenceNameback to summary
private final QualifiedSequenceName sequenceName
startValueback to summary
private final Number startValue

Constructor Detail

SequenceInformationImplback to summary
public SequenceInformationImpl(QualifiedSequenceName sequenceName, Number startValue, Number minValue, Number maxValue, Number incrementValue)

Method Detail

getIncrementValueback to summary
public Number getIncrementValue()

Implements org.hibernate.tool.schema.extract.spi.SequenceInformation.getIncrementValue.

Doc from org.hibernate.tool.schema.extract.spi.SequenceInformation.getIncrementValue.

Retrieve the extracted increment value defined for the sequence.

Returns:Number

The extracted increment value; use a negative number to indicate the increment could not be extracted.

Annotations
@Override
getMaxValueback to summary
public Number getMaxValue()

Implements org.hibernate.tool.schema.extract.spi.SequenceInformation.getMaxValue.

Doc from org.hibernate.tool.schema.extract.spi.SequenceInformation.getMaxValue.

Retrieve the extracted maximum value defined for the sequence.

Returns:Number

The extracted maximum value or null id the value could not be extracted.

getMinValueback to summary
public Number getMinValue()

Implements org.hibernate.tool.schema.extract.spi.SequenceInformation.getMinValue.

Doc from org.hibernate.tool.schema.extract.spi.SequenceInformation.getMinValue.

Retrieve the extracted minimum value defined for the sequence.

Returns:Number

The extracted minimum value or null id the value could not be extracted.

Annotations
@Override
getSequenceNameback to summary
public QualifiedSequenceName getSequenceName()

Implements org.hibernate.tool.schema.extract.spi.SequenceInformation.getSequenceName.

Doc from org.hibernate.tool.schema.extract.spi.SequenceInformation.getSequenceName.

The qualified sequence name.

Returns:QualifiedSequenceName

The sequence name

Annotations
@Override
getStartValueback to summary
public Number getStartValue()

Implements org.hibernate.tool.schema.extract.spi.SequenceInformation.getStartValue.

Doc from org.hibernate.tool.schema.extract.spi.SequenceInformation.getStartValue.

Retrieve the extracted start value defined for the sequence.

Returns:Number

The extracted start value or null id the value could not be extracted.

Annotations
@Override