public interface SQLDialect
| Modifier and Type | Method and Description |
|---|---|
String |
addColumn(Column<?,?> column,
List<Object> params)
Creates the given column add DDLs.
|
boolean |
canHandle(Connection connection)
Determines if this dialect can handle the given connection.
|
String[] |
changeColumn(String oldName,
Column<?,?> column,
List<Object> params)
Creates the given column change DDLs.
|
String |
createForeignKey(ForeignKey fk,
List<Object> params)
Creates the given foreign key DDLs.
|
String |
createIndex(Index index,
List<Object> params)
Creates the given index DDLs.
|
String |
createTable(Table table,
List<Object> params)
Creates the given table DDLs.
|
String |
dropColumn(Column<?,?> column,
List<Object> params)
Creates the given column drop DDLs.
|
String |
dropForeignKey(ForeignKey fk,
List<Object> params)
Creates the given foreign key drop DDLs.
|
String |
dropIndex(Index index,
List<Object> params)
Creates the given index drop DDLs.
|
void |
writeLimit(StringBuilder builder,
int count)
Writes a limit statement.
|
void |
writeLimit(StringBuilder builder,
int offset,
int count)
Writes a limit statement.
|
void |
writeObjectName(StringBuilder builder,
String name)
Writes the name of the object with this dialect rules for names.
|
boolean canHandle(Connection connection)
connection - The connection to test.void writeObjectName(StringBuilder builder, String name)
builder - The string builder for the query.name - The name to write.void writeLimit(StringBuilder builder, int offset, int count)
builder - The string builder for the query.offset - The offset for the limit.count - The quantity of records to return.void writeLimit(StringBuilder builder, int count)
builder - The string builder for the query.count - The quantity of records to return.String createTable(Table table, List<Object> params)
table - The table to create.params - The paramsString addColumn(Column<?,?> column, List<Object> params)
column - The column to add.params - The list of parameters.String dropColumn(Column<?,?> column, List<Object> params)
column - The column to drop.params - The list of parameters.String[] changeColumn(String oldName, Column<?,?> column, List<Object> params)
oldName - The old name of the column.column - The column to change.params - The list of parameters.String createIndex(Index index, List<Object> params)
index - The index to create.params - The list of parameters.String dropIndex(Index index, List<Object> params)
index - The index to drop.params - The list of parameters.String createForeignKey(ForeignKey fk, List<Object> params)
fk - The foreign key to create.params - The list of parameters.String dropForeignKey(ForeignKey fk, List<Object> params)
fk - The foreign key to drop.params - The list of parameters.Copyright © 2015–2018 Bridje Framework. All rights reserved.