org.exolab.castor.jdo.drivers

Class MySQLFactory

Implemented Interfaces:
PersistenceFactory

public final class MySQLFactory
extends GenericFactory

PersistenceFactory for MySQL JDBC driver.
Version:
$Revision: 6230 $ $Date: 2006-02-21 16:05:42 -0700 (Tue, 21 Feb 2006) $
Author:
Leonardo Souza Mario Bueno

Field Summary

static String
FACTORY_NAME
Internal name for this PersistenceFactory instance.

Method Summary

Class
adjustSqlType(Class sqlType)
For CLOB type ResultSet.setClob() is not supported yet by mm.MySql JDBC driver.
String
getFactoryName()
QueryExpression
getQueryExpression()

Methods inherited from class org.exolab.castor.jdo.drivers.GenericFactory

doubleQuoteName, getFactoryName, getQueryExpression, isDuplicateKeyException, quoteName

Methods inherited from class org.exolab.castor.jdo.engine.BaseFactory

adjustSqlType, getCallQuery, getPersistence, supportsSetNullInWhere

Field Details

FACTORY_NAME

public static final String FACTORY_NAME

Method Details

adjustSqlType

public Class adjustSqlType(Class sqlType)
For CLOB type ResultSet.setClob() is not supported yet by mm.MySql JDBC driver. BLOB support is buggy in MM.MySQL 2.0.3: it handles NULL values in incorrect way.
Overrides:
adjustSqlType in interface BaseFactory

getFactoryName

public String getFactoryName()
Specified by:
getFactoryName in interface PersistenceFactory
Overrides:
getFactoryName in interface GenericFactory

getQueryExpression

public QueryExpression getQueryExpression()
Specified by:
getQueryExpression in interface PersistenceFactory
Overrides:
getQueryExpression in interface GenericFactory

Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com