Record Class OracleReturningMetadata
java.lang.Object
java.lang.Record
io.micronaut.data.runtime.operations.internal.sql.OracleReturningMetadata
- Record Components:
canonicalColumnIndexesByName- The canonical returned column names mapped to the underlying JDBC/R2DBC indexcolumnIndexesByName- The canonical names plus Oracle-specific aliases mapped to the same underlying index
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecanonicalColumnIndexesByNamerecord component.Returns the value of thecolumnIndexesByNamerecord component.static OracleReturningMetadataCreates OracleRETURNINGmetadata using zero-based positions derived from the provided column order.static OracleReturningMetadataCreates OracleRETURNINGmetadata using the provided column order and underlying indexes.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OracleReturningMetadata
public OracleReturningMetadata(Map<String, Integer> canonicalColumnIndexesByName, Map<String, Integer> columnIndexesByName) Creates an instance of aOracleReturningMetadatarecord class.- Parameters:
canonicalColumnIndexesByName- the value for thecanonicalColumnIndexesByNamerecord componentcolumnIndexesByName- the value for thecolumnIndexesByNamerecord component
-
-
Method Details
-
create
Creates OracleRETURNINGmetadata using zero-based positions derived from the provided column order.- Parameters:
columnNames- The returned column names in result order- Returns:
- The Oracle returning metadata
-
create
Creates OracleRETURNINGmetadata using the provided column order and underlying indexes.- Parameters:
columnNames- The returned column names in result ordercolumnIndexes- The underlying JDBC/R2DBC indexes for each returned column- Returns:
- The Oracle returning metadata
-
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). -
canonicalColumnIndexesByName
Returns the value of thecanonicalColumnIndexesByNamerecord component.- Returns:
- the value of the
canonicalColumnIndexesByNamerecord component
-
columnIndexesByName
Returns the value of thecolumnIndexesByNamerecord component.- Returns:
- the value of the
columnIndexesByNamerecord component
-