|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.cpa.persistence.sql.driver.BaseFactory
org.castor.cpa.persistence.sql.driver.GenericFactory
org.castor.cpa.persistence.sql.driver.MySQLFactory
public final class MySQLFactory
PersistenceFactory for MySQL JDBC driver.
| Field Summary | |
|---|---|
static String |
FACTORY_NAME
Internal name for this PersistenceFactory instance. |
| Constructor Summary | |
|---|---|
MySQLFactory()
|
|
| Method Summary | |
|---|---|
Class<?> |
adjustSqlType(Class<?> sqlType)
For CLOB type ResultSet.setClob() is not supported yet by mm.MySql JDBC driver. |
String |
getFactoryName()
Returns the name of this factory. |
String |
getIdentitySelectString(String tableName,
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? |
| Methods inherited from class org.castor.cpa.persistence.sql.driver.GenericFactory |
|---|
doubleQuoteName, getSequenceAfterSelectString, getSequenceBeforeSelectString, getSequenceNextValString, isKeyGeneratorSequenceSupported, isKeyGeneratorSequenceTypeSupported, quoteName |
| Methods inherited from class org.castor.cpa.persistence.sql.driver.BaseFactory |
|---|
getCallQuery, getKeyGenerator, getPersistence |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FACTORY_NAME
PersistenceFactory instance.
| Constructor Detail |
|---|
public MySQLFactory()
| Method Detail |
|---|
public String getFactoryName()
PersistenceFactory
getFactoryName in interface PersistenceFactorygetFactoryName in class GenericFactorypublic QueryExpression getQueryExpression()
PersistenceFactory
getQueryExpression in interface PersistenceFactorygetQueryExpression in class GenericFactorypublic Class<?> adjustSqlType(Class<?> sqlType)
adjustSqlType in interface PersistenceFactoryadjustSqlType in class BaseFactorysqlType - The correspondent Java class for the SQL type in mapping.xml
public boolean isKeyGeneratorIdentitySupported()
GenericFactory
isKeyGeneratorIdentitySupported 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)
GenericFactory
isKeyGeneratorIdentityTypeSupported 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 String getIdentitySelectString(String tableName,
String columnName)
GenericFactory
getIdentitySelectString 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||