FileDocCategorySizeDatePackage
DocumentInterceptor.javaAPI DocHibernate 3.2.52644Fri Nov 25 10:36:30 GMT 2005org.hibernate.test.mixed

DocumentInterceptor

public class DocumentInterceptor extends Object implements org.hibernate.Interceptor
author
Gavin King

Fields Summary
Constructors Summary
Methods Summary
public voidafterTransactionBegin(org.hibernate.Transaction tx)

	
public voidafterTransactionCompletion(org.hibernate.Transaction tx)

	
public voidbeforeTransactionCompletion(org.hibernate.Transaction tx)

	
public int[]findDirty(java.lang.Object entity, java.io.Serializable id, java.lang.Object[] currentState, java.lang.Object[] previousState, java.lang.String[] propertyNames, org.hibernate.type.Type[] types)

		return null;
	
public java.lang.ObjectgetEntity(java.lang.String entityName, java.io.Serializable id)

		return null;
	
public java.lang.StringgetEntityName(java.lang.Object object)

		return null;
	
public java.lang.Objectinstantiate(java.lang.String entityName, org.hibernate.EntityMode entityMode, java.io.Serializable id)

		return null;
	
public java.lang.BooleanisTransient(java.lang.Object entity)

		return null;
	
public voidonCollectionRecreate(java.lang.Object collection, java.io.Serializable key)

	
public voidonCollectionRemove(java.lang.Object collection, java.io.Serializable key)

	
public voidonCollectionUpdate(java.lang.Object collection, java.io.Serializable key)

	
public voidonDelete(java.lang.Object entity, java.io.Serializable id, java.lang.Object[] state, java.lang.String[] propertyNames, org.hibernate.type.Type[] types)


	
public booleanonFlushDirty(java.lang.Object entity, java.io.Serializable id, java.lang.Object[] currentState, java.lang.Object[] previousState, java.lang.String[] propertyNames, org.hibernate.type.Type[] types)

		if ( entity instanceof Document ) {
			currentState[3] = Calendar.getInstance();
			return true;
		}
		else {
			return false;
		}
	
public booleanonLoad(java.lang.Object entity, java.io.Serializable id, java.lang.Object[] state, java.lang.String[] propertyNames, org.hibernate.type.Type[] types)

		return false;
	
public java.lang.StringonPrepareStatement(java.lang.String sql)

		return sql;
	
public booleanonSave(java.lang.Object entity, java.io.Serializable id, java.lang.Object[] state, java.lang.String[] propertyNames, org.hibernate.type.Type[] types)

		if ( entity instanceof Document ) {
			state[4] = state[3] = Calendar.getInstance();
			return true;
		}
		else {
			return false;
		}
	
public voidpostFlush(java.util.Iterator entities)


	
public voidpreFlush(java.util.Iterator entities)