public class ResourceDaoImpl extends BaseAbstractDaoImpl<Resource,Integer> implements ResourceDao
Constructor and Description |
---|
ResourceDaoImpl(com.j256.ormlite.support.ConnectionSource connectionSource) |
Modifier and Type | Method and Description |
---|---|
void |
delete(AppProperties.RESOURCE_TYPE resourceType,
Integer resourceId) |
void |
disable(AppProperties.RESOURCE_TYPE resourceType,
Integer resourceId) |
void |
enable(AppProperties.RESOURCE_TYPE resourceType,
Integer resourceId) |
Resource |
get(AppProperties.RESOURCE_TYPE resourceType,
Integer resourceId) |
Resource |
get(Resource tdao) |
List<Resource> |
getAll(AppProperties.RESOURCE_TYPE resourceType,
Integer resourceId) |
List<Resource> |
getAll(AppProperties.RESOURCE_TYPE resourceType,
Integer resourceId,
Boolean enabled) |
List<Resource> |
getAll(List<Integer> ids) |
QueryResponse |
getAll(Query query) |
countOf, countOf, countOf, create, createOrUpdate, delete, delete, delete, delete, deleteById, deleteByIds, get, getAll, getAll, getAll, getAllData, getById, getDao, getQueryResponse, getTableInfo, hasTable, update, updateBulk, updateBulk, updateId, updatePurgeCondition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countOf, countOf, countOf, create, createOrUpdate, delete, delete, delete, delete, deleteById, deleteByIds, get, getAll, getAll, getAllData, getById, getDao, getTableInfo, update, updateBulk, updateBulk, updateId
public ResourceDaoImpl(com.j256.ormlite.support.ConnectionSource connectionSource) throws SQLException
SQLException
public QueryResponse getAll(Query query)
getAll
in interface ResourceDao
public List<Resource> getAll(AppProperties.RESOURCE_TYPE resourceType, Integer resourceId, Boolean enabled)
getAll
in interface ResourceDao
public List<Resource> getAll(AppProperties.RESOURCE_TYPE resourceType, Integer resourceId)
getAll
in interface ResourceDao
public void enable(AppProperties.RESOURCE_TYPE resourceType, Integer resourceId)
enable
in interface ResourceDao
public void disable(AppProperties.RESOURCE_TYPE resourceType, Integer resourceId)
disable
in interface ResourceDao
public void delete(AppProperties.RESOURCE_TYPE resourceType, Integer resourceId)
delete
in interface ResourceDao
public Resource get(AppProperties.RESOURCE_TYPE resourceType, Integer resourceId)
get
in interface ResourceDao
Copyright © 2015–2019. All rights reserved.