public class TranslationEntryUtil
extends java.lang.Object
com.liferay.translation.service.persistence.impl.TranslationEntryPersistenceImpl
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
TranslationEntryPersistence
Constructor and Description |
---|
TranslationEntryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<TranslationEntry> translationEntries)
Caches the translation entries in the entity cache if it is enabled.
|
static void |
cacheResult(TranslationEntry translationEntry)
Caches the translation entry in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(TranslationEntry translationEntry) |
static int |
countAll()
Returns the number of translation entries.
|
static int |
countByC_C_L(long classNameId,
long classPK,
java.lang.String languageId)
Returns the number of translation entries where classNameId = ? and classPK = ? and languageId = ?.
|
static int |
countByC_C(long classNameId,
long classPK)
Returns the number of translation entries where classNameId = ? and classPK = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of translation entries where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of translation entries where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of translation entries where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static TranslationEntry |
create(long translationEntryId)
Creates a new translation entry with the primary key.
|
static TranslationEntry |
fetchByC_C_First(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
Returns the first translation entry in the ordered set where classNameId = ? and classPK = ?.
|
static TranslationEntry |
fetchByC_C_L(long classNameId,
long classPK,
java.lang.String languageId)
Returns the translation entry where classNameId = ? and classPK = ? and languageId = ? or returns
null if it could not be found. |
static TranslationEntry |
fetchByC_C_L(long classNameId,
long classPK,
java.lang.String languageId,
boolean useFinderCache)
Returns the translation entry where classNameId = ? and classPK = ? and languageId = ? or returns
null if it could not be found, optionally using the finder cache. |
static TranslationEntry |
fetchByC_C_Last(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
Returns the last translation entry in the ordered set where classNameId = ? and classPK = ?.
|
static TranslationEntry |
fetchByPrimaryKey(long translationEntryId)
Returns the translation entry with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,TranslationEntry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static TranslationEntry |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
Returns the first translation entry in the ordered set where uuid = ? and companyId = ?.
|
static TranslationEntry |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
Returns the last translation entry in the ordered set where uuid = ? and companyId = ?.
|
static TranslationEntry |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
Returns the first translation entry in the ordered set where uuid = ?.
|
static TranslationEntry |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the translation entry where uuid = ? and groupId = ? or returns
null if it could not be found. |
static TranslationEntry |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the translation entry where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static TranslationEntry |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
Returns the last translation entry in the ordered set where uuid = ?.
|
static java.util.List<TranslationEntry> |
findAll()
Returns all the translation entries.
|
static java.util.List<TranslationEntry> |
findAll(int start,
int end)
Returns a range of all the translation entries.
|
static java.util.List<TranslationEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
Returns an ordered range of all the translation entries.
|
static java.util.List<TranslationEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the translation entries.
|
static TranslationEntry |
findByC_C_First(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
Returns the first translation entry in the ordered set where classNameId = ? and classPK = ?.
|
static TranslationEntry |
findByC_C_L(long classNameId,
long classPK,
java.lang.String languageId)
Returns the translation entry where classNameId = ? and classPK = ? and languageId = ? or throws a
NoSuchEntryException if it could not be found. |
static TranslationEntry |
findByC_C_Last(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
Returns the last translation entry in the ordered set where classNameId = ? and classPK = ?.
|
static TranslationEntry[] |
findByC_C_PrevAndNext(long translationEntryId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
Returns the translation entries before and after the current translation entry in the ordered set where classNameId = ? and classPK = ?.
|
static java.util.List<TranslationEntry> |
findByC_C(long classNameId,
long classPK)
Returns all the translation entries where classNameId = ? and classPK = ?.
|
static java.util.List<TranslationEntry> |
findByC_C(long classNameId,
long classPK,
int start,
int end)
Returns a range of all the translation entries where classNameId = ? and classPK = ?.
|
static java.util.List<TranslationEntry> |
findByC_C(long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
Returns an ordered range of all the translation entries where classNameId = ? and classPK = ?.
|
static java.util.List<TranslationEntry> |
findByC_C(long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the translation entries where classNameId = ? and classPK = ?.
|
static TranslationEntry |
findByPrimaryKey(long translationEntryId)
Returns the translation entry with the primary key or throws a
NoSuchEntryException if it could not be found. |
static TranslationEntry |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
Returns the first translation entry in the ordered set where uuid = ? and companyId = ?.
|
static TranslationEntry |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
Returns the last translation entry in the ordered set where uuid = ? and companyId = ?.
|
static TranslationEntry[] |
findByUuid_C_PrevAndNext(long translationEntryId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
Returns the translation entries before and after the current translation entry in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<TranslationEntry> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the translation entries where uuid = ? and companyId = ?.
|
static java.util.List<TranslationEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the translation entries where uuid = ? and companyId = ?.
|
static java.util.List<TranslationEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
Returns an ordered range of all the translation entries where uuid = ? and companyId = ?.
|
static java.util.List<TranslationEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the translation entries where uuid = ? and companyId = ?.
|
static TranslationEntry |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
Returns the first translation entry in the ordered set where uuid = ?.
|
static TranslationEntry |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the translation entry where uuid = ? and groupId = ? or throws a
NoSuchEntryException if it could not be found. |
static TranslationEntry |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
Returns the last translation entry in the ordered set where uuid = ?.
|
static TranslationEntry[] |
findByUuid_PrevAndNext(long translationEntryId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
Returns the translation entries before and after the current translation entry in the ordered set where uuid = ?.
|
static java.util.List<TranslationEntry> |
findByUuid(java.lang.String uuid)
Returns all the translation entries where uuid = ?.
|
static java.util.List<TranslationEntry> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the translation entries where uuid = ?.
|
static java.util.List<TranslationEntry> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
Returns an ordered range of all the translation entries where uuid = ?.
|
static java.util.List<TranslationEntry> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the translation entries where uuid = ?.
|
static java.util.List<TranslationEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<TranslationEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<TranslationEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator) |
static TranslationEntryPersistence |
getPersistence() |
static TranslationEntry |
remove(long translationEntryId)
Removes the translation entry with the primary key from the database.
|
static void |
removeAll()
Removes all the translation entries from the database.
|
static TranslationEntry |
removeByC_C_L(long classNameId,
long classPK,
java.lang.String languageId)
Removes the translation entry where classNameId = ? and classPK = ? and languageId = ? from the database.
|
static void |
removeByC_C(long classNameId,
long classPK)
Removes all the translation entries where classNameId = ? and classPK = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the translation entries where uuid = ? and companyId = ? from the database.
|
static TranslationEntry |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the translation entry where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the translation entries where uuid = ? from the database.
|
static TranslationEntry |
update(TranslationEntry translationEntry) |
static TranslationEntry |
update(TranslationEntry translationEntry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static TranslationEntry |
updateImpl(TranslationEntry translationEntry) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(TranslationEntry translationEntry)
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,TranslationEntry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<TranslationEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<TranslationEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<TranslationEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static TranslationEntry update(TranslationEntry translationEntry)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static TranslationEntry update(TranslationEntry translationEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<TranslationEntry> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<TranslationEntry> findByUuid(java.lang.String uuid, 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 TranslationEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of translation entriesend
- the upper bound of the range of translation entries (not inclusive)public static java.util.List<TranslationEntry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> 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 TranslationEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of translation entriesend
- the upper bound of the range of translation entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<TranslationEntry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> 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 TranslationEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of translation entriesend
- the upper bound of the range of translation entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static TranslationEntry findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator) throws NoSuchEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching translation entry could not be foundpublic static TranslationEntry fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching translation entry could not be foundpublic static TranslationEntry findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator) throws NoSuchEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching translation entry could not be foundpublic static TranslationEntry fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching translation entry could not be foundpublic static TranslationEntry[] findByUuid_PrevAndNext(long translationEntryId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator) throws NoSuchEntryException
translationEntryId
- the primary key of the current translation entryuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a translation entry with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static TranslationEntry findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchEntryException
- if a matching translation entry could not be foundpublic static TranslationEntry fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching translation entry could not be foundpublic static TranslationEntry fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching translation entry could not be foundpublic static TranslationEntry removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchEntryException
uuid
- the uuidgroupId
- the group IDNoSuchEntryException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<TranslationEntry> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<TranslationEntry> findByUuid_C(java.lang.String uuid, long companyId, 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 TranslationEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of translation entriesend
- the upper bound of the range of translation entries (not inclusive)public static java.util.List<TranslationEntry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> 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 TranslationEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of translation entriesend
- the upper bound of the range of translation entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<TranslationEntry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> 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 TranslationEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of translation entriesend
- the upper bound of the range of translation entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static TranslationEntry findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator) throws NoSuchEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching translation entry could not be foundpublic static TranslationEntry fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching translation entry could not be foundpublic static TranslationEntry findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator) throws NoSuchEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching translation entry could not be foundpublic static TranslationEntry fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching translation entry could not be foundpublic static TranslationEntry[] findByUuid_C_PrevAndNext(long translationEntryId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator) throws NoSuchEntryException
translationEntryId
- the primary key of the current translation entryuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a translation entry with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<TranslationEntry> findByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static java.util.List<TranslationEntry> findByC_C(long classNameId, long classPK, 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 TranslationEntryModelImpl
.
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of translation entriesend
- the upper bound of the range of translation entries (not inclusive)public static java.util.List<TranslationEntry> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> 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 TranslationEntryModelImpl
.
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of translation entriesend
- the upper bound of the range of translation entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<TranslationEntry> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> 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 TranslationEntryModelImpl
.
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of translation entriesend
- the upper bound of the range of translation entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static TranslationEntry findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator) throws NoSuchEntryException
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching translation entry could not be foundpublic static TranslationEntry fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching translation entry could not be foundpublic static TranslationEntry findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator) throws NoSuchEntryException
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching translation entry could not be foundpublic static TranslationEntry fetchByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching translation entry could not be foundpublic static TranslationEntry[] findByC_C_PrevAndNext(long translationEntryId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> orderByComparator) throws NoSuchEntryException
translationEntryId
- the primary key of the current translation entryclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a translation entry with the primary key could not be foundpublic static void removeByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static int countByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static TranslationEntry findByC_C_L(long classNameId, long classPK, java.lang.String languageId) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.classNameId
- the class name IDclassPK
- the class pklanguageId
- the language IDNoSuchEntryException
- if a matching translation entry could not be foundpublic static TranslationEntry fetchByC_C_L(long classNameId, long classPK, java.lang.String languageId)
null
if it could not be found. Uses the finder cache.classNameId
- the class name IDclassPK
- the class pklanguageId
- the language IDnull
if a matching translation entry could not be foundpublic static TranslationEntry fetchByC_C_L(long classNameId, long classPK, java.lang.String languageId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.classNameId
- the class name IDclassPK
- the class pklanguageId
- the language IDuseFinderCache
- whether to use the finder cachenull
if a matching translation entry could not be foundpublic static TranslationEntry removeByC_C_L(long classNameId, long classPK, java.lang.String languageId) throws NoSuchEntryException
classNameId
- the class name IDclassPK
- the class pklanguageId
- the language IDNoSuchEntryException
public static int countByC_C_L(long classNameId, long classPK, java.lang.String languageId)
classNameId
- the class name IDclassPK
- the class pklanguageId
- the language IDpublic static void cacheResult(TranslationEntry translationEntry)
translationEntry
- the translation entrypublic static void cacheResult(java.util.List<TranslationEntry> translationEntries)
translationEntries
- the translation entriespublic static TranslationEntry create(long translationEntryId)
translationEntryId
- the primary key for the new translation entrypublic static TranslationEntry remove(long translationEntryId) throws NoSuchEntryException
translationEntryId
- the primary key of the translation entryNoSuchEntryException
- if a translation entry with the primary key could not be foundpublic static TranslationEntry updateImpl(TranslationEntry translationEntry)
public static TranslationEntry findByPrimaryKey(long translationEntryId) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.translationEntryId
- the primary key of the translation entryNoSuchEntryException
- if a translation entry with the primary key could not be foundpublic static TranslationEntry fetchByPrimaryKey(long translationEntryId)
null
if it could not be found.translationEntryId
- the primary key of the translation entrynull
if a translation entry with the primary key could not be foundpublic static java.util.List<TranslationEntry> findAll()
public static java.util.List<TranslationEntry> 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 TranslationEntryModelImpl
.
start
- the lower bound of the range of translation entriesend
- the upper bound of the range of translation entries (not inclusive)public static java.util.List<TranslationEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> 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 TranslationEntryModelImpl
.
start
- the lower bound of the range of translation entriesend
- the upper bound of the range of translation entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<TranslationEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TranslationEntry> 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 TranslationEntryModelImpl
.
start
- the lower bound of the range of translation entriesend
- the upper bound of the range of translation entries (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 TranslationEntryPersistence getPersistence()