Package org.exolab.castor.persist.spi

Defines the interfaces for persistence engine service providers.

See:
          Description

Interface Summary
CallbackInterceptor A callback interceptor informs objects about changes to their state.
InstanceFactory A callback interceptor delegates instance creation to the handler.
KeyGenerator Interface for a key generator.
KeyGeneratorFactory Interface for a key generator factory.
LogInterceptor A log interceptor recieves notifications on various events that occur in the persistence layer is responsible for reporting them.
Persistence The persistence engine implements this interface in order to allow objects to be created, removed, loaded, stored, locked and checked for dirtyness.
Persistence.ColumnInfo  
Persistence.FieldInfo  
PersistenceFactory Factory for producing new persistence implementations.
PersistenceQuery The persistence engine implements this interface in order to allow queries to be performed and multiple objects to be returned.
QueryExpression Defines the interface for a query expression.
 

Class Summary
Complex  
 

Package org.exolab.castor.persist.spi Description

Defines the interfaces for persistence engine service providers.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:51 $
Author:
Assaf Arkin

A persistence service provider implements the Persistence interface, allowing the cache engine to load, store, create and remove objects to the underlying storage mechanism.

A query expression is constructed using QueryExpression, which accepts query paramteres and constructs the proper query statement. The query expression is fed to a PersistenceQuery object that is used to perform the actual query and retrieve the query results.

Both implementations are obtained from a PersistenceFactory, which is set once for each type of database and is configured using Bean-like accessor methods. Each persistent storage mechanism will require one factory implementation. The factories are specified in the Castor properties file.

Castor supports many schemes for key generation through a simple KeyGenerator interface.



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