Class BackgroundProcessQueryBuilder
- java.lang.Object
-
- com.jalios.jcms.db.AbstractDBQueryBuilder<BackgroundProcessInfo>
-
- com.jalios.jcms.backgroundprocess.BackgroundProcessQueryBuilder
-
- All Implemented Interfaces:
DBConstants
public class BackgroundProcessQueryBuilder extends AbstractDBQueryBuilder<BackgroundProcessInfo> implements DBConstants
A queryBuilder forBackgroundProcessInfo
.- Since:
- jcms-10.0.8 / JCMS-9179
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMPLETED_STATUS_FIELD
protected static java.lang.String
DEFAULT_SORT
static java.lang.String
DOMAIN_FIELD
static java.lang.String
URID_FIELD
-
Fields inherited from class com.jalios.jcms.db.AbstractDBQueryBuilder
author, counting, defaultOrder, firstResult, maxResults, noPaging, order
-
Fields inherited from interface com.jalios.jcms.db.DBConstants
ALL_CATEGORIES_SET_FIELD, ATTACH_WS_SET_FIELD, AUTH_GRP_SET_FIELD, AUTH_MBR_SET_FIELD, AUTHOR_ID_FIELD, CATEGORIES_SET_FIELD, CDATE_FIELD, CHANNEL_JCMSDB_PROP, CLASSIFICATION_LEVEL_FIELD, DBDATA_URID, EXTENDED_READ_RIGHTS, HAS_ATTACH_WS_FIELD, HAS_NO_READ_RIGHTS, HIBERNATE_MAPPING_ADATE, HIBERNATE_MAPPING_AUTHOR, HIBERNATE_MAPPING_CDATE, HIBERNATE_MAPPING_EDATE, HIBERNATE_MAPPING_HAS_ATTACH_WS, HIBERNATE_MAPPING_HASNOREADRIGHTS, HIBERNATE_MAPPING_MAININSTANCE_ID, HIBERNATE_MAPPING_MAJORVERSION, HIBERNATE_MAPPING_MDATE, HIBERNATE_MAPPING_MERGE_DATE, HIBERNATE_MAPPING_MERGE_ID, HIBERNATE_MAPPING_MINORVERSION, HIBERNATE_MAPPING_OPAUTHOR, HIBERNATE_MAPPING_PDATE, HIBERNATE_MAPPING_PSTATUS, HIBERNATE_MAPPING_READ_ACK, HIBERNATE_MAPPING_READERCOUNT, HIBERNATE_MAPPING_RESTRICTIVE_UPDATE_RIGHTS, HIBERNATE_MAPPING_TITLE, HIBERNATE_MAPPING_TRACKED, HIBERNATE_MAPPING_UDATE, HIBERNATE_MAPPING_VOTECOUNT, HIBERNATE_MAPPING_VOTESCORE, HIBERNATE_MAPPING_WORKFLOW_ID, HIBERNATE_MAPPING_WORKSPACE_ID, MAX_HIBERNATE_MAPPING_PUBLICATION, MDATE_FIELD, OPAUTHOR_ID_FIELD, PSTATUS_FIELD, ROW_ID_FIELD, SCROLL_FETCH_SIZE, WORKFLOW_ID_FIELD, WORKSPACE_ID_FIELD
-
-
Constructor Summary
Constructors Constructor Description BackgroundProcessQueryBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addCreatedBeforeDateCriterion(org.hibernate.Criteria criteria)
protected void
addCriterions(org.hibernate.Criteria criteria)
To override to add the custom criterionprotected void
addDomainCriterion(org.hibernate.Criteria criteria)
protected void
addIsCompletedCriterion(org.hibernate.Criteria criteria)
protected void
addUridCriterion(org.hibernate.Criteria criteria)
BackgroundProcessQueryBuilder
beforeDate(java.util.Date createBefore)
int
count()
BackgroundProcessQueryBuilder
domain(java.lang.String domain)
Set the expected domain.BackgroundProcessQueryBuilder
isCompleted(boolean isCompleted)
java.util.List<BackgroundProcessInfo>
list()
java.lang.String
toString()
java.lang.String
toString(org.apache.commons.lang3.builder.ToStringStyle style)
BackgroundProcessQueryBuilder
urid(java.lang.String urid)
Set the expected URID.-
Methods inherited from class com.jalios.jcms.db.AbstractDBQueryBuilder
addAuthorCriterion, author, build, counting, createCriteria, first, firstResult, getDBDataClass, maxResults, noPaging, orderBy, scroll, scroll, setDefaultOrder
-
-
-
-
Field Detail
-
DOMAIN_FIELD
public static final java.lang.String DOMAIN_FIELD
- See Also:
- Constant Field Values
-
URID_FIELD
public static final java.lang.String URID_FIELD
- See Also:
- Constant Field Values
-
COMPLETED_STATUS_FIELD
public static final java.lang.String COMPLETED_STATUS_FIELD
- See Also:
- Constant Field Values
-
DEFAULT_SORT
protected static final java.lang.String DEFAULT_SORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
addCriterions
protected void addCriterions(org.hibernate.Criteria criteria)
Description copied from class:AbstractDBQueryBuilder
To override to add the custom criterion- Specified by:
addCriterions
in classAbstractDBQueryBuilder<BackgroundProcessInfo>
- Parameters:
criteria
- the Criteria- Since:
- jcms-10.0.8
-
list
public java.util.List<BackgroundProcessInfo> list()
- Overrides:
list
in classAbstractDBQueryBuilder<BackgroundProcessInfo>
- Returns:
- the list of results
- Since:
- jcms-10.0.8
-
count
public int count()
- Overrides:
count
in classAbstractDBQueryBuilder<BackgroundProcessInfo>
- Returns:
- the count of result.
- Since:
- jcms-10.0.8
-
addDomainCriterion
protected void addDomainCriterion(org.hibernate.Criteria criteria)
- Since:
- jcms-10.0.8
-
domain
public BackgroundProcessQueryBuilder domain(java.lang.String domain)
Set the expected domain.- Parameters:
domain
- a domain, may be null- Returns:
- this ProcessQueryBuilder instance for method chaining
- Since:
- jcms-10.0.8
-
urid
public BackgroundProcessQueryBuilder urid(java.lang.String urid)
Set the expected URID.- Parameters:
urid
- an URID, may be null- Returns:
- this ProcessQueryBuilder instance for method chaining
- Since:
- jcms-10.0.8
-
addUridCriterion
protected void addUridCriterion(org.hibernate.Criteria criteria)
- Since:
- jcms-10.0.8
-
beforeDate
public BackgroundProcessQueryBuilder beforeDate(java.util.Date createBefore)
- Since:
- jcms-10.0.8
-
addCreatedBeforeDateCriterion
protected void addCreatedBeforeDateCriterion(org.hibernate.Criteria criteria)
- Since:
- jcms-10.0.8
-
isCompleted
public BackgroundProcessQueryBuilder isCompleted(boolean isCompleted)
- Since:
- jcms-10.0.8
-
addIsCompletedCriterion
protected void addIsCompletedCriterion(org.hibernate.Criteria criteria)
- Since:
- jcms-10.0.8
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- Since:
- jcms-10.0.8
-
toString
public java.lang.String toString(org.apache.commons.lang3.builder.ToStringStyle style)
- Since:
- jcms-10.0.8
-
-