|
||||||||||
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 |
---|
com.j256.ormlite.db.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 |
---|
DEFAULT_SEQUENCE_SUFFIX, driver |
Constructor Summary | |
---|---|
MysqlDatabaseType()
|
Method Summary | |
---|---|
protected void |
appendBooleanType(StringBuilder sb,
int fieldWidth)
|
void |
appendCreateTableSuffix(StringBuilder sb)
|
protected void |
appendDateType(StringBuilder sb,
int fieldWidth)
|
protected void |
configureGeneratedId(StringBuilder sb,
com.j256.ormlite.field.FieldType fieldType,
List<String> statementsBefore,
List<String> additionalArgs,
List<String> queriesAfter)
|
String |
getDatabaseName()
|
protected String |
getDriverClassName()
|
boolean |
isCreateIfNotExistsSupported()
|
boolean |
isDatabaseUrlThisType(String url,
String dbTypePart)
|
boolean |
isTruncateSupported()
|
void |
setCreateTableSuffix(String createTableSuffix)
Set the string that is appended to the end of a CREATE TABLE statement. |
Methods inherited from class com.j256.ormlite.db.BaseDatabaseType |
---|
addPrimaryKeySql, addSingleUnique, addUniqueComboSql, appendByteArrayType, appendByteType, appendCanBeNull, appendCharType, appendColumnArg, appendDefaultValue, appendDoubleType, appendEscapedEntityName, appendEscapedWord, appendFloatType, appendIntegerType, appendLimitValue, appendLongStringType, appendLongType, appendOffsetValue, appendSelectNextValFromSequence, appendSerializableType, appendShortType, appendStringType, configureGeneratedIdSequence, configureId, dropColumnArg, generatedIdSqlAtEnd, generateIdSequenceName, getCommentLinePrefix, getFieldConverter, getPingStatement, isBatchUseTransaction, isCreateTableReturnsZero, isEntityNamesMustBeUpCase, isIdSequenceNeeded, isLimitAfterSelect, isLimitSqlSupported, isNestedSavePointsSupported, isOffsetLimitArgument, isOffsetSqlSupported, isSelectSequenceBeforeInsert, isVarcharFieldWidthSupported, loadDriver, setDriver |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.j256.ormlite.db.DatabaseType |
---|
addPrimaryKeySql, addUniqueComboSql, appendColumnArg, appendEscapedEntityName, appendEscapedWord, appendLimitValue, appendOffsetValue, appendSelectNextValFromSequence, dropColumnArg, generateIdSequenceName, getCommentLinePrefix, getFieldConverter, getPingStatement, isBatchUseTransaction, isCreateTableReturnsZero, isEntityNamesMustBeUpCase, isIdSequenceNeeded, isLimitAfterSelect, isLimitSqlSupported, isNestedSavePointsSupported, isOffsetLimitArgument, isOffsetSqlSupported, isSelectSequenceBeforeInsert, isVarcharFieldWidthSupported, loadDriver, setDriver |
Field Detail |
---|
public static final String DEFAULT_CREATE_TABLE_SUFFIX
setCreateTableSuffix(java.lang.String)
method.
Constructor Detail |
---|
public MysqlDatabaseType()
Method Detail |
---|
public boolean isDatabaseUrlThisType(String url, String dbTypePart)
isDatabaseUrlThisType
in interface com.j256.ormlite.db.DatabaseType
protected String getDriverClassName()
getDriverClassName
in class com.j256.ormlite.db.BaseDatabaseType
public String getDatabaseName()
getDatabaseName
in class com.j256.ormlite.db.BaseDatabaseType
public void setCreateTableSuffix(String createTableSuffix)
protected void appendDateType(StringBuilder sb, int fieldWidth)
appendDateType
in class com.j256.ormlite.db.BaseDatabaseType
protected void appendBooleanType(StringBuilder sb, int fieldWidth)
appendBooleanType
in class com.j256.ormlite.db.BaseDatabaseType
protected void configureGeneratedId(StringBuilder sb, com.j256.ormlite.field.FieldType fieldType, List<String> statementsBefore, List<String> additionalArgs, List<String> queriesAfter)
configureGeneratedId
in class com.j256.ormlite.db.BaseDatabaseType
public void appendCreateTableSuffix(StringBuilder sb)
appendCreateTableSuffix
in interface com.j256.ormlite.db.DatabaseType
appendCreateTableSuffix
in class com.j256.ormlite.db.BaseDatabaseType
public boolean isTruncateSupported()
isTruncateSupported
in interface com.j256.ormlite.db.DatabaseType
isTruncateSupported
in class com.j256.ormlite.db.BaseDatabaseType
public boolean isCreateIfNotExistsSupported()
isCreateIfNotExistsSupported
in interface com.j256.ormlite.db.DatabaseType
isCreateIfNotExistsSupported
in class com.j256.ormlite.db.BaseDatabaseType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |