Class StatementMapper.InsertSpec
java.lang.Object
org.springframework.data.r2dbc.core.StatementMapper.InsertSpec
- Enclosing interface:
- StatementMapper
INSERT
specification.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
InsertSpec
(org.springframework.data.relational.core.sql.SqlIdentifier table, Map<org.springframework.data.relational.core.sql.SqlIdentifier, Parameter> assignments) -
Method Summary
Modifier and TypeMethodDescriptionstatic StatementMapper.InsertSpec
Create anINSERT
specification fortable
.static StatementMapper.InsertSpec
create
(org.springframework.data.relational.core.sql.SqlIdentifier table) Create anINSERT
specification fortable
.org.springframework.data.relational.core.sql.SqlIdentifier
getTable()
withColumn
(String column, Parameter value) Associate a column with aParameter
and create a newStatementMapper.InsertSpec
.withColumn
(org.springframework.data.relational.core.sql.SqlIdentifier column, Parameter value) Associate a column with aParameter
and create a newStatementMapper.InsertSpec
.
-
Constructor Details
-
InsertSpec
-
-
Method Details
-
create
Create anINSERT
specification fortable
.- Parameters:
table
-- Returns:
- the
StatementMapper.InsertSpec
.
-
create
public static StatementMapper.InsertSpec create(org.springframework.data.relational.core.sql.SqlIdentifier table) Create anINSERT
specification fortable
.- Parameters:
table
-- Returns:
- the
StatementMapper.InsertSpec
. - Since:
- 1.1
-
withColumn
Associate a column with aParameter
and 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 aParameter
and 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
-