public static class StatementMapper.InsertSpec extends Object
INSERT
specification.Modifier | Constructor and Description |
---|---|
protected |
InsertSpec(org.springframework.data.relational.core.sql.SqlIdentifier table,
Map<org.springframework.data.relational.core.sql.SqlIdentifier,Parameter> assignments) |
Modifier and Type | Method and Description |
---|---|
static StatementMapper.InsertSpec |
create(org.springframework.data.relational.core.sql.SqlIdentifier table)
Create an
INSERT specification for table . |
static StatementMapper.InsertSpec |
create(String table)
Create an
INSERT specification for table . |
Map<org.springframework.data.relational.core.sql.SqlIdentifier,Parameter> |
getAssignments() |
org.springframework.data.relational.core.sql.SqlIdentifier |
getTable() |
StatementMapper.InsertSpec |
withColumn(org.springframework.data.relational.core.sql.SqlIdentifier column,
Parameter value)
Associate a column with a
Parameter and create a new StatementMapper.InsertSpec . |
StatementMapper.InsertSpec |
withColumn(org.springframework.data.relational.core.sql.SqlIdentifier column,
SettableValue value)
Deprecated.
since 1.2, use
withColumn(SqlIdentifier, Parameter) instead. |
StatementMapper.InsertSpec |
withColumn(String column,
Parameter value)
Associate a column with a
Parameter and create a new StatementMapper.InsertSpec . |
StatementMapper.InsertSpec |
withColumn(String column,
SettableValue value)
Deprecated.
since 1.2, use
withColumn(String, Parameter) instead. |
public static StatementMapper.InsertSpec create(String table)
INSERT
specification for table
.table
- StatementMapper.InsertSpec
.public static StatementMapper.InsertSpec create(org.springframework.data.relational.core.sql.SqlIdentifier table)
INSERT
specification for table
.table
- StatementMapper.InsertSpec
.@Deprecated public StatementMapper.InsertSpec withColumn(String column, SettableValue value)
withColumn(String, Parameter)
instead.SettableValue
and create a new StatementMapper.InsertSpec
.column
- value
- StatementMapper.InsertSpec
.public StatementMapper.InsertSpec withColumn(String column, Parameter value)
Parameter
and create a new StatementMapper.InsertSpec
.column
- value
- StatementMapper.InsertSpec
.@Deprecated public StatementMapper.InsertSpec withColumn(org.springframework.data.relational.core.sql.SqlIdentifier column, SettableValue value)
withColumn(SqlIdentifier, Parameter)
instead.SettableValue
and create a new StatementMapper.InsertSpec
.column
- value
- StatementMapper.InsertSpec
.public StatementMapper.InsertSpec withColumn(org.springframework.data.relational.core.sql.SqlIdentifier column, Parameter value)
Parameter
and create a new StatementMapper.InsertSpec
.column
- value
- StatementMapper.InsertSpec
.public org.springframework.data.relational.core.sql.SqlIdentifier getTable()
Copyright © 2018–2022 Pivotal Software, Inc.. All rights reserved.