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, waitMethods inherited from interface io.github.torand.fastersql.statement.PreparableStatement
toStringMethods inherited from interface io.github.torand.fastersql.sql.Sql
aliasRefs, columnRefs
-
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:SqlFormats object as an SQL fragment. -
params
Description copied from interface:SqlGets the statement parameters introduced by this fragment. -
toString
-