Package app.ductape.sdk.database.types
Record Class WriteTypes.InsertOptions
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.WriteTypes.InsertOptions
- Enclosing class:
- WriteTypes
public static record WriteTypes.InsertOptions(String table, Object data, Boolean returning, List<String> returningColumns, WriteTypes.OnConflictOptions onConflict, String env, String product, String database, Object transaction, List<Map<String,Object>> preSave, Object preSaveConfig, String session, String cache)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInsertOptions(String table, Object data, Boolean returning, List<String> returningColumns, WriteTypes.OnConflictOptions onConflict, String env, String product, String database, Object transaction, List<Map<String, Object>> preSave, Object preSaveConfig, String session, String cache) Creates an instance of aInsertOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncache()Returns the value of thecacherecord component.data()Returns the value of thedatarecord component.database()Returns the value of thedatabaserecord component.env()Returns the value of theenvrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theonConflictrecord component.preSave()Returns the value of thepreSaverecord component.Returns the value of thepreSaveConfigrecord component.product()Returns the value of theproductrecord component.Returns the value of thereturningrecord component.Returns the value of thereturningColumnsrecord component.session()Returns the value of thesessionrecord component.table()Returns the value of thetablerecord component.toMap()Shape expected byDatabaseService/ adapters; uses TS keydata.final StringtoString()Returns a string representation of this record class.Returns the value of thetransactionrecord component.
-
Constructor Details
-
InsertOptions
public InsertOptions(String table, Object data, Boolean returning, List<String> returningColumns, WriteTypes.OnConflictOptions onConflict, String env, String product, String database, Object transaction, List<Map<String, Object>> preSave, Object preSaveConfig, String session, String cache) Creates an instance of aInsertOptionsrecord class.- Parameters:
table- the value for thetablerecord componentdata- the value for thedatarecord componentreturning- the value for thereturningrecord componentreturningColumns- the value for thereturningColumnsrecord componentonConflict- the value for theonConflictrecord componentenv- the value for theenvrecord componentproduct- the value for theproductrecord componentdatabase- the value for thedatabaserecord componenttransaction- the value for thetransactionrecord componentpreSave- the value for thepreSaverecord componentpreSaveConfig- the value for thepreSaveConfigrecord componentsession- the value for thesessionrecord componentcache- the value for thecacherecord component
-
-
Method Details
-
toMap
Shape expected byDatabaseService/ adapters; uses TS keydata. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
table
Returns the value of thetablerecord component.- Returns:
- the value of the
tablerecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
returning
Returns the value of thereturningrecord component.- Returns:
- the value of the
returningrecord component
-
returningColumns
Returns the value of thereturningColumnsrecord component.- Returns:
- the value of the
returningColumnsrecord component
-
onConflict
Returns the value of theonConflictrecord component.- Returns:
- the value of the
onConflictrecord component
-
env
Returns the value of theenvrecord component.- Returns:
- the value of the
envrecord component
-
product
Returns the value of theproductrecord component.- Returns:
- the value of the
productrecord component
-
database
Returns the value of thedatabaserecord component.- Returns:
- the value of the
databaserecord component
-
transaction
Returns the value of thetransactionrecord component.- Returns:
- the value of the
transactionrecord component
-
preSave
Returns the value of thepreSaverecord component.- Returns:
- the value of the
preSaverecord component
-
preSaveConfig
Returns the value of thepreSaveConfigrecord component.- Returns:
- the value of the
preSaveConfigrecord component
-
session
Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-
cache
Returns the value of thecacherecord component.- Returns:
- the value of the
cacherecord component
-