public class H2Dialect extends SQLDialect
SQLDialect.SetValueStatementdataManager| Constructor and Description |
|---|
H2Dialect(@NotNull DataManager dataManager)
Creates a new H2 dialect
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.sql.PreparedStatement |
createColumnImpl(@NotNull java.lang.String table,
@NotNull java.lang.String column)
Create a new column in a table
|
@NotNull java.sql.PreparedStatement |
createTableImpl(@NotNull java.lang.String table)
Create a new table in the database with the
target primary key column |
@NotNull java.sql.PreparedStatement |
getValueImpl(@NotNull java.lang.String table,
@NotNull java.lang.String target,
@NotNull java.lang.String column)
Get the value of a column in a table with respect to the
target |
protected @NotNull java.sql.PreparedStatement |
getValuesImpl(@NotNull java.lang.String table)
Get all the values in a table
|
@NotNull java.sql.PreparedStatement |
removeValueImpl(@NotNull java.lang.String table,
@NotNull java.lang.String target,
@NotNull java.lang.String column)
Remove the value of a column in a table with respect to the
target |
@NotNull java.sql.PreparedStatement |
setValueImpl(@NotNull java.lang.String table,
@NotNull java.lang.String target,
@NotNull java.lang.String column,
@NotNull java.lang.String value)
Set the value of a column in a table with respect to the
target |
@NotNull java.sql.PreparedStatement |
setValuesImpl(@NotNull java.lang.String table,
@NotNull java.lang.String target,
@NotNull java.util.Map<java.lang.String,java.lang.String> data)
Set the values of columns in a table with respect to the
target |
createColumn, createTable, getTables, getValue, getValues, removeValue, setValue, setValues, setValues, setValuesParameterspublic H2Dialect(@NotNull
@NotNull DataManager dataManager)
dataManager - SQLDialect.dataManager@NotNull
public @NotNull java.sql.PreparedStatement createTableImpl(@NotNull
@NotNull java.lang.String table)
throws java.sql.SQLException
SQLDialecttarget primary key columncreateTableImpl in class SQLDialecttable - the name of the table to createPreparedStatement to create the tablejava.sql.SQLException - if a database access error occurs@NotNull
public @NotNull java.sql.PreparedStatement createColumnImpl(@NotNull
@NotNull java.lang.String table,
@NotNull
@NotNull java.lang.String column)
throws java.sql.SQLException
SQLDialectcreateColumnImpl in class SQLDialecttable - the name of the tablecolumn - the name of the column to createjava.sql.SQLException - if a database access error occurs@NotNull
protected @NotNull java.sql.PreparedStatement getValuesImpl(@NotNull
@NotNull java.lang.String table)
throws java.sql.SQLException
SQLDialectgetValuesImpl in class SQLDialecttable - the name of the tablejava.sql.SQLException - if a database access error occurs@NotNull
public @NotNull java.sql.PreparedStatement getValueImpl(@NotNull
@NotNull java.lang.String table,
@NotNull
@NotNull java.lang.String target,
@NotNull
@NotNull java.lang.String column)
throws java.sql.SQLException
SQLDialecttargetgetValueImpl in class SQLDialecttable - the name of the tabletarget - the target to get the value fromcolumn - the column to get the value fromjava.sql.SQLException - if a database access error occurs@NotNull
public @NotNull java.sql.PreparedStatement setValueImpl(@NotNull
@NotNull java.lang.String table,
@NotNull
@NotNull java.lang.String target,
@NotNull
@NotNull java.lang.String column,
@NotNull
@NotNull java.lang.String value)
throws java.sql.SQLException
SQLDialecttargetsetValueImpl in class SQLDialecttable - the name of the tabletarget - the target to set the value tocolumn - the column to set the value tovalue - the value to setjava.sql.SQLException - if a database access error occurs@NotNull
public @NotNull java.sql.PreparedStatement setValuesImpl(@NotNull
@NotNull java.lang.String table,
@NotNull
@NotNull java.lang.String target,
@NotNull
@NotNull java.util.Map<java.lang.String,java.lang.String> data)
throws java.sql.SQLException
SQLDialecttargetsetValuesImpl in class SQLDialecttable - the name of the tabletarget - the target to set the values todata - the data to set (column, value)java.sql.SQLException - if a database access error occurs@NotNull
public @NotNull java.sql.PreparedStatement removeValueImpl(@NotNull
@NotNull java.lang.String table,
@NotNull
@NotNull java.lang.String target,
@NotNull
@NotNull java.lang.String column)
throws java.sql.SQLException
SQLDialecttargetremoveValueImpl in class SQLDialecttable - the name of the tabletarget - the target to remove the value fromcolumn - the column to remove the value fromjava.sql.SQLException - if a database access error occurs