PersistenceFactorypublic final class MySQLFactory extends GenericFactory
PersistenceFactory for MySQL JDBC driver.| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
FACTORY_NAME |
Internal name for this
PersistenceFactory instance. |
| Constructor | Description |
|---|---|
MySQLFactory() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Class<?> |
adjustSqlType(java.lang.Class<?> sqlType) |
For CLOB type ResultSet.setClob() is not supported yet by mm.MySql JDBC driver.
|
java.lang.String |
getFactoryName() |
Returns the name of this factory.
|
java.lang.String |
getIdentitySelectString(java.lang.String tableName,
java.lang.String columnName) |
Returns the database specific query string for retrieving last identity value.
|
QueryExpression |
getQueryExpression() |
Returns a new empty query expression suitable for the underlying
SQL engine.
|
boolean |
isKeyGeneratorIdentitySupported() |
Does persistence factory support generation of unique keys with identity key generator?
|
boolean |
isKeyGeneratorIdentityTypeSupported(int type) |
Does identity key generator support generation of unique keys for the given SQL type?
|
getCallQuery, getKeyGenerator, getPersistencedoubleQuoteName, getSequenceAfterSelectString, getSequenceBeforeSelectString, getSequenceNextValString, isKeyGeneratorSequenceSupported, isKeyGeneratorSequenceTypeSupported, quoteNamepublic static final java.lang.String FACTORY_NAME
PersistenceFactory instance.public java.lang.String getFactoryName()
PersistenceFactorygetFactoryName in interface PersistenceFactorygetFactoryName in class GenericFactorypublic QueryExpression getQueryExpression()
PersistenceFactorygetQueryExpression in interface PersistenceFactorygetQueryExpression in class GenericFactorypublic java.lang.Class<?> adjustSqlType(java.lang.Class<?> sqlType)
adjustSqlType in interface PersistenceFactoryadjustSqlType in class BaseFactorysqlType - The correspondent Java class for the SQL type in mapping.xmlpublic boolean isKeyGeneratorIdentitySupported()
GenericFactoryisKeyGeneratorIdentitySupported in interface PersistenceFactoryisKeyGeneratorIdentitySupported in class GenericFactorytrue if persistence factory is able to generate unique keys with
identity key generator, false otherwise.public boolean isKeyGeneratorIdentityTypeSupported(int type)
GenericFactoryisKeyGeneratorIdentityTypeSupported in interface PersistenceFactoryisKeyGeneratorIdentityTypeSupported in class GenericFactorytype - SQL type to check for support by identity key generator.true if persistence factory is able to generate unique keys of
given SQL type with identity key generator, false otherwise.public java.lang.String getIdentitySelectString(java.lang.String tableName,
java.lang.String columnName)
GenericFactorygetIdentitySelectString in interface PersistenceFactorygetIdentitySelectString in class GenericFactorytableName - Name of the table from which identity needs to be fetched.columnName - Name of the column from which identity needs to be fetched.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com