public abstract class EntityDbTable<T> extends TrimmableDbTable<T>
| Modifier and Type | Field and Description |
|---|---|
protected static DbClause |
LATEST |
dbKeyFactorydb, schema, schemaTable, table| Modifier | Constructor and Description |
|---|---|
protected |
EntityDbTable(java.lang.String schemaTable,
DbKey.Factory<T> dbKeyFactory) |
protected |
EntityDbTable(java.lang.String schemaTable,
DbKey.Factory<T> dbKeyFactory,
java.lang.String fullTextSearchColumns) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkAvailable(int height) |
protected void |
clearCache() |
void |
createSearchIndex(java.sql.Connection con) |
protected java.lang.String |
defaultSort() |
T |
get(DbKey dbKey) |
T |
get(DbKey dbKey,
boolean cache) |
T |
get(DbKey dbKey,
int height) |
DbIterator<T> |
getAll(int from,
int to) |
DbIterator<T> |
getAll(int height,
int from,
int to) |
DbIterator<T> |
getAll(int height,
int from,
int to,
java.lang.String sort) |
DbIterator<T> |
getAll(int from,
int to,
java.lang.String sort) |
T |
getBy(DbClause dbClause) |
T |
getBy(DbClause dbClause,
int height) |
int |
getCount() |
int |
getCount(DbClause dbClause) |
int |
getCount(DbClause dbClause,
int height) |
DbIterator<T> |
getManyBy(java.sql.Connection con,
java.sql.PreparedStatement pstmt,
boolean cache) |
DbIterator<T> |
getManyBy(DbClause dbClause,
int from,
int to) |
DbIterator<T> |
getManyBy(DbClause dbClause,
int height,
int from,
int to) |
DbIterator<T> |
getManyBy(DbClause dbClause,
int height,
int from,
int to,
java.lang.String sort) |
DbIterator<T> |
getManyBy(DbClause dbClause,
int from,
int to,
java.lang.String sort) |
void |
insert(T t) |
void |
insertInitial(T t) |
protected abstract T |
load(java.sql.Connection con,
java.sql.ResultSet rs,
DbKey dbKey) |
T |
newEntity(DbKey dbKey) |
protected abstract void |
save(java.sql.Connection con,
T t) |
DbIterator<T> |
search(java.lang.String query,
DbClause dbClause,
int from,
int to) |
DbIterator<T> |
search(java.lang.String query,
DbClause dbClause,
int from,
int to,
java.lang.String sort) |
canBeTrimmed, init, popOffTo, trimisPersistent, rollback, truncategetConnection, getCount, getRowCount, getSchemaTable, toString, truncateAllprotected static final DbClause LATEST
protected EntityDbTable(java.lang.String schemaTable,
DbKey.Factory<T> dbKeyFactory)
protected EntityDbTable(java.lang.String schemaTable,
DbKey.Factory<T> dbKeyFactory,
java.lang.String fullTextSearchColumns)
protected abstract T load(java.sql.Connection con, java.sql.ResultSet rs, DbKey dbKey) throws java.sql.SQLException
java.sql.SQLExceptionprotected abstract void save(java.sql.Connection con,
T t)
throws java.sql.SQLException
java.sql.SQLExceptionprotected java.lang.String defaultSort()
protected void clearCache()
public void checkAvailable(int height)
public final DbIterator<T> getManyBy(DbClause dbClause, int from, int to)
public final DbIterator<T> getManyBy(DbClause dbClause, int from, int to, java.lang.String sort)
public final DbIterator<T> getManyBy(DbClause dbClause, int height, int from, int to)
public final DbIterator<T> getManyBy(DbClause dbClause, int height, int from, int to, java.lang.String sort)
public final DbIterator<T> getManyBy(java.sql.Connection con, java.sql.PreparedStatement pstmt, boolean cache)
public final DbIterator<T> search(java.lang.String query, DbClause dbClause, int from, int to)
public final DbIterator<T> search(java.lang.String query, DbClause dbClause, int from, int to, java.lang.String sort)
public final DbIterator<T> getAll(int from, int to)
public final DbIterator<T> getAll(int from, int to, java.lang.String sort)
public final DbIterator<T> getAll(int height, int from, int to)
public final DbIterator<T> getAll(int height, int from, int to, java.lang.String sort)
public final int getCount(DbClause dbClause, int height)
public final void insert(T t)
public final void insertInitial(T t)
public final void createSearchIndex(java.sql.Connection con)
throws java.sql.SQLException
createSearchIndex in class DerivedDbTablejava.sql.SQLException