java.lang.Object
java.lang.Record
org.litebridge.db.spi.DatabaseProviderMetaData
- Record Components:
supportsSequenceColumnValueGenerator- Whether the database provider supports sequence-based column value generation.mergeCapability- Level of support forMERGE INTOoperations provided by the datbase.insertCapability- The capability of the database provider for handlingINSERToperations.
public record DatabaseProviderMetaData(boolean supportsSequenceColumnValueGenerator, DatabaseProviderMetaData.MergeCapability mergeCapability, DatabaseProviderMetaData.InsertCapability insertCapability)
extends Record
Information about the capabilities of the database provider.
This influences how the ORM interacts with the database provider when compiling statements.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumInsert operation capability.static enumMerge operation capability. -
Constructor Summary
ConstructorsConstructorDescriptionDatabaseProviderMetaData(boolean supportsSequenceColumnValueGenerator, DatabaseProviderMetaData.MergeCapability mergeCapability, DatabaseProviderMetaData.InsertCapability insertCapability) Creates an instance of aDatabaseProviderMetaDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinsertCapabilityrecord component.Returns the value of themergeCapabilityrecord component.booleanReturns the value of thesupportsSequenceColumnValueGeneratorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DatabaseProviderMetaData
public DatabaseProviderMetaData(boolean supportsSequenceColumnValueGenerator, DatabaseProviderMetaData.MergeCapability mergeCapability, DatabaseProviderMetaData.InsertCapability insertCapability) Creates an instance of aDatabaseProviderMetaDatarecord class.- Parameters:
supportsSequenceColumnValueGenerator- the value for thesupportsSequenceColumnValueGeneratorrecord componentmergeCapability- the value for themergeCapabilityrecord componentinsertCapability- the value for theinsertCapabilityrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
supportsSequenceColumnValueGenerator
public boolean supportsSequenceColumnValueGenerator()Returns the value of thesupportsSequenceColumnValueGeneratorrecord component.- Returns:
- the value of the
supportsSequenceColumnValueGeneratorrecord component
-
mergeCapability
Returns the value of themergeCapabilityrecord component.- Returns:
- the value of the
mergeCapabilityrecord component
-
insertCapability
Returns the value of theinsertCapabilityrecord component.- Returns:
- the value of the
insertCapabilityrecord component
-