Class InsertStatement
java.lang.Object
io.github.torand.fastersql.statement.InsertStatement
- All Implemented Interfaces:
Sql
,PreparableStatement
Implements an INSERT statement for single row insertion.
-
Method Summary
Modifier and TypeMethodDescriptionGets the statement parameters introduced by this fragment.Formats object as an SQL fragment.toString()
value
(Column column, Expression value) Adds an expression value to be inserted into a column.Adds a constant value to be inserted into a column.Adds an optional value to be inserted into a column.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.torand.fastersql.statement.PreparableStatement
aliasRefs, columnRefs, toString
-
Method Details
-
value
Adds an expression value to be inserted into a column.- Parameters:
column
- the column.value
- the value.- Returns:
- the modified statement.
-
value
Adds a constant value to be inserted into a column.- Parameters:
column
- the column.value
- the value.- Returns:
- the modified statement.
-
value
Adds an optional value to be inserted into a column. The value is inserted only if the optional value is present.- Parameters:
column
- the column.maybeValue
- the optional value.- Returns:
- the modified statement.
-
sql
Description copied from interface:Sql
Formats object as an SQL fragment. -
params
Description copied from interface:Sql
Gets the statement parameters introduced by this fragment. -
toString
-