org.exolab.castor.persist.spi
public interface PersistenceFactory
The factory is specified in the JDO configuration file for the database and is configured through Bean-like accessor methods.
Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:51 $
See Also: Persistence
Method Summary | |
---|---|
String | getFactoryName()
Returns the name of this factory. |
Persistence | getPersistence(ClassDescriptor clsDesc, LogInterceptor logInterceptor)
Returns a persistence implementation for the specified object
type (given its descriptor) on behalf of the specified cache
engine. |
QueryExpression | getQueryExpression()
Returns a new empty query expression suitable for the underlying
SQL engine. |
Boolean | isDuplicateKeyException(Exception except)
Determines it the given exception is indication of a duplicate
key.
|
String | quoteName(String name)
Returns the quoted identifier suitable for preventing conflicts between
database identifiers and reserved keywords.
|
Returns: The name of this factory
Parameters: clsDesc The class descriptor logInterceptor Interceptor to write log messages to (may be null)
Returns: A suiteable persistence implementation, or null
Throws: MappingException Indicates that the object type is not supported by the persistence engine due to improper mapping
Returns: New empty query expression
Returns: TRUE means "yes", FALSE means "no", null means "cannot determine"
Parameters: name The identifier (table, column, etc)
Returns: The quoted identifier