1 22 23 24 package com.mchange.v2.c3p0.test; 25 26 import com.mchange.v2.c3p0.*; 27 import java.sql.Connection ; 28 29 public class TestConnectionCustomizer extends AbstractConnectionCustomizer 30 { 31 public void onAcquire( Connection c, String pdsIdt ) 32 { System.err.println("Acquired " + c + " [" + pdsIdt + "]"); } 33 34 public void onDestroy( Connection c, String pdsIdt ) 35 { System.err.println("Destroying " + c + " [" + pdsIdt + "]"); } 36 37 public void onCheckOut( Connection c, String pdsIdt ) 38 { System.err.println("Checked out " + c + " [" + pdsIdt + "]"); } 39 40 public void onCheckIn( Connection c, String pdsIdt ) 41 { System.err.println("Checking in " + c + " [" + pdsIdt + "]"); } 42 } 43 | Popular Tags |