net.aditsu.depeche
public class MySQLProvider extends Provider
| Constructor and Description |
|---|
MySQLProvider(ConnSource cs)
Creates a MySQLProvider using a connection source
|
MySQLProvider(String host,
int port,
String db,
String user,
String password)
Creates a MySQLProvider using connection details including port number
|
MySQLProvider(String host,
String db,
String user,
String password)
Creates a MySQLProvider using connection details
|
| Modifier and Type | Method and Description |
|---|---|
static DSConnSource |
createConnSource(String host,
int port,
String db,
String user,
String password)
Creates a MySQL connection source
|
RawQuery |
getColumnCommentQuery(String table,
String column,
String value)
Returns a query for setting a comment on a table column
|
String |
getCreateTableSQL(TableInfo tinfo)
Returns an SQL command for creating a table given its information, with no constraints other than primary key
|
String |
getDropFKeySQL(FKey fk)
Returns an SQL command for dropping a foreign key constraint
|
long |
getLongLastId(Conn conn)
Returns the last generated auto-increment value in a given connection as a long value
|
addColumn, addColumn, addFKey, addFKey, addUnique, addUnique, batchInsert, batchInsert, clearTable, close, createTable, createTable, createView, createView, dropColumn, dropColumn, dropFKey, dropFKey, dropTable, dropTable, dropView, dropView, execute, execute, filter, filter, filter, filterIn, getAddColumnSQL, getAddFKeySQL, getAddUniqueSQL, getAllTables, getAllViews, getColumnDesc, getCreateViewSQL, getDropColumnSQL, getDropTableSQL, getDropViewSQL, getEnumValues, getGenericTableDetails, getGenericTables, getLastId, getName, getProviderRef, getRecord, getRecord, getRecord, getRecord, getRecord, getRecord, getTableInfo, getTableInfo, getTableInfo, getTableInfo, getTables, getTableTypes, getUniqueConstraints, getViewDefinition, getViews, hasFlag, joinCondition, joinCondition, joinCondition, newRecord, newRecord, newRecord, query, query, query, query, query, quote, rawQuery, rawQuery, rawQuote, resolveTable, resolveTable, run, setColumnComment, setColumnComment, setName, setProviderRef, transactionpublic MySQLProvider(ConnSource cs)
public MySQLProvider(String host, String db, String user, String password)
public static DSConnSource createConnSource(String host, int port, String db, String user, String password)
public String getCreateTableSQL(TableInfo tinfo)
ProvidergetCreateTableSQL in class Providerpublic long getLongLastId(Conn conn)
ProvidergetLongLastId in class Providerpublic String getDropFKeySQL(FKey fk)
ProvidergetDropFKeySQL in class Provider