public abstract class AbstractProxyFactory<Z,D extends Database<Z>,TE extends Exception,T,E extends Exception> extends Object implements ProxyFactory<Z,D,T,E>
Modifier | Constructor and Description |
---|---|
protected |
AbstractProxyFactory(Map<D,T> map,
Class<E> exceptionClass)
Constructs a new proxy to a set of objects
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(ProxyFactory<Z,D,?,? extends Exception> child) |
protected abstract T |
create(D database) |
Set<Map.Entry<D,T>> |
entries() |
T |
get(D database)
Returns the underlying SQL object for the specified database.
|
ExceptionFactory<E> |
getExceptionFactory() |
void |
record(Invoker<Z,D,T,?,E> invoker) |
void |
removeChild(ProxyFactory<Z,D,?,? extends Exception> child) |
void |
removeChildren() |
void |
replay(D database,
T object) |
void |
retain(Set<D> databaseSet) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, createProxy, getDatabaseCluster, getRoot
protected Logger logger
public void addChild(ProxyFactory<Z,D,?,? extends Exception> child)
public void removeChild(ProxyFactory<Z,D,?,? extends Exception> child)
removeChild
in interface ProxyFactory<Z,D extends Database<Z>,T,E extends Exception>
public final void removeChildren()
removeChildren
in interface ProxyFactory<Z,D extends Database<Z>,T,E extends Exception>
public T get(D database)
public final ExceptionFactory<E> getExceptionFactory()
getExceptionFactory
in interface ProxyFactory<Z,D extends Database<Z>,T,E extends Exception>
net.sf.hajdbc.sql.SQLProxy#getExceptionFactory()
Copyright © 2004–2013 Paul Ferraro. All rights reserved.