T - self pointerpublic abstract class AbstractInsertValueTable<T extends AbstractInsertValueTable<T>> extends AbstractFragment
INSERT, MERGE).| Modifier and Type | Field and Description |
|---|---|
protected InsertFields |
insertFields |
protected ValueTable |
insertValueTable |
root| Constructor and Description |
|---|
AbstractInsertValueTable(Fragment root)
Create the abstract base for a fragment containing a value table.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createInsertValueInstanceIfItDoesNotExist() |
T |
field(String... names)
Define fields into which should be inserted.
|
boolean |
hasFields()
Check if a insert fields are defined.
|
boolean |
hasValues()
Check if a value table is present.
|
protected abstract T |
self() |
T |
valuePlaceholder()
Add an unnamed value placeholder to the value list (this is useful for prepared statements).
|
T |
valuePlaceholders(int amount)
Add a given number unnamed value placeholder to the value list (this is useful for prepared statements).
|
T |
values(int... values)
Insert a list of integer values.
|
T |
values(String... values)
Insert a list of string values.
|
T |
values(ValueExpression... expressions)
Insert a list of value expressions.
|
T |
valueTable(ValueTable table)
Insert a value table.
|
getRootprotected ValueTable insertValueTable
protected InsertFields insertFields
public AbstractInsertValueTable(Fragment root)
root - root fragmentprotected abstract T self()
protected void createInsertValueInstanceIfItDoesNotExist()
public T field(String... names)
names - field namesthis for fluent programmingpublic T valueTable(ValueTable table)
table - value table to be insertedthis for fluent programmingpublic T values(String... values)
values - string values to be insertedthis for fluent programmingpublic T values(int... values)
values - integer values to be insertedthis for fluent programmingpublic T values(ValueExpression... expressions)
expressions - value expressions to be insertedthis for fluent programmingpublic T valuePlaceholder()
this for fluent programmingpublic T valuePlaceholders(int amount)
amount - number of placeholders to be addedthis for fluent programmingpublic boolean hasValues()
true if a value table existspublic boolean hasFields()
true if insert fields are definedCopyright © 2018–2021. All rights reserved.