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 Long
private final Long
private final Long
private final QualifiedSequenceName
private final Long

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public Long
getIncrementValue()

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

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

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

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

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

Retrieve the extracted minimum value defined for the sequence.
public QualifiedSequenceName
public Long
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 Long incrementValue
maxValueback to summary
private final Long maxValue
minValueback to summary
private final Long minValue
sequenceNameback to summary
private final QualifiedSequenceName sequenceName
startValueback to summary
private final Long startValue

Constructor Detail

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

Method Detail

getIncrementValueback to summary
public Long 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:Long

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

Annotations
@Override
getMaxValueback to summary
public Long 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:Long

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

getMinValueback to summary
public Long 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:Long

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 Long 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:Long

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

Annotations
@Override