I am working on the Cache Extension system for EntityStores. It would
be really cool to be able to specify caching options in the Usecase of
UnitOfWork (as metaInfo).
Right now the EntityStoreSPI looks like;
public interface EntityStoreSPI
{
EntityState newEntityState( EntityStoreUnitOfWork unitOfWork,
EntityReference identity, EntityDescriptor entityDescriptor );
EntityState getEntityState( EntityStoreUnitOfWork unitOfWork,
EntityReference identity );
StateCommitter applyChanges( Iterable<EntityState> state, String
version, long lastModified );
}
The applyChanges() doesn't pass the UnitOfWork in the call, like the
other two methods, and without it, I can't get hold of the UnitOfWork
and the Usecase for this feature. I suggest that the applyChanges()
are changed to pass the EntityStoreUnitOfWork, which I think is needed
for this feature and looks like it should have been there in the first
place.
I will take care of the changes affected in our EntityStore
implementations (not too many) for this.
Cheers
--
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java
I live here; http://tinyurl.com/2qq9er
I work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev