@Repository public class CmsContentDao extends BaseDao<CmsContent>
idWorker, log, ORDERTYPE_ASC, ORDERTYPE_DESC, sessionFactory
构造器和说明 |
---|
CmsContentDao() |
限定符和类型 | 方法和说明 |
---|---|
void |
batchWorkContent(short siteId,
java.lang.Integer categoryId,
java.lang.String modelId,
java.util.function.ObjIntConsumer<java.util.List<CmsContent>> worker,
int batchSize) |
void |
batchWorkId(short siteId,
java.lang.Integer categoryId,
java.lang.String modelId,
java.util.function.ObjIntConsumer<java.util.List<java.io.Serializable>> worker,
int batchSize) |
int |
deleteByCategoryIds(short siteId,
java.lang.Integer[] categoryIds) |
int |
deleteByQuoteId(short siteId,
java.lang.Long quoteId) |
java.util.List<CmsContent> |
getList(CmsContentQuery queryEntitry,
java.lang.String orderField,
java.lang.String orderType) |
java.util.List<CmsContent> |
getListByQuoteId(short siteId,
long quoteId) |
java.util.List<CmsContent> |
getListByTopId(short siteId,
long topId) |
PageHandler |
getPage(CmsContentQuery queryEntitry,
java.lang.String orderField,
java.lang.String orderType,
java.lang.Integer firstResult,
java.lang.Integer pageIndex,
java.lang.Integer pageSize,
java.lang.Integer maxResults) |
private static QueryHandler |
getQueryHandler(CmsContentQuery queryEntitry,
java.lang.String orderField,
java.lang.String orderType) |
java.util.List<Workload> |
getWorkLoadList(short siteId,
java.lang.Integer[] status,
java.util.Date startCreateDate,
java.util.Date endCreateDate,
java.lang.String workloadType,
java.lang.String dateField) |
void |
index(short siteId,
java.io.Serializable[] ids) |
protected CmsContent |
init(CmsContent entity) |
int |
moveByTopId(short siteId,
java.lang.Long topId,
java.lang.Integer categoryId) |
batchWork, batchWork, count, countResult, delete, delete, delete, getEntity, getEntity, getEntity, getEntityClass, getEntityList, getEntitys, getEntitys, getEntitys, getEntitys, getFacetPage, getFacetPage, getId, getList, getList, getPage, getPage, getPage, getPage, getPage, getPage, getPage, getQueryHandler, getQueryHandler, getSearchBackend, getSearchPredicateFactory, getSearchSession, getSession, higtLighter, index, like, reCreateIndex, rightLike, save, update
public int deleteByCategoryIds(short siteId, java.lang.Integer[] categoryIds)
siteId
- categoryIds
- public int moveByTopId(short siteId, java.lang.Long topId, java.lang.Integer categoryId)
siteId
- topId
- categoryId
- public int deleteByQuoteId(short siteId, java.lang.Long quoteId)
public void index(short siteId, java.io.Serializable[] ids)
siteId
- ids
- public void batchWorkContent(short siteId, java.lang.Integer categoryId, java.lang.String modelId, java.util.function.ObjIntConsumer<java.util.List<CmsContent>> worker, int batchSize)
public void batchWorkId(short siteId, java.lang.Integer categoryId, java.lang.String modelId, java.util.function.ObjIntConsumer<java.util.List<java.io.Serializable>> worker, int batchSize)
public PageHandler getPage(CmsContentQuery queryEntitry, java.lang.String orderField, java.lang.String orderType, java.lang.Integer firstResult, java.lang.Integer pageIndex, java.lang.Integer pageSize, java.lang.Integer maxResults)
queryEntitry
- orderField
- orderType
- firstResult
- pageIndex
- pageSize
- maxResults
- public java.util.List<CmsContent> getList(CmsContentQuery queryEntitry, java.lang.String orderField, java.lang.String orderType)
queryEntitry
- orderField
- orderType
- private static QueryHandler getQueryHandler(CmsContentQuery queryEntitry, java.lang.String orderField, java.lang.String orderType)
public java.util.List<Workload> getWorkLoadList(short siteId, java.lang.Integer[] status, java.util.Date startCreateDate, java.util.Date endCreateDate, java.lang.String workloadType, java.lang.String dateField)
siteId
- status
- startCreateDate
- endCreateDate
- workloadType
- dateField
- public java.util.List<CmsContent> getListByQuoteId(short siteId, long quoteId)
public java.util.List<CmsContent> getListByTopId(short siteId, long topId)
siteId
- topId
- protected CmsContent init(CmsContent entity)
init
在类中 BaseDao<CmsContent>