Class SqlStatementBuilder
- java.lang.Object
-
- io.vertigo.database.sql.statement.SqlStatementBuilder
-
- All Implemented Interfaces:
io.vertigo.core.lang.Builder<SqlStatement>
public final class SqlStatementBuilder extends Object implements io.vertigo.core.lang.Builder<SqlStatement>
SqlStatementBuilder. Builder for SqlStatement- Author:
- mlaroche
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlStatementBuilderbind(String name, Class dataType, Object value)Add a value for a named parameterSqlStatementbuild()SqlStatementBuildernextLine()Goes to next line of parameters (only useful for batch statements)
-
-
-
Method Detail
-
bind
public SqlStatementBuilder bind(String name, Class dataType, Object value)
Add a value for a named parameter- Parameters:
name- the parameter namedataType- the type of the parametervalue- the value of the parameter- Returns:
- this builder
-
nextLine
public SqlStatementBuilder nextLine()
Goes to next line of parameters (only useful for batch statements)- Returns:
- this builder
-
build
public SqlStatement build()
- Specified by:
buildin interfaceio.vertigo.core.lang.Builder<SqlStatement>
-
-