public abstract class AbstractBaseDAO<E extends BaseEntity<PK>,PK> extends AbstractDAO<E> implements BaseDAO<E,PK>
tableName| Constructor and Description |
|---|
AbstractBaseDAO(String tableName,
String primaryColumnName,
HasSQLConnection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteEntity(E entity)
Delete an entity
|
void |
deleteEntity(PK key)
Delete an entity by its primary key
|
E |
find(PK key)
Find an entity by its primary key
|
findAllcount, execute, query, queryAsStream, queryIterator, querySingleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitupdateEntitybuildEntitypublic AbstractBaseDAO(String tableName, String primaryColumnName, HasSQLConnection conn)
public E find(PK key) throws SQLFaultException
BaseDAOfind in interface BaseDAO<E extends BaseEntity<PK>,PK>key - The primary key valueSQLFaultException - SQL errorpublic void deleteEntity(PK key) throws SQLFaultException
BaseDAOdeleteEntity in interface BaseDAO<E extends BaseEntity<PK>,PK>key - The primary key identifying the entity to deleteSQLFaultException - SQL errorpublic void deleteEntity(E entity) throws SQLFaultException
BaseDAOdeleteEntity in interface BaseDAO<E extends BaseEntity<PK>,PK>entity - The entity to deleteSQLFaultException - SQL errorCopyright © 2018. All rights reserved.