Package lu.kbra.pclib.db.view
Interface AbstractDBView<T extends DatabaseEntry>
- All Superinterfaces:
SQLQueryable<T>
- All Known Implementing Classes:
DatabaseView,DeferredDatabaseView
-
Method Summary
Modifier and TypeMethodDescriptionintcountNotNull(T data) intcountUniques(T data) booleancreate()drop()booleanexists()booleanbooleanexistsUnique(T data) booleanexistsUniques(T data) <C extends Collection<T>,D extends Collection<T>>
DfilterExists(C datas, Supplier<D> supplier) <C extends Collection<T>,D extends Collection<T>>
DfilterExistsUnique(C datas, Supplier<D> supplier) String[]<C extends Collection<T>>
CloadAll(C data) loadByUnique(T data) <C extends Collection<T>,D extends Collection<T>>
DloadIfExists(C datas, Supplier<D> supplier) loadIfExists(T data) loadUnique(T data) loadUniqueIfExists(T data) voidsetQueryableHookManager(SQLQueryableHookManager queryableHookManager) voidsetViewStructure(ViewStructure viewStructure) Methods inherited from interface lu.kbra.pclib.db.impl.SQLQueryable
count, getConnector, getDatabaseEntryUtils, getEntryClass, getName, getQualifiedName, getStatementAsSQL, getTargetClass, query
-
Method Details
-
create
- Specified by:
createin interfaceSQLQueryable<T extends DatabaseEntry>- Returns:
- true if it was created
- Throws:
DBException
-
drop
- Throws:
DBException
-
exists
- Specified by:
existsin interfaceSQLQueryable<T extends DatabaseEntry>- Throws:
DBException
-
getCreateSQL
String[] getCreateSQL() -
getCustomHints
- Specified by:
getCustomHintsin interfaceSQLQueryable<T extends DatabaseEntry>
-
getDatabase
Database getDatabase()- Specified by:
getDatabasein interfaceSQLQueryable<T extends DatabaseEntry>
-
getStructure
ViewStructure getStructure()- Specified by:
getStructurein interfaceSQLQueryable<T extends DatabaseEntry>
-
setViewStructure
-
getQueryableHookManager
SQLQueryableHookManager getQueryableHookManager()- Specified by:
getQueryableHookManagerin interfaceSQLQueryable<T extends DatabaseEntry>
-
setQueryableHookManager
-
countNotNull
- Throws:
DBException
-
countUniques
- Throws:
DBException
-
load
- Throws:
DBException
-
loadIfExists
- Throws:
DBException
-
loadUnique
- Throws:
DBException
-
loadByUnique
- Throws:
DBException
-
loadUniqueIfExists
- Throws:
DBException
-
exists
- Throws:
DBException
-
existsUnique
- Throws:
DBException
-
existsUniques
- Throws:
DBException
-
loadAll
- Throws:
DBException
-
loadIfExists
<C extends Collection<T>,D extends Collection<T>> D loadIfExists(C datas, Supplier<D> supplier) throws DBException - Throws:
DBException
-
filterExists
<C extends Collection<T>,D extends Collection<T>> D filterExists(C datas, Supplier<D> supplier) throws DBException - Throws:
DBException
-
filterExistsUnique
<C extends Collection<T>,D extends Collection<T>> D filterExistsUnique(C datas, Supplier<D> supplier) throws DBException - Throws:
DBException
-