public class CTSContentUtil
extends java.lang.Object
com.liferay.change.tracking.store.service.persistence.impl.CTSContentPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
CTSContentPersistence
Constructor and Description |
---|
CTSContentUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CTSContent ctsContent)
Caches the cts content in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CTSContent> ctsContents)
Caches the cts contents in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CTSContent ctsContent) |
static int |
countAll()
Returns the number of cts contents.
|
static int |
countByC_R_LikeP_S(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType)
Returns the number of cts contents where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
|
static int |
countByC_R_P_S(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType)
Returns the number of cts contents where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
|
static int |
countByC_R_P_V_S(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String version,
java.lang.String storeType)
Returns the number of cts contents where companyId = ? and repositoryId = ? and path = ? and version = ? and storeType = ?.
|
static int |
countByC_R_S(long companyId,
long repositoryId,
java.lang.String storeType)
Returns the number of cts contents where companyId = ? and repositoryId = ? and storeType = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CTSContent |
create(long ctsContentId)
Creates a new cts content with the primary key.
|
static CTSContent |
fetchByC_R_LikeP_S_First(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
Returns the first cts content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
|
static CTSContent |
fetchByC_R_LikeP_S_Last(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
Returns the last cts content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
|
static CTSContent |
fetchByC_R_P_S_First(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
Returns the first cts content in the ordered set where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
|
static CTSContent |
fetchByC_R_P_S_Last(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
Returns the last cts content in the ordered set where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
|
static CTSContent |
fetchByC_R_P_V_S(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String version,
java.lang.String storeType)
Returns the cts content where companyId = ? and repositoryId = ? and path = ? and version = ? and storeType = ? or returns
null if it could not be found. |
static CTSContent |
fetchByC_R_P_V_S(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String version,
java.lang.String storeType,
boolean useFinderCache)
Returns the cts content where companyId = ? and repositoryId = ? and path = ? and version = ? and storeType = ? or returns
null if it could not be found, optionally using the finder cache. |
static CTSContent |
fetchByC_R_S_First(long companyId,
long repositoryId,
java.lang.String storeType,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
Returns the first cts content in the ordered set where companyId = ? and repositoryId = ? and storeType = ?.
|
static CTSContent |
fetchByC_R_S_Last(long companyId,
long repositoryId,
java.lang.String storeType,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
Returns the last cts content in the ordered set where companyId = ? and repositoryId = ? and storeType = ?.
|
static CTSContent |
fetchByPrimaryKey(long ctsContentId)
Returns the cts content with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CTSContent> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CTSContent> |
findAll()
Returns all the cts contents.
|
static java.util.List<CTSContent> |
findAll(int start,
int end)
Returns a range of all the cts contents.
|
static java.util.List<CTSContent> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
Returns an ordered range of all the cts contents.
|
static java.util.List<CTSContent> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cts contents.
|
static CTSContent |
findByC_R_LikeP_S_First(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
Returns the first cts content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
|
static CTSContent |
findByC_R_LikeP_S_Last(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
Returns the last cts content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
|
static CTSContent[] |
findByC_R_LikeP_S_PrevAndNext(long ctsContentId,
long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
Returns the cts contents before and after the current cts content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
|
static java.util.List<CTSContent> |
findByC_R_LikeP_S(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType)
Returns all the cts contents where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
|
static java.util.List<CTSContent> |
findByC_R_LikeP_S(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType,
int start,
int end)
Returns a range of all the cts contents where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
|
static java.util.List<CTSContent> |
findByC_R_LikeP_S(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
Returns an ordered range of all the cts contents where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
|
static java.util.List<CTSContent> |
findByC_R_LikeP_S(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cts contents where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ?.
|
static CTSContent |
findByC_R_P_S_First(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
Returns the first cts content in the ordered set where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
|
static CTSContent |
findByC_R_P_S_Last(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
Returns the last cts content in the ordered set where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
|
static CTSContent[] |
findByC_R_P_S_PrevAndNext(long ctsContentId,
long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
Returns the cts contents before and after the current cts content in the ordered set where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
|
static java.util.List<CTSContent> |
findByC_R_P_S(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType)
Returns all the cts contents where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
|
static java.util.List<CTSContent> |
findByC_R_P_S(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType,
int start,
int end)
Returns a range of all the cts contents where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
|
static java.util.List<CTSContent> |
findByC_R_P_S(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
Returns an ordered range of all the cts contents where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
|
static java.util.List<CTSContent> |
findByC_R_P_S(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cts contents where companyId = ? and repositoryId = ? and path = ? and storeType = ?.
|
static CTSContent |
findByC_R_P_V_S(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String version,
java.lang.String storeType)
Returns the cts content where companyId = ? and repositoryId = ? and path = ? and version = ? and storeType = ? or throws a
NoSuchContentException if it could not be found. |
static CTSContent |
findByC_R_S_First(long companyId,
long repositoryId,
java.lang.String storeType,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
Returns the first cts content in the ordered set where companyId = ? and repositoryId = ? and storeType = ?.
|
static CTSContent |
findByC_R_S_Last(long companyId,
long repositoryId,
java.lang.String storeType,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
Returns the last cts content in the ordered set where companyId = ? and repositoryId = ? and storeType = ?.
|
static CTSContent[] |
findByC_R_S_PrevAndNext(long ctsContentId,
long companyId,
long repositoryId,
java.lang.String storeType,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
Returns the cts contents before and after the current cts content in the ordered set where companyId = ? and repositoryId = ? and storeType = ?.
|
static java.util.List<CTSContent> |
findByC_R_S(long companyId,
long repositoryId,
java.lang.String storeType)
Returns all the cts contents where companyId = ? and repositoryId = ? and storeType = ?.
|
static java.util.List<CTSContent> |
findByC_R_S(long companyId,
long repositoryId,
java.lang.String storeType,
int start,
int end)
Returns a range of all the cts contents where companyId = ? and repositoryId = ? and storeType = ?.
|
static java.util.List<CTSContent> |
findByC_R_S(long companyId,
long repositoryId,
java.lang.String storeType,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
Returns an ordered range of all the cts contents where companyId = ? and repositoryId = ? and storeType = ?.
|
static java.util.List<CTSContent> |
findByC_R_S(long companyId,
long repositoryId,
java.lang.String storeType,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cts contents where companyId = ? and repositoryId = ? and storeType = ?.
|
static CTSContent |
findByPrimaryKey(long ctsContentId)
Returns the cts content with the primary key or throws a
NoSuchContentException if it could not be found. |
static java.util.List<CTSContent> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CTSContent> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CTSContent> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) |
static CTSContentPersistence |
getPersistence() |
static CTSContent |
remove(long ctsContentId)
Removes the cts content with the primary key from the database.
|
static void |
removeAll()
Removes all the cts contents from the database.
|
static void |
removeByC_R_LikeP_S(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType)
Removes all the cts contents where companyId = ? and repositoryId = ? and path LIKE ? and storeType = ? from the database.
|
static void |
removeByC_R_P_S(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String storeType)
Removes all the cts contents where companyId = ? and repositoryId = ? and path = ? and storeType = ? from the database.
|
static CTSContent |
removeByC_R_P_V_S(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String version,
java.lang.String storeType)
Removes the cts content where companyId = ? and repositoryId = ? and path = ? and version = ? and storeType = ? from the database.
|
static void |
removeByC_R_S(long companyId,
long repositoryId,
java.lang.String storeType)
Removes all the cts contents where companyId = ? and repositoryId = ? and storeType = ? from the database.
|
static CTSContent |
update(CTSContent ctsContent) |
static CTSContent |
update(CTSContent ctsContent,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CTSContent |
updateImpl(CTSContent ctsContent) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CTSContent ctsContent)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CTSContent> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CTSContent> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CTSContent> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CTSContent> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CTSContent update(CTSContent ctsContent)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CTSContent update(CTSContent ctsContent, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CTSContent> findByC_R_S(long companyId, long repositoryId, java.lang.String storeType)
companyId
- the company IDrepositoryId
- the repository IDstoreType
- the store typepublic static java.util.List<CTSContent> findByC_R_S(long companyId, long repositoryId, java.lang.String storeType, int start, int end)
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, then the query will include the default ORDER BY logic from CTSContentModelImpl
.
companyId
- the company IDrepositoryId
- the repository IDstoreType
- the store typestart
- the lower bound of the range of cts contentsend
- the upper bound of the range of cts contents (not inclusive)public static java.util.List<CTSContent> findByC_R_S(long companyId, long repositoryId, java.lang.String storeType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
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, then the query will include the default ORDER BY logic from CTSContentModelImpl
.
companyId
- the company IDrepositoryId
- the repository IDstoreType
- the store typestart
- the lower bound of the range of cts contentsend
- the upper bound of the range of cts contents (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CTSContent> findByC_R_S(long companyId, long repositoryId, java.lang.String storeType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from CTSContentModelImpl
.
companyId
- the company IDrepositoryId
- the repository IDstoreType
- the store typestart
- the lower bound of the range of cts contentsend
- the upper bound of the range of cts contents (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CTSContent findByC_R_S_First(long companyId, long repositoryId, java.lang.String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) throws NoSuchContentException
companyId
- the company IDrepositoryId
- the repository IDstoreType
- the store typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchContentException
- if a matching cts content could not be foundpublic static CTSContent fetchByC_R_S_First(long companyId, long repositoryId, java.lang.String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
companyId
- the company IDrepositoryId
- the repository IDstoreType
- the store typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cts content could not be foundpublic static CTSContent findByC_R_S_Last(long companyId, long repositoryId, java.lang.String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) throws NoSuchContentException
companyId
- the company IDrepositoryId
- the repository IDstoreType
- the store typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchContentException
- if a matching cts content could not be foundpublic static CTSContent fetchByC_R_S_Last(long companyId, long repositoryId, java.lang.String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
companyId
- the company IDrepositoryId
- the repository IDstoreType
- the store typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cts content could not be foundpublic static CTSContent[] findByC_R_S_PrevAndNext(long ctsContentId, long companyId, long repositoryId, java.lang.String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) throws NoSuchContentException
ctsContentId
- the primary key of the current cts contentcompanyId
- the company IDrepositoryId
- the repository IDstoreType
- the store typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchContentException
- if a cts content with the primary key could not be foundpublic static void removeByC_R_S(long companyId, long repositoryId, java.lang.String storeType)
companyId
- the company IDrepositoryId
- the repository IDstoreType
- the store typepublic static int countByC_R_S(long companyId, long repositoryId, java.lang.String storeType)
companyId
- the company IDrepositoryId
- the repository IDstoreType
- the store typepublic static java.util.List<CTSContent> findByC_R_P_S(long companyId, long repositoryId, java.lang.String path, java.lang.String storeType)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typepublic static java.util.List<CTSContent> findByC_R_P_S(long companyId, long repositoryId, java.lang.String path, java.lang.String storeType, int start, int end)
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, then the query will include the default ORDER BY logic from CTSContentModelImpl
.
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typestart
- the lower bound of the range of cts contentsend
- the upper bound of the range of cts contents (not inclusive)public static java.util.List<CTSContent> findByC_R_P_S(long companyId, long repositoryId, java.lang.String path, java.lang.String storeType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
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, then the query will include the default ORDER BY logic from CTSContentModelImpl
.
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typestart
- the lower bound of the range of cts contentsend
- the upper bound of the range of cts contents (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CTSContent> findByC_R_P_S(long companyId, long repositoryId, java.lang.String path, java.lang.String storeType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from CTSContentModelImpl
.
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typestart
- the lower bound of the range of cts contentsend
- the upper bound of the range of cts contents (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CTSContent findByC_R_P_S_First(long companyId, long repositoryId, java.lang.String path, java.lang.String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) throws NoSuchContentException
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchContentException
- if a matching cts content could not be foundpublic static CTSContent fetchByC_R_P_S_First(long companyId, long repositoryId, java.lang.String path, java.lang.String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cts content could not be foundpublic static CTSContent findByC_R_P_S_Last(long companyId, long repositoryId, java.lang.String path, java.lang.String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) throws NoSuchContentException
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchContentException
- if a matching cts content could not be foundpublic static CTSContent fetchByC_R_P_S_Last(long companyId, long repositoryId, java.lang.String path, java.lang.String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cts content could not be foundpublic static CTSContent[] findByC_R_P_S_PrevAndNext(long ctsContentId, long companyId, long repositoryId, java.lang.String path, java.lang.String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) throws NoSuchContentException
ctsContentId
- the primary key of the current cts contentcompanyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchContentException
- if a cts content with the primary key could not be foundpublic static void removeByC_R_P_S(long companyId, long repositoryId, java.lang.String path, java.lang.String storeType)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typepublic static int countByC_R_P_S(long companyId, long repositoryId, java.lang.String path, java.lang.String storeType)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typepublic static java.util.List<CTSContent> findByC_R_LikeP_S(long companyId, long repositoryId, java.lang.String path, java.lang.String storeType)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typepublic static java.util.List<CTSContent> findByC_R_LikeP_S(long companyId, long repositoryId, java.lang.String path, java.lang.String storeType, int start, int end)
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, then the query will include the default ORDER BY logic from CTSContentModelImpl
.
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typestart
- the lower bound of the range of cts contentsend
- the upper bound of the range of cts contents (not inclusive)public static java.util.List<CTSContent> findByC_R_LikeP_S(long companyId, long repositoryId, java.lang.String path, java.lang.String storeType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
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, then the query will include the default ORDER BY logic from CTSContentModelImpl
.
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typestart
- the lower bound of the range of cts contentsend
- the upper bound of the range of cts contents (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CTSContent> findByC_R_LikeP_S(long companyId, long repositoryId, java.lang.String path, java.lang.String storeType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from CTSContentModelImpl
.
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typestart
- the lower bound of the range of cts contentsend
- the upper bound of the range of cts contents (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CTSContent findByC_R_LikeP_S_First(long companyId, long repositoryId, java.lang.String path, java.lang.String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) throws NoSuchContentException
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchContentException
- if a matching cts content could not be foundpublic static CTSContent fetchByC_R_LikeP_S_First(long companyId, long repositoryId, java.lang.String path, java.lang.String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cts content could not be foundpublic static CTSContent findByC_R_LikeP_S_Last(long companyId, long repositoryId, java.lang.String path, java.lang.String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) throws NoSuchContentException
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchContentException
- if a matching cts content could not be foundpublic static CTSContent fetchByC_R_LikeP_S_Last(long companyId, long repositoryId, java.lang.String path, java.lang.String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cts content could not be foundpublic static CTSContent[] findByC_R_LikeP_S_PrevAndNext(long ctsContentId, long companyId, long repositoryId, java.lang.String path, java.lang.String storeType, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator) throws NoSuchContentException
ctsContentId
- the primary key of the current cts contentcompanyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchContentException
- if a cts content with the primary key could not be foundpublic static void removeByC_R_LikeP_S(long companyId, long repositoryId, java.lang.String path, java.lang.String storeType)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typepublic static int countByC_R_LikeP_S(long companyId, long repositoryId, java.lang.String path, java.lang.String storeType)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstoreType
- the store typepublic static CTSContent findByC_R_P_V_S(long companyId, long repositoryId, java.lang.String path, java.lang.String version, java.lang.String storeType) throws NoSuchContentException
NoSuchContentException
if it could not be found.companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the versionstoreType
- the store typeNoSuchContentException
- if a matching cts content could not be foundpublic static CTSContent fetchByC_R_P_V_S(long companyId, long repositoryId, java.lang.String path, java.lang.String version, java.lang.String storeType)
null
if it could not be found. Uses the finder cache.companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the versionstoreType
- the store typenull
if a matching cts content could not be foundpublic static CTSContent fetchByC_R_P_V_S(long companyId, long repositoryId, java.lang.String path, java.lang.String version, java.lang.String storeType, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the versionstoreType
- the store typeuseFinderCache
- whether to use the finder cachenull
if a matching cts content could not be foundpublic static CTSContent removeByC_R_P_V_S(long companyId, long repositoryId, java.lang.String path, java.lang.String version, java.lang.String storeType) throws NoSuchContentException
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the versionstoreType
- the store typeNoSuchContentException
public static int countByC_R_P_V_S(long companyId, long repositoryId, java.lang.String path, java.lang.String version, java.lang.String storeType)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the versionstoreType
- the store typepublic static void cacheResult(CTSContent ctsContent)
ctsContent
- the cts contentpublic static void cacheResult(java.util.List<CTSContent> ctsContents)
ctsContents
- the cts contentspublic static CTSContent create(long ctsContentId)
ctsContentId
- the primary key for the new cts contentpublic static CTSContent remove(long ctsContentId) throws NoSuchContentException
ctsContentId
- the primary key of the cts contentNoSuchContentException
- if a cts content with the primary key could not be foundpublic static CTSContent updateImpl(CTSContent ctsContent)
public static CTSContent findByPrimaryKey(long ctsContentId) throws NoSuchContentException
NoSuchContentException
if it could not be found.ctsContentId
- the primary key of the cts contentNoSuchContentException
- if a cts content with the primary key could not be foundpublic static CTSContent fetchByPrimaryKey(long ctsContentId)
null
if it could not be found.ctsContentId
- the primary key of the cts contentnull
if a cts content with the primary key could not be foundpublic static java.util.List<CTSContent> findAll()
public static java.util.List<CTSContent> findAll(int start, int end)
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, then the query will include the default ORDER BY logic from CTSContentModelImpl
.
start
- the lower bound of the range of cts contentsend
- the upper bound of the range of cts contents (not inclusive)public static java.util.List<CTSContent> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator)
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, then the query will include the default ORDER BY logic from CTSContentModelImpl
.
start
- the lower bound of the range of cts contentsend
- the upper bound of the range of cts contents (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CTSContent> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSContent> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from CTSContentModelImpl
.
start
- the lower bound of the range of cts contentsend
- the upper bound of the range of cts contents (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CTSContentPersistence getPersistence()