|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.j256.ormlite.db.BaseDatabaseType
com.j256.ormlite.db.MysqlDatabaseType
public class MysqlDatabaseType
MySQL database type information used to create the tables, etc..
NOTE: By default the tables are created with the ENGINE=InnoDB suffix (see
DEFAULT_CREATE_TABLE_SUFFIX. Use setCreateTableSuffix(java.lang.String) to change that to "" to use the default
MyISAM storage engine, to choose another engine, or set other settings. For more information about engines, see the
'SHOW ENGINES;' results from the MySQL command line tool.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.j256.ormlite.db.BaseDatabaseType |
|---|
BaseDatabaseType.BooleanNumberFieldConverter |
| Field Summary | |
|---|---|
static String |
DEFAULT_CREATE_TABLE_SUFFIX
Default suffix to the CREATE TABLE statement. |
| Fields inherited from class com.j256.ormlite.db.BaseDatabaseType |
|---|
booleanConverter |
| Constructor Summary | |
|---|---|
MysqlDatabaseType()
|
|
| Method Summary | |
|---|---|
protected void |
appendBooleanType(StringBuilder sb)
Output the SQL type for a Java boolean. |
void |
appendCreateTableSuffix(StringBuilder sb)
Append the SQL necessary to properly finish a CREATE TABLE line. |
protected void |
appendDateType(StringBuilder sb)
Output the SQL type for a Java Date. |
protected void |
appendObjectType(StringBuilder sb)
Output the SQL type for a Java object. |
protected void |
configureGeneratedId(StringBuilder sb,
FieldType fieldType,
List<String> statementsBefore,
List<String> additionalArgs,
List<String> queriesAfter)
Output the SQL necessary to configure a generated-id column. |
String |
getDriverClassName()
Return the class name of the database driver. |
String |
getDriverUrlPart()
Return the part in the database URI which identifies the particular database. |
void |
setCreateTableSuffix(String createTableSuffix)
Set the string that is appended to the end of a CREATE TABLE statement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_CREATE_TABLE_SUFFIX
setCreateTableSuffix(java.lang.String) method.
| Constructor Detail |
|---|
public MysqlDatabaseType()
| Method Detail |
|---|
public String getDriverUrlPart()
DatabaseType
getDriverUrlPart in interface DatabaseTypepublic String getDriverClassName()
DatabaseType
getDriverClassName in interface DatabaseTypepublic void setCreateTableSuffix(String createTableSuffix)
protected void appendDateType(StringBuilder sb)
BaseDatabaseType
appendDateType in class BaseDatabaseTypeprotected void appendBooleanType(StringBuilder sb)
BaseDatabaseType
appendBooleanType in class BaseDatabaseTypeprotected void appendObjectType(StringBuilder sb)
BaseDatabaseType
appendObjectType in class BaseDatabaseType
protected void configureGeneratedId(StringBuilder sb,
FieldType fieldType,
List<String> statementsBefore,
List<String> additionalArgs,
List<String> queriesAfter)
BaseDatabaseType
configureGeneratedId in class BaseDatabaseTypepublic void appendCreateTableSuffix(StringBuilder sb)
DatabaseType
appendCreateTableSuffix in interface DatabaseTypeappendCreateTableSuffix in class BaseDatabaseType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||