org.springframework.datastore.engine
Class EmptyInterceptor

java.lang.Object
  extended by org.springframework.datastore.engine.EmptyInterceptor
All Implemented Interfaces:
DatastoreAware, EntityInterceptor
Direct Known Subclasses:
AutoTimestampInterceptor, DomainEventInterceptor, ValidatingInterceptor

public class EmptyInterceptor
extends Object
implements EntityInterceptor

An interceptor that does nothing

Since:
1.0

Field Summary
protected  Datastore datastore
           
 
Constructor Summary
EmptyInterceptor()
           
 
Method Summary
 boolean beforeDelete(PersistentEntity entity, EntityAccess ea)
          Called before an entity is deleted
 boolean beforeInsert(PersistentEntity entity, EntityAccess ea)
          Called before an entity is inserted
 boolean beforeUpdate(PersistentEntity entity, EntityAccess ea)
          Called before an entity is updated
 void setDatastore(Datastore datastore)
          Sets the datastore on this instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

datastore

protected Datastore datastore
Constructor Detail

EmptyInterceptor

public EmptyInterceptor()
Method Detail

beforeInsert

public boolean beforeInsert(PersistentEntity entity,
                            EntityAccess ea)
Description copied from interface: EntityInterceptor
Called before an entity is inserted

Specified by:
beforeInsert in interface EntityInterceptor
Parameters:
entity - The entity
ea - The object
Returns:
False if the operation should be cancelled

beforeUpdate

public boolean beforeUpdate(PersistentEntity entity,
                            EntityAccess ea)
Description copied from interface: EntityInterceptor
Called before an entity is updated

Specified by:
beforeUpdate in interface EntityInterceptor
Parameters:
entity - The entity
ea - The object
Returns:
False if the operation should be cancelled

beforeDelete

public boolean beforeDelete(PersistentEntity entity,
                            EntityAccess ea)
Description copied from interface: EntityInterceptor
Called before an entity is deleted

Specified by:
beforeDelete in interface EntityInterceptor
Parameters:
entity - The entity
ea - The object
Returns:
False if the operation should be cancelled

setDatastore

public void setDatastore(Datastore datastore)
Description copied from interface: DatastoreAware
Sets the datastore on this instance

Specified by:
setDatastore in interface DatastoreAware
Parameters:
datastore - The datastore