Class SequenceInformationExtractors.Builder
java.lang.Object
org.hibernate.tool.schema.extract.spi.SequenceInformationExtractors.Builder
- Enclosing class:
SequenceInformationExtractors
Configure the row mapping used by a standard single-query extractor.
Each configuration method replaces the previous reader for the same
value. Call build() after configuration and retain the resulting
immutable extractor instead of retaining this mutable builder.
- Since:
- 8.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Capture the current configuration in an immutable extractor.catalogColumn(String label) Read the catalog withResultSet#getString(label).Read the catalog withreader.incrementValueColumn(String label) Read the increment value withResultSet#getLong(label).incrementValueReader(SequenceMetadataValueReader<? extends Number> reader) Read the increment value withreader.maximumValueColumn(String label) Read the maximum value withResultSet#getLong(label).maximumValueReader(SequenceMetadataValueReader<? extends Number> reader) Read the maximum value withreader.minimumValueColumn(String label) Read the minimum value withResultSet#getLong(label).minimumValueReader(SequenceMetadataValueReader<? extends Number> reader) Read the minimum value withreader.schemaColumn(String label) Read the schema withResultSet#getString(label).Read the schema withreader.sequenceNameColumn(int position) Read the sequence name withResultSet#getString(position).sequenceNameColumn(String label) Read the sequence name withResultSet#getString(label).Read the sequence name withreader.startValueColumn(String label) Read the start value withResultSet#getLong(label).startValueReader(SequenceMetadataValueReader<? extends Number> reader) Read the start value withreader.Do not read a catalog; report it asnull.Do not read an increment value; report it asnull.Do not read a maximum value; report it asnull.Do not read a minimum value; report it asnull.Do not read a schema; report it asnull.Do not read a start value; report it asnull.
-
Method Details
-
sequenceNameColumn
Read the sequence name withResultSet#getString(label). -
sequenceNameColumn
Read the sequence name withResultSet#getString(position). -
sequenceNameReader
public SequenceInformationExtractors.Builder sequenceNameReader(SequenceMetadataValueReader<String> reader) Read the sequence name withreader. -
catalogColumn
Read the catalog withResultSet#getString(label). -
catalogReader
public SequenceInformationExtractors.Builder catalogReader(SequenceMetadataValueReader<String> reader) Read the catalog withreader. -
withoutCatalog
Do not read a catalog; report it asnull. -
schemaColumn
Read the schema withResultSet#getString(label). -
schemaReader
public SequenceInformationExtractors.Builder schemaReader(SequenceMetadataValueReader<String> reader) Read the schema withreader. -
withoutSchema
Do not read a schema; report it asnull. -
startValueColumn
Read the start value withResultSet#getLong(label). -
startValueReader
public SequenceInformationExtractors.Builder startValueReader(SequenceMetadataValueReader<? extends Number> reader) Read the start value withreader. -
withoutStartValue
Do not read a start value; report it asnull. -
minimumValueColumn
Read the minimum value withResultSet#getLong(label). -
minimumValueReader
public SequenceInformationExtractors.Builder minimumValueReader(SequenceMetadataValueReader<? extends Number> reader) Read the minimum value withreader. -
withoutMinimumValue
Do not read a minimum value; report it asnull. -
maximumValueColumn
Read the maximum value withResultSet#getLong(label). -
maximumValueReader
public SequenceInformationExtractors.Builder maximumValueReader(SequenceMetadataValueReader<? extends Number> reader) Read the maximum value withreader. -
withoutMaximumValue
Do not read a maximum value; report it asnull. -
incrementValueColumn
Read the increment value withResultSet#getLong(label). -
incrementValueReader
public SequenceInformationExtractors.Builder incrementValueReader(SequenceMetadataValueReader<? extends Number> reader) Read the increment value withreader. -
withoutIncrementValue
Do not read an increment value; report it asnull. -
build
Capture the current configuration in an immutable extractor.
-