Record Class SqlDialectOptions
java.lang.Object
java.lang.Record
io.micronaut.data.model.query.builder.sql.SqlDialectOptions
- Record Components:
dialect- The dialect these options apply toversion- The target dialect version
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSqlDialectOptions(Dialect dialect, Optional<String> version) Creates dialect options. -
Method Summary
Modifier and TypeMethodDescriptionstatic SqlDialectOptionsdialect()Returns the value of thedialectrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisVersionAtLeast(@Nullable String requiredVersion) static SqlDialectOptionsResolve options from annotation metadata.static SqlDialectOptionsCreate options from explicit values.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.static StringversionConfiguration(Dialect dialect) Resolve the annotation processor option key for a dialect target version.
-
Field Details
-
ORACLE_26_0_VERSION
Oracle version that enables lock-free reservation generation.- See Also:
-
DIALECT_OPTIONS_CONFIGURATION_PREFIX
Annotation processor option prefix for SQL dialect options.- See Also:
-
MEMBER_VERSION
Annotation/configuration member for target dialect version.- See Also:
-
-
Constructor Details
-
SqlDialectOptions
-
-
Method Details
-
defaults
- Parameters:
dialect- The dialect- Returns:
- default options for the dialect
-
of
Create options from explicit values.- Parameters:
dialect- The dialectversion- The target dialect version- Returns:
- resolved dialect options
-
of
public static SqlDialectOptions of(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, Dialect dialect) Resolve options from annotation metadata.- Parameters:
annotationMetadata- The annotation metadatadialect- The dialect- Returns:
- resolved dialect options
-
versionConfiguration
-
isVersionAtLeast
- Parameters:
requiredVersion- The required target dialect version- Returns:
- true if the configured target dialect version is at least the required version
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
dialect
-
version
-