org.objectweb.jac.aspects.distrans.persistence
Class ReadWrapper
java.lang.Object
|
+--org.objectweb.jac.core.Wrapper
|
+--org.objectweb.jac.aspects.distrans.persistence.ReadWrapper
- All Implemented Interfaces:
- Serializable
- public class ReadWrapper
- extends Wrapper
This class define a wrapping method (read) for wrappees that perform
read operations on transactional ressources.
This wrapper may wrap several wrappees from different classes.
Each wrappee field is mapped onto a SQL table attribute.
The SQL tables contain one more attribute which is the name of the wrappee,
and which is also the primary key of the table.
- Version:
- 1.0
- Author:
- Lionel Seinturier
- See Also:
- Serialized Form
Fields inherited from class org.objectweb.jac.core.Wrapper |
ac |
Method Summary |
Object |
read(Interaction interaction)
Wrapping method for wrappees that perform
write operations on transactional ressources. |
ReadWrapper
public ReadWrapper(AspectComponent ac,
PersistenceItf storage,
org.enhydra.jdbc.standard.StandardXADataSource ds)
- Parameters:
ac
- the AC managing this wrapperstorage
- the technical instance for persistenceds
- the data source used to create a connection towards
the database where the data is stored
read
public Object read(Interaction interaction)
throws Exception
- Wrapping method for wrappees that perform
write operations on transactional ressources.
After proceeding the interaction, fields value are saved
into the database.
Fetching (ie reading) the data before, is a way to let the database
manage the blocking mechanism whenever concurrent transactions occur.
Exception