public abstract class AChainRouter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Archive |
archive |
protected Set<Object> |
baseChainParamPool |
protected net.runeduniverse.lib.utils.logging.UniversalLogger |
logger |
protected net.runeduniverse.lib.utils.chain.ChainManager |
manager |
| Modifier | Constructor and Description |
|---|---|
protected |
AChainRouter() |
protected |
AChainRouter(net.runeduniverse.lib.utils.logging.UniversalLogger logger) |
| Modifier and Type | Method and Description |
|---|---|
protected <R> R |
callChain(String label,
Class<R> resultType,
Object... args) |
abstract void |
delete(EntityContainer entity,
DepthContainer depth) |
void |
delete(Object entity,
int depth) |
protected static Class<?> |
getEntityOrObjectType(IFilter filter) |
AChainRouter |
initialize(Archive archive) |
abstract <E> E |
load(Class<E> entityType,
IFilter filter,
IdContainer id,
DepthContainer depth) |
<E> E |
load(Class<E> entityType,
int depth) |
<E> E |
load(Class<E> entityType,
Serializable id,
int depth) |
<E> E |
load(IFilter filter) |
abstract <E> Collection<E> |
loadAll(Class<E> entityType,
IFilter filter,
DepthContainer depth) |
<E> Collection<E> |
loadAll(Class<E> entityType,
int depth) |
<E> Collection<E> |
loadAll(Class<E> entityType,
Serializable id,
int depth) |
<E> Collection<E> |
loadAll(IFilter filter) |
abstract void |
reloadAll(Collection<Object> entities,
DepthContainer depth) |
void |
reloadAll(Collection<Object> entities,
int depth) |
abstract void |
resolveAllLazyLoaded(Collection<? extends Object> entities,
DepthContainer depth) |
void |
resolveAllLazyLoaded(Collection<? extends Object> entities,
int depth) |
abstract void |
save(EntityContainer entity,
SaveContainer container,
DepthContainer depth) |
void |
save(Object entity,
int depth) |
void |
setChainManager(net.runeduniverse.lib.utils.chain.ChainManager manager) |
abstract void |
unload(Object entity) |
protected final net.runeduniverse.lib.utils.logging.UniversalLogger logger
protected Archive archive
protected net.runeduniverse.lib.utils.chain.ChainManager manager
protected AChainRouter()
protected AChainRouter(net.runeduniverse.lib.utils.logging.UniversalLogger logger)
public AChainRouter initialize(Archive archive)
public void setChainManager(net.runeduniverse.lib.utils.chain.ChainManager manager)
public abstract <E> E load(Class<E> entityType, IFilter filter, IdContainer id, DepthContainer depth) throws Exception
Exceptionpublic abstract <E> Collection<E> loadAll(Class<E> entityType, IFilter filter, DepthContainer depth) throws Exception
Exceptionpublic abstract void resolveAllLazyLoaded(Collection<? extends Object> entities, DepthContainer depth) throws Exception
Exceptionpublic abstract void reloadAll(Collection<Object> entities, DepthContainer depth) throws Exception
Exceptionpublic abstract void save(EntityContainer entity, SaveContainer container, DepthContainer depth) throws Exception
Exceptionpublic abstract void delete(EntityContainer entity, DepthContainer depth) throws Exception
Exceptionpublic abstract void unload(Object entity)
protected <R> R callChain(String label, Class<R> resultType, Object... args) throws Exception
Exceptionpublic <E> Collection<E> loadAll(IFilter filter) throws Exception
Exceptionpublic <E> E load(Class<E> entityType, Serializable id, int depth) throws Exception
Exceptionpublic <E> Collection<E> loadAll(Class<E> entityType, int depth) throws Exception
Exceptionpublic <E> Collection<E> loadAll(Class<E> entityType, Serializable id, int depth) throws Exception
Exceptionpublic void resolveAllLazyLoaded(Collection<? extends Object> entities, int depth) throws Exception
Exceptionpublic void reloadAll(Collection<Object> entities, int depth) throws Exception
ExceptionCopyright © 2020–2022 RunedUniverse. All rights reserved.