|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.impl.BasePersistenceImpl<WorkflowDefinitionLink> com.liferay.portal.service.persistence.WorkflowDefinitionLinkPersistenceImpl
public class WorkflowDefinitionLinkPersistenceImpl
The persistence implementation for the workflow definition link service.
Caching information and settings can be found in portal.properties
WorkflowDefinitionLinkPersistence
,
WorkflowDefinitionLinkUtil
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
Constructor Summary | |
---|---|
WorkflowDefinitionLinkPersistenceImpl()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Initializes the workflow definition link persistence. |
void |
cacheResult(List<WorkflowDefinitionLink> workflowDefinitionLinks)
Caches the workflow definition links in the entity cache if it is enabled. |
void |
cacheResult(WorkflowDefinitionLink workflowDefinitionLink)
Caches the workflow definition link in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(WorkflowDefinitionLink workflowDefinitionLink)
|
void |
clearCache()
Clears the cache for all workflow definition links. |
void |
clearCache(List<WorkflowDefinitionLink> workflowDefinitionLinks)
Clears the cache for a List instances of this model. |
void |
clearCache(WorkflowDefinitionLink workflowDefinitionLink)
Clears the cache for the workflow definition link. |
protected void |
clearUniqueFindersCache(WorkflowDefinitionLink workflowDefinitionLink)
|
int |
countAll()
Returns the number of workflow definition links. |
int |
countByC_W_W(long companyId,
String workflowDefinitionName,
int workflowDefinitionVersion)
Returns the number of workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. |
int |
countByCompanyId(long companyId)
Returns the number of workflow definition links where companyId = ?. |
int |
countByG_C_C_C_T(long groupId,
long companyId,
long classNameId,
long classPK,
long typePK)
Returns the number of workflow definition links where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ?. |
WorkflowDefinitionLink |
create(long workflowDefinitionLinkId)
Creates a new workflow definition link with the primary key. |
void |
destroy()
|
WorkflowDefinitionLink |
fetchByC_W_W_First(long companyId,
String workflowDefinitionName,
int workflowDefinitionVersion,
OrderByComparator orderByComparator)
Returns the first workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. |
WorkflowDefinitionLink |
fetchByC_W_W_Last(long companyId,
String workflowDefinitionName,
int workflowDefinitionVersion,
OrderByComparator orderByComparator)
Returns the last workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. |
WorkflowDefinitionLink |
fetchByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first workflow definition link in the ordered set where companyId = ?. |
WorkflowDefinitionLink |
fetchByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last workflow definition link in the ordered set where companyId = ?. |
WorkflowDefinitionLink |
fetchByG_C_C_C_T(long groupId,
long companyId,
long classNameId,
long classPK,
long typePK)
Returns the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? or returns null if it could not be found. |
WorkflowDefinitionLink |
fetchByG_C_C_C_T(long groupId,
long companyId,
long classNameId,
long classPK,
long typePK,
boolean retrieveFromCache)
Returns the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? or returns null if it could not be found, optionally using the finder cache. |
WorkflowDefinitionLink |
fetchByPrimaryKey(long workflowDefinitionLinkId)
Returns the workflow definition link with the primary key or returns null if it could not be found. |
WorkflowDefinitionLink |
fetchByPrimaryKey(Serializable primaryKey)
Returns the workflow definition link with the primary key or returns null if it could not be found. |
List<WorkflowDefinitionLink> |
findAll()
Returns all the workflow definition links. |
List<WorkflowDefinitionLink> |
findAll(int start,
int end)
Returns a range of all the workflow definition links. |
List<WorkflowDefinitionLink> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the workflow definition links. |
WorkflowDefinitionLink |
findByC_W_W_First(long companyId,
String workflowDefinitionName,
int workflowDefinitionVersion,
OrderByComparator orderByComparator)
Returns the first workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. |
WorkflowDefinitionLink |
findByC_W_W_Last(long companyId,
String workflowDefinitionName,
int workflowDefinitionVersion,
OrderByComparator orderByComparator)
Returns the last workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. |
WorkflowDefinitionLink[] |
findByC_W_W_PrevAndNext(long workflowDefinitionLinkId,
long companyId,
String workflowDefinitionName,
int workflowDefinitionVersion,
OrderByComparator orderByComparator)
Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. |
List<WorkflowDefinitionLink> |
findByC_W_W(long companyId,
String workflowDefinitionName,
int workflowDefinitionVersion)
Returns all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. |
List<WorkflowDefinitionLink> |
findByC_W_W(long companyId,
String workflowDefinitionName,
int workflowDefinitionVersion,
int start,
int end)
Returns a range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. |
List<WorkflowDefinitionLink> |
findByC_W_W(long companyId,
String workflowDefinitionName,
int workflowDefinitionVersion,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. |
WorkflowDefinitionLink |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first workflow definition link in the ordered set where companyId = ?. |
WorkflowDefinitionLink |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last workflow definition link in the ordered set where companyId = ?. |
WorkflowDefinitionLink[] |
findByCompanyId_PrevAndNext(long workflowDefinitionLinkId,
long companyId,
OrderByComparator orderByComparator)
Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ?. |
List<WorkflowDefinitionLink> |
findByCompanyId(long companyId)
Returns all the workflow definition links where companyId = ?. |
List<WorkflowDefinitionLink> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the workflow definition links where companyId = ?. |
List<WorkflowDefinitionLink> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the workflow definition links where companyId = ?. |
WorkflowDefinitionLink |
findByG_C_C_C_T(long groupId,
long companyId,
long classNameId,
long classPK,
long typePK)
Returns the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? or throws a NoSuchWorkflowDefinitionLinkException if it could not be found. |
WorkflowDefinitionLink |
findByPrimaryKey(long workflowDefinitionLinkId)
Returns the workflow definition link with the primary key or throws a NoSuchWorkflowDefinitionLinkException if it could not be found. |
WorkflowDefinitionLink |
findByPrimaryKey(Serializable primaryKey)
Returns the workflow definition link with the primary key or throws a NoSuchModelException if it could not be found. |
protected WorkflowDefinitionLink |
getByC_W_W_PrevAndNext(Session session,
WorkflowDefinitionLink workflowDefinitionLink,
long companyId,
String workflowDefinitionName,
int workflowDefinitionVersion,
OrderByComparator orderByComparator,
boolean previous)
|
protected WorkflowDefinitionLink |
getByCompanyId_PrevAndNext(Session session,
WorkflowDefinitionLink workflowDefinitionLink,
long companyId,
OrderByComparator orderByComparator,
boolean previous)
|
WorkflowDefinitionLink |
remove(long workflowDefinitionLinkId)
Removes the workflow definition link with the primary key from the database. |
WorkflowDefinitionLink |
remove(Serializable primaryKey)
Removes the workflow definition link with the primary key from the database. |
void |
removeAll()
Removes all the workflow definition links from the database. |
void |
removeByC_W_W(long companyId,
String workflowDefinitionName,
int workflowDefinitionVersion)
Removes all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ? from the database. |
void |
removeByCompanyId(long companyId)
Removes all the workflow definition links where companyId = ? from the database. |
WorkflowDefinitionLink |
removeByG_C_C_C_T(long groupId,
long companyId,
long classNameId,
long classPK,
long typePK)
Removes the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? from the database. |
protected WorkflowDefinitionLink |
removeImpl(WorkflowDefinitionLink workflowDefinitionLink)
Removes the model instance from the database. |
protected WorkflowDefinitionLink |
toUnwrappedModel(WorkflowDefinitionLink workflowDefinitionLink)
|
WorkflowDefinitionLink |
updateImpl(WorkflowDefinitionLink workflowDefinitionLink)
Updates the model instance in the database or adds it if it does not yet exist. |
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
---|
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update |
Field Detail |
---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_W_W
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_W_W
public static final FinderPath FINDER_PATH_COUNT_BY_C_W_W
public static final FinderPath FINDER_PATH_FETCH_BY_G_C_C_C_T
public static final FinderPath FINDER_PATH_COUNT_BY_G_C_C_C_T
Constructor Detail |
---|
public WorkflowDefinitionLinkPersistenceImpl()
Method Detail |
---|
public List<WorkflowDefinitionLink> findByCompanyId(long companyId) throws SystemException
findByCompanyId
in interface WorkflowDefinitionLinkPersistence
companyId
- the company ID
SystemException
- if a system exception occurredpublic List<WorkflowDefinitionLink> findByCompanyId(long companyId, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from WorkflowDefinitionLinkModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByCompanyId
in interface WorkflowDefinitionLinkPersistence
companyId
- the company IDstart
- the lower bound of the range of workflow definition linksend
- the upper bound of the range of workflow definition links (not inclusive)
SystemException
- if a system exception occurredpublic List<WorkflowDefinitionLink> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from WorkflowDefinitionLinkModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByCompanyId
in interface WorkflowDefinitionLinkPersistence
companyId
- the company IDstart
- the lower bound of the range of workflow definition linksend
- the upper bound of the range of workflow definition links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic WorkflowDefinitionLink findByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws NoSuchWorkflowDefinitionLinkException, SystemException
findByCompanyId_First
in interface WorkflowDefinitionLinkPersistence
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchWorkflowDefinitionLinkException
- if a matching workflow definition link could not be found
SystemException
- if a system exception occurredpublic WorkflowDefinitionLink fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws SystemException
fetchByCompanyId_First
in interface WorkflowDefinitionLinkPersistence
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching workflow definition link could not be found
SystemException
- if a system exception occurredpublic WorkflowDefinitionLink findByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws NoSuchWorkflowDefinitionLinkException, SystemException
findByCompanyId_Last
in interface WorkflowDefinitionLinkPersistence
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchWorkflowDefinitionLinkException
- if a matching workflow definition link could not be found
SystemException
- if a system exception occurredpublic WorkflowDefinitionLink fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws SystemException
fetchByCompanyId_Last
in interface WorkflowDefinitionLinkPersistence
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching workflow definition link could not be found
SystemException
- if a system exception occurredpublic WorkflowDefinitionLink[] findByCompanyId_PrevAndNext(long workflowDefinitionLinkId, long companyId, OrderByComparator orderByComparator) throws NoSuchWorkflowDefinitionLinkException, SystemException
findByCompanyId_PrevAndNext
in interface WorkflowDefinitionLinkPersistence
workflowDefinitionLinkId
- the primary key of the current workflow definition linkcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchWorkflowDefinitionLinkException
- if a workflow definition link with the primary key could not be found
SystemException
- if a system exception occurredprotected WorkflowDefinitionLink getByCompanyId_PrevAndNext(Session session, WorkflowDefinitionLink workflowDefinitionLink, long companyId, OrderByComparator orderByComparator, boolean previous)
public void removeByCompanyId(long companyId) throws SystemException
removeByCompanyId
in interface WorkflowDefinitionLinkPersistence
companyId
- the company ID
SystemException
- if a system exception occurredpublic int countByCompanyId(long companyId) throws SystemException
countByCompanyId
in interface WorkflowDefinitionLinkPersistence
companyId
- the company ID
SystemException
- if a system exception occurredpublic List<WorkflowDefinitionLink> findByC_W_W(long companyId, String workflowDefinitionName, int workflowDefinitionVersion) throws SystemException
findByC_W_W
in interface WorkflowDefinitionLinkPersistence
companyId
- the company IDworkflowDefinitionName
- the workflow definition nameworkflowDefinitionVersion
- the workflow definition version
SystemException
- if a system exception occurredpublic List<WorkflowDefinitionLink> findByC_W_W(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from WorkflowDefinitionLinkModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_W_W
in interface WorkflowDefinitionLinkPersistence
companyId
- the company IDworkflowDefinitionName
- the workflow definition nameworkflowDefinitionVersion
- the workflow definition versionstart
- the lower bound of the range of workflow definition linksend
- the upper bound of the range of workflow definition links (not inclusive)
SystemException
- if a system exception occurredpublic List<WorkflowDefinitionLink> findByC_W_W(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from WorkflowDefinitionLinkModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_W_W
in interface WorkflowDefinitionLinkPersistence
companyId
- the company IDworkflowDefinitionName
- the workflow definition nameworkflowDefinitionVersion
- the workflow definition versionstart
- the lower bound of the range of workflow definition linksend
- the upper bound of the range of workflow definition links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic WorkflowDefinitionLink findByC_W_W_First(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, OrderByComparator orderByComparator) throws NoSuchWorkflowDefinitionLinkException, SystemException
findByC_W_W_First
in interface WorkflowDefinitionLinkPersistence
companyId
- the company IDworkflowDefinitionName
- the workflow definition nameworkflowDefinitionVersion
- the workflow definition versionorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchWorkflowDefinitionLinkException
- if a matching workflow definition link could not be found
SystemException
- if a system exception occurredpublic WorkflowDefinitionLink fetchByC_W_W_First(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, OrderByComparator orderByComparator) throws SystemException
fetchByC_W_W_First
in interface WorkflowDefinitionLinkPersistence
companyId
- the company IDworkflowDefinitionName
- the workflow definition nameworkflowDefinitionVersion
- the workflow definition versionorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching workflow definition link could not be found
SystemException
- if a system exception occurredpublic WorkflowDefinitionLink findByC_W_W_Last(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, OrderByComparator orderByComparator) throws NoSuchWorkflowDefinitionLinkException, SystemException
findByC_W_W_Last
in interface WorkflowDefinitionLinkPersistence
companyId
- the company IDworkflowDefinitionName
- the workflow definition nameworkflowDefinitionVersion
- the workflow definition versionorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchWorkflowDefinitionLinkException
- if a matching workflow definition link could not be found
SystemException
- if a system exception occurredpublic WorkflowDefinitionLink fetchByC_W_W_Last(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, OrderByComparator orderByComparator) throws SystemException
fetchByC_W_W_Last
in interface WorkflowDefinitionLinkPersistence
companyId
- the company IDworkflowDefinitionName
- the workflow definition nameworkflowDefinitionVersion
- the workflow definition versionorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching workflow definition link could not be found
SystemException
- if a system exception occurredpublic WorkflowDefinitionLink[] findByC_W_W_PrevAndNext(long workflowDefinitionLinkId, long companyId, String workflowDefinitionName, int workflowDefinitionVersion, OrderByComparator orderByComparator) throws NoSuchWorkflowDefinitionLinkException, SystemException
findByC_W_W_PrevAndNext
in interface WorkflowDefinitionLinkPersistence
workflowDefinitionLinkId
- the primary key of the current workflow definition linkcompanyId
- the company IDworkflowDefinitionName
- the workflow definition nameworkflowDefinitionVersion
- the workflow definition versionorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchWorkflowDefinitionLinkException
- if a workflow definition link with the primary key could not be found
SystemException
- if a system exception occurredprotected WorkflowDefinitionLink getByC_W_W_PrevAndNext(Session session, WorkflowDefinitionLink workflowDefinitionLink, long companyId, String workflowDefinitionName, int workflowDefinitionVersion, OrderByComparator orderByComparator, boolean previous)
public void removeByC_W_W(long companyId, String workflowDefinitionName, int workflowDefinitionVersion) throws SystemException
removeByC_W_W
in interface WorkflowDefinitionLinkPersistence
companyId
- the company IDworkflowDefinitionName
- the workflow definition nameworkflowDefinitionVersion
- the workflow definition version
SystemException
- if a system exception occurredpublic int countByC_W_W(long companyId, String workflowDefinitionName, int workflowDefinitionVersion) throws SystemException
countByC_W_W
in interface WorkflowDefinitionLinkPersistence
companyId
- the company IDworkflowDefinitionName
- the workflow definition nameworkflowDefinitionVersion
- the workflow definition version
SystemException
- if a system exception occurredpublic WorkflowDefinitionLink findByG_C_C_C_T(long groupId, long companyId, long classNameId, long classPK, long typePK) throws NoSuchWorkflowDefinitionLinkException, SystemException
NoSuchWorkflowDefinitionLinkException
if it could not be found.
findByG_C_C_C_T
in interface WorkflowDefinitionLinkPersistence
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class p ktypePK
- the type p k
NoSuchWorkflowDefinitionLinkException
- if a matching workflow definition link could not be found
SystemException
- if a system exception occurredpublic WorkflowDefinitionLink fetchByG_C_C_C_T(long groupId, long companyId, long classNameId, long classPK, long typePK) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByG_C_C_C_T
in interface WorkflowDefinitionLinkPersistence
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class p ktypePK
- the type p k
null
if a matching workflow definition link could not be found
SystemException
- if a system exception occurredpublic WorkflowDefinitionLink fetchByG_C_C_C_T(long groupId, long companyId, long classNameId, long classPK, long typePK, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByG_C_C_C_T
in interface WorkflowDefinitionLinkPersistence
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class p ktypePK
- the type p kretrieveFromCache
- whether to use the finder cache
null
if a matching workflow definition link could not be found
SystemException
- if a system exception occurredpublic WorkflowDefinitionLink removeByG_C_C_C_T(long groupId, long companyId, long classNameId, long classPK, long typePK) throws NoSuchWorkflowDefinitionLinkException, SystemException
removeByG_C_C_C_T
in interface WorkflowDefinitionLinkPersistence
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class p ktypePK
- the type p k
SystemException
- if a system exception occurred
NoSuchWorkflowDefinitionLinkException
public int countByG_C_C_C_T(long groupId, long companyId, long classNameId, long classPK, long typePK) throws SystemException
countByG_C_C_C_T
in interface WorkflowDefinitionLinkPersistence
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class p ktypePK
- the type p k
SystemException
- if a system exception occurredpublic void cacheResult(WorkflowDefinitionLink workflowDefinitionLink)
cacheResult
in interface WorkflowDefinitionLinkPersistence
workflowDefinitionLink
- the workflow definition linkpublic void cacheResult(List<WorkflowDefinitionLink> workflowDefinitionLinks)
cacheResult
in interface WorkflowDefinitionLinkPersistence
workflowDefinitionLinks
- the workflow definition linkspublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<WorkflowDefinitionLink>
clearCache
in class BasePersistenceImpl<WorkflowDefinitionLink>
public void clearCache(WorkflowDefinitionLink workflowDefinitionLink)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<WorkflowDefinitionLink>
clearCache
in class BasePersistenceImpl<WorkflowDefinitionLink>
workflowDefinitionLink
- the instance of this model to clear the cache forpublic void clearCache(List<WorkflowDefinitionLink> workflowDefinitionLinks)
BasePersistence
The EntityCache
and FinderCache
are both cleared by this
method.
clearCache
in interface BasePersistence<WorkflowDefinitionLink>
clearCache
in class BasePersistenceImpl<WorkflowDefinitionLink>
workflowDefinitionLinks
- the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(WorkflowDefinitionLink workflowDefinitionLink)
protected void clearUniqueFindersCache(WorkflowDefinitionLink workflowDefinitionLink)
public WorkflowDefinitionLink create(long workflowDefinitionLinkId)
create
in interface WorkflowDefinitionLinkPersistence
workflowDefinitionLinkId
- the primary key for the new workflow definition link
public WorkflowDefinitionLink remove(long workflowDefinitionLinkId) throws NoSuchWorkflowDefinitionLinkException, SystemException
remove
in interface WorkflowDefinitionLinkPersistence
workflowDefinitionLinkId
- the primary key of the workflow definition link
NoSuchWorkflowDefinitionLinkException
- if a workflow definition link with the primary key could not be found
SystemException
- if a system exception occurredpublic WorkflowDefinitionLink remove(Serializable primaryKey) throws NoSuchWorkflowDefinitionLinkException, SystemException
remove
in interface BasePersistence<WorkflowDefinitionLink>
remove
in class BasePersistenceImpl<WorkflowDefinitionLink>
primaryKey
- the primary key of the workflow definition link
NoSuchWorkflowDefinitionLinkException
- if a workflow definition link with the primary key could not be found
SystemException
- if a system exception occurredprotected WorkflowDefinitionLink removeImpl(WorkflowDefinitionLink workflowDefinitionLink) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.update(BaseModel,
boolean)
depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl
in class BasePersistenceImpl<WorkflowDefinitionLink>
workflowDefinitionLink
- the model instance to remove
SystemException
- if a system exception occurredpublic WorkflowDefinitionLink updateImpl(WorkflowDefinitionLink workflowDefinitionLink) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface WorkflowDefinitionLinkPersistence
updateImpl
in class BasePersistenceImpl<WorkflowDefinitionLink>
workflowDefinitionLink
- the model instance to update
SystemException
- if a system exception occurredprotected WorkflowDefinitionLink toUnwrappedModel(WorkflowDefinitionLink workflowDefinitionLink)
public WorkflowDefinitionLink findByPrimaryKey(Serializable primaryKey) throws NoSuchWorkflowDefinitionLinkException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<WorkflowDefinitionLink>
findByPrimaryKey
in class BasePersistenceImpl<WorkflowDefinitionLink>
primaryKey
- the primary key of the workflow definition link
NoSuchWorkflowDefinitionLinkException
- if a workflow definition link with the primary key could not be found
SystemException
- if a system exception occurredpublic WorkflowDefinitionLink findByPrimaryKey(long workflowDefinitionLinkId) throws NoSuchWorkflowDefinitionLinkException, SystemException
NoSuchWorkflowDefinitionLinkException
if it could not be found.
findByPrimaryKey
in interface WorkflowDefinitionLinkPersistence
workflowDefinitionLinkId
- the primary key of the workflow definition link
NoSuchWorkflowDefinitionLinkException
- if a workflow definition link with the primary key could not be found
SystemException
- if a system exception occurredpublic WorkflowDefinitionLink fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<WorkflowDefinitionLink>
fetchByPrimaryKey
in class BasePersistenceImpl<WorkflowDefinitionLink>
primaryKey
- the primary key of the workflow definition link
null
if a workflow definition link with the primary key could not be found
SystemException
- if a system exception occurredpublic WorkflowDefinitionLink fetchByPrimaryKey(long workflowDefinitionLinkId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface WorkflowDefinitionLinkPersistence
workflowDefinitionLinkId
- the primary key of the workflow definition link
null
if a workflow definition link with the primary key could not be found
SystemException
- if a system exception occurredpublic List<WorkflowDefinitionLink> findAll() throws SystemException
findAll
in interface WorkflowDefinitionLinkPersistence
SystemException
- if a system exception occurredpublic List<WorkflowDefinitionLink> findAll(int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from WorkflowDefinitionLinkModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll
in interface WorkflowDefinitionLinkPersistence
start
- the lower bound of the range of workflow definition linksend
- the upper bound of the range of workflow definition links (not inclusive)
SystemException
- if a system exception occurredpublic List<WorkflowDefinitionLink> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from WorkflowDefinitionLinkModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll
in interface WorkflowDefinitionLinkPersistence
start
- the lower bound of the range of workflow definition linksend
- the upper bound of the range of workflow definition links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic void removeAll() throws SystemException
removeAll
in interface WorkflowDefinitionLinkPersistence
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface WorkflowDefinitionLinkPersistence
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |