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(DatabaseCluster<Z,D> cluster,
Map<D,T> map,
Class<E> exceptionClass)
Constructs a new proxy to a set of objects
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(ChildProxyFactory<Z,D,T,E,?,? extends Exception> child) |
protected Iterable<ChildProxyFactory<Z,D,T,E,?,? extends Exception>> |
children() |
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.
|
DatabaseCluster<Z,D> |
getDatabaseCluster() |
ExceptionFactory<E> |
getExceptionFactory() |
void |
record(Invoker<Z,D,T,?,E> invoker) |
protected T |
remove(D database) |
void |
removeChild(ChildProxyFactory<Z,D,T,E,?,? extends Exception> child) |
void |
removeChildren() |
void |
replay(D database,
T object) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateProxyprotected AbstractProxyFactory(DatabaseCluster<Z,D> cluster, Map<D,T> map, Class<E> exceptionClass)
map - a map of database to sql object.exceptionClass - the class for exceptions thrown by this objectpublic DatabaseCluster<Z,D> getDatabaseCluster()
getDatabaseCluster in interface ProxyFactory<Z,D extends Database<Z>,T,E extends Exception>public void removeChild(ChildProxyFactory<Z,D,T,E,?,? 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>Copyright © 2004–2014 Paul Ferraro. All rights reserved.