Package nxt.db
Class EntityDbTable<T>
java.lang.Object
nxt.db.Table
nxt.db.DerivedDbTable
nxt.db.TrimmableDbTable<T>
nxt.db.EntityDbTable<T>
- Direct Known Subclasses:
PersistentDbTable,VersionedEntityDbTable
-
Field Summary
FieldsFields inherited from class nxt.db.TrimmableDbTable
dbKeyFactoryFields inherited from class nxt.db.Table
db, schema, schemaTable, table -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEntityDbTable(String schemaTable, DbKey.Factory<T> dbKeyFactory) protectedEntityDbTable(String schemaTable, DbKey.Factory<T> dbKeyFactory, String fullTextSearchColumns) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckAvailable(int height) protected voidfinal voidprotected Stringfinal Tfinal Tfinal Tfinal DbIterator<T>getAll(int from, int to) final DbIterator<T>getAll(int height, int from, int to) final DbIterator<T>final DbIterator<T>final Tfinal Tfinal intgetCount()final intfinal intfinal DbIterator<T>getManyBy(Connection con, PreparedStatement pstmt, boolean cache) final DbIterator<T>final DbIterator<T>final DbIterator<T>final DbIterator<T>final voidfinal voidinsertInitial(T t) protected abstract Tload(Connection con, ResultSet rs, DbKey dbKey) final Tprotected abstract voidsave(Connection con, T t) final DbIterator<T>final DbIterator<T>Methods inherited from class nxt.db.TrimmableDbTable
canBeTrimmed, init, popOffTo, trimMethods inherited from class nxt.db.DerivedDbTable
isPersistent, rollback, truncateMethods inherited from class nxt.db.Table
getConnection, getCount, getRowCount, getSchemaTable, toString, truncateAll
-
Field Details
-
LATEST
-
-
Constructor Details
-
EntityDbTable
-
EntityDbTable
protected EntityDbTable(String schemaTable, DbKey.Factory<T> dbKeyFactory, String fullTextSearchColumns)
-
-
Method Details
-
load
- Throws:
SQLException
-
save
- Throws:
SQLException
-
defaultSort
-
clearCache
protected void clearCache() -
checkAvailable
public void checkAvailable(int height) -
newEntity
-
get
-
get
-
get
-
getBy
-
getBy
-
getManyBy
-
getManyBy
-
getManyBy
-
getManyBy
-
getManyBy
-
search
-
search
-
getAll
-
getAll
-
getAll
-
getAll
-
getCount
public final int getCount() -
getCount
-
getCount
-
insert
-
insertInitial
-
createSearchIndex
- Overrides:
createSearchIndexin classDerivedDbTable- Throws:
SQLException
-