public final class Archive extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
PACKAGE_SCANNER_DEBUG_MODE |
| Constructor and Description |
|---|
Archive(PackageInfo info,
IdTypeResolver idTypeResolver) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(Class<?> type,
IPattern pattern) |
boolean |
callMethod(Class<?> entityType,
Class<? extends Annotation> anno,
Object obj,
Object... args)
Used to call all parsed Methods matching the Class
|
IPattern.IDeleteContainer |
delete(Class<?> entityType,
Serializable id,
Object entity) |
IConverter<?> |
getIdFieldConverter(Class<?> type) |
IPattern |
getPattern(Class<?> entityType,
Class<?>... patternTypes) |
<P extends IPattern> |
getPattern(Class<?> entityType,
Class<P> patternType) |
Set<IPattern> |
getPatterns(Class<?> type) |
<P extends IPattern> |
getPatterns(Class<?> entityType,
Class<P> patternType) |
boolean |
isIdSet(Object entity) |
void |
logPatterns(Logger logger) |
SaveContainer |
save(Class<?> entityType,
Object entity,
Integer depth) |
void |
scan(TypeScanner... scanner) |
IQueryBuilder<?,?,? extends IFilter> |
search(Class<?> entityType,
boolean lazy) |
IQueryBuilder<?,?,? extends IFilter> |
search(Class<?> entityType,
Serializable id,
boolean lazy) |
Object |
setId(Object entity,
Serializable id) |
public Archive(PackageInfo info, IdTypeResolver idTypeResolver)
public void scan(TypeScanner... scanner) throws ScannerException
ScannerExceptionpublic void logPatterns(Logger logger)
public <P extends IPattern> Set<P> getPatterns(Class<?> entityType, Class<P> patternType)
public boolean isIdSet(Object entity)
public Object setId(Object entity, Serializable id)
public IConverter<?> getIdFieldConverter(Class<?> type)
public boolean callMethod(Class<?> entityType, Class<? extends Annotation> anno, Object obj, Object... args)
entityType - Class of the entityanno - Annotation by which the method can be identifiedobj - Object which has the methodargs - Object array which gets passed to the methodtrue if all calls returned successfullypublic IQueryBuilder<?,?,? extends IFilter> search(Class<?> entityType, boolean lazy) throws Exception
Exceptionpublic IQueryBuilder<?,?,? extends IFilter> search(Class<?> entityType, Serializable id, boolean lazy) throws Exception
Exceptionpublic SaveContainer save(Class<?> entityType, Object entity, Integer depth) throws Exception
Exceptionpublic IPattern.IDeleteContainer delete(Class<?> entityType, Serializable id, Object entity) throws Exception
ExceptionCopyright © 2020–2022 RunedUniverse. All rights reserved.