publicinterfaceInterceptor{
//载进物件之前实行
public
booleanonLoad(Objectentity,Serializableid,Object[]state,String[]propertyNames,Type[]types)
throwsCallbackException;
//flush时,假如发明有Dirtydata,则实行此办法
public
booleanonFlushDirty(Objectentity,Serializableid,Object[]currentState,Object[]previousState,
String[]propertyNames,Type[]types)throwsCallbackException;
//贮存物件前实行
public
booleanonSave(Objectentity,Serializableid,Object[]state,String[]propertyNames,Type[]types)
throwsCallbackException;
//删除物件前实行
public
voidonDelete(Objectentity,Serializableid,Object[]state,String[]propertyNames,Type[]types)
throwsCallbackException;
//flush前呼唤这个办法判别Dirtydata
//传回Dirtydata属性索引或null采预设举动
public
int[]findDirty(Objectentity,Serializableid,Object[]currentState,Object[]previousState,
String[]propertyNames,Type[]types);