public class DerbyDialect extends Object implements SQLDialect
| Constructor and Description |
|---|
DerbyDialect() |
| Modifier and Type | Method and Description |
|---|---|
String |
addColumn(Column<?,?> column,
List<Object> params)
Creates the given column add DDLs.
|
void |
addColumn(StringBuilder builder,
List<Object> params,
Column<?,?> column,
boolean isLast) |
void |
alterTable(StringBuilder builder,
Table table) |
boolean |
canHandle(Connection connection)
Determines if this dialect can handle the given connection.
|
void |
changeColumn(StringBuilder builder,
List<Object> params,
Column<?,?> column,
String oldColumn,
boolean isLast) |
String |
changeColumn(String oldName,
Column<?,?> column,
List<Object> params)
Creates the given column change DDLs.
|
void |
createColumn(StringBuilder builder,
List<Object> params,
Column<?,?> column) |
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.
|
void |
createIndex(StringBuilder builder,
String name,
Table table,
Column<?,?>[] columns,
boolean unique) |
void |
createTable(StringBuilder builder,
Table table) |
String |
createTable(Table table,
List<Object> params)
Creates the given table DDLs.
|
void |
createUniqueIndex(StringBuilder builder,
String name,
Table table,
Column<?,?>[] columns) |
String |
dropColumn(Column<?,?> column,
List<Object> params)
Creates the given column drop DDLs.
|
void |
dropColumn(StringBuilder builder,
Column<?,?> column,
boolean isLast) |
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 |
dropIndex(StringBuilder builder,
String name,
Table table) |
void |
primaryKey(StringBuilder builder,
Column<?,?>[] columns) |
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.
|
public boolean canHandle(Connection connection)
SQLDialectcanHandle in interface SQLDialectconnection - The connection to test.public void writeObjectName(StringBuilder builder, String name)
SQLDialectwriteObjectName in interface SQLDialectbuilder - The string builder for the query.name - The name to write.public void writeLimit(StringBuilder builder, int offset, int count)
SQLDialectwriteLimit in interface SQLDialectbuilder - The string builder for the query.offset - The offset for the limit.count - The quantity of records to return.public String createTable(Table table, List<Object> params)
SQLDialectcreateTable in interface SQLDialecttable - The table to create.params - The paramspublic String addColumn(Column<?,?> column, List<Object> params)
SQLDialectaddColumn in interface SQLDialectcolumn - The column to add.params - The list of parameters.public String dropColumn(Column<?,?> column, List<Object> params)
SQLDialectdropColumn in interface SQLDialectcolumn - The column to drop.params - The list of parameters.public String changeColumn(String oldName, Column<?,?> column, List<Object> params)
SQLDialectchangeColumn in interface SQLDialectoldName - The old name of the column.column - The column to change.params - The list of parameters.public String createIndex(Index index, List<Object> params)
SQLDialectcreateIndex in interface SQLDialectindex - The index to create.params - The list of parameters.public String dropIndex(Index index, List<Object> params)
SQLDialectdropIndex in interface SQLDialectindex - The index to drop.params - The list of parameters.public String createForeignKey(ForeignKey fk, List<Object> params)
SQLDialectcreateForeignKey in interface SQLDialectfk - The foreign key to create.params - The list of parameters.public String dropForeignKey(ForeignKey fk, List<Object> params)
SQLDialectdropForeignKey in interface SQLDialectfk - The foreign key to drop.params - The list of parameters.public void createTable(StringBuilder builder, Table table)
public void createColumn(StringBuilder builder, List<Object> params, Column<?,?> column)
public void createIndex(StringBuilder builder, String name, Table table, Column<?,?>[] columns, boolean unique)
public void createUniqueIndex(StringBuilder builder, String name, Table table, Column<?,?>[] columns)
public void primaryKey(StringBuilder builder, Column<?,?>[] columns)
public void alterTable(StringBuilder builder, Table table)
public void addColumn(StringBuilder builder, List<Object> params, Column<?,?> column, boolean isLast)
public void dropColumn(StringBuilder builder, Column<?,?> column, boolean isLast)
public void changeColumn(StringBuilder builder, List<Object> params, Column<?,?> column, String oldColumn, boolean isLast)
public void dropIndex(StringBuilder builder, String name, Table table)
public void writeLimit(StringBuilder builder, int count)
SQLDialectwriteLimit in interface SQLDialectbuilder - The string builder for the query.count - The quantity of records to return.Copyright © 2015–2018 Bridje Framework. All rights reserved.