Module spring.data.r2dbc
Class StatementMapper.InsertSpec
java.lang.Object
org.springframework.data.r2dbc.core.StatementMapper.InsertSpec
- Enclosing interface:
- StatementMapper
INSERT specification.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInsertSpec(org.springframework.data.relational.core.sql.SqlIdentifier table, Map<org.springframework.data.relational.core.sql.SqlIdentifier, Parameter> assignments) -
Method Summary
Modifier and TypeMethodDescriptionstatic StatementMapper.InsertSpecCreate anINSERTspecification fortable.static StatementMapper.InsertSpeccreate(org.springframework.data.relational.core.sql.SqlIdentifier table) Create anINSERTspecification fortable.org.springframework.data.relational.core.sql.SqlIdentifiergetTable()withColumn(String column, Parameter value) Associate a column with aParameterand create a newStatementMapper.InsertSpec.withColumn(org.springframework.data.relational.core.sql.SqlIdentifier column, Parameter value) Associate a column with aParameterand create a newStatementMapper.InsertSpec.
-
Constructor Details
-
InsertSpec
-
-
Method Details
-
create
Create anINSERTspecification fortable.- Parameters:
table-- Returns:
- the
StatementMapper.InsertSpec.
-
create
public static StatementMapper.InsertSpec create(org.springframework.data.relational.core.sql.SqlIdentifier table) Create anINSERTspecification fortable.- Parameters:
table-- Returns:
- the
StatementMapper.InsertSpec. - Since:
- 1.1
-
withColumn
Associate a column with aParameterand create a newStatementMapper.InsertSpec.- Parameters:
column-value-- Returns:
- the
StatementMapper.InsertSpec. - Since:
- 1.2
-
withColumn
public StatementMapper.InsertSpec withColumn(org.springframework.data.relational.core.sql.SqlIdentifier column, Parameter value) Associate a column with aParameterand create a newStatementMapper.InsertSpec.- Parameters:
column-value-- Returns:
- the
StatementMapper.InsertSpec. - Since:
- 1.2
-
getTable
public org.springframework.data.relational.core.sql.SqlIdentifier getTable() -
getAssignments
-