1 /* 2 * Copyright 2004 (C) TJDO. 3 * All rights reserved. 4 * 5 * This software is distributed under the terms of the TJDO License version 1.0. 6 * See the terms of the TJDO License in the documentation provided with this software. 7 * 8 * $Id: PostInsertProcessing.java,v 1.1 2004/02/01 18:22:42 jackknifebarber Exp $ 9 */ 10 11 package com.triactive.jdo.store; 12 13 import com.triactive.jdo.StateManager; 14 import java.sql.Connection; 15 16 17 /** 18 * A column mapping that performs additional tasks after a new row has been 19 * inserted in the database. 20 * 21 * @author <a HREF="mailto:mmartin5@austin.rr.com">Mike Martin</a> 22 * @version $Revision: 1.1 $ 23 */ 24 25 public interface PostInsertProcessing extends PostWriteProcessing 26 { 27 /** 28 * Called after a SQL INSERT has been performed. 29 * 30 * @param sm 31 * The state manager of the instance owning the Java object being 32 * inserted. 33 * @param conn 34 * The connection on which the INSERT has been performed. 35 * @param value 36 * The column value being inserted. 37 */ 38 void postInsert(StateManager sm, Connection conn, Object value); 39 } 40