1 5 package snaq.db; 6 7 import snaq.util.ObjectPool; 8 import snaq.util.ObjectPoolEvent; 9 10 14 public class ConnectionPoolEvent extends ObjectPoolEvent 15 { 16 public static final int VALIDATION_ERROR = 9; 17 18 19 protected ConnectionPoolEvent(ObjectPool pool, int type) 20 { 21 super(pool, type); 22 } 23 24 public ConnectionPool getConnectionPool() { return (ConnectionPool)getSource(); } 25 26 34 35 public boolean isValidationError() { return getType() == VALIDATION_ERROR; } 36 } | Popular Tags |