public class ListTypeEntryUtil
extends java.lang.Object
com.liferay.list.type.service.persistence.impl.ListTypeEntryPersistenceImpl
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
ListTypeEntryPersistence
Constructor and Description |
---|
ListTypeEntryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<ListTypeEntry> listTypeEntries)
Caches the list type entries in the entity cache if it is enabled.
|
static void |
cacheResult(ListTypeEntry listTypeEntry)
Caches the list type entry in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ListTypeEntry listTypeEntry) |
static int |
countAll()
Returns the number of list type entries.
|
static int |
countByListTypeDefinitionId(long listTypeDefinitionId)
Returns the number of list type entries where listTypeDefinitionId = ?.
|
static int |
countByLTDI_K(long listTypeDefinitionId,
java.lang.String key)
Returns the number of list type entries where listTypeDefinitionId = ? and key = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of list type entries where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of list type entries where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static ListTypeEntry |
create(long listTypeEntryId)
Creates a new list type entry with the primary key.
|
static ListTypeEntry |
fetchByListTypeDefinitionId_First(long listTypeDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
Returns the first list type entry in the ordered set where listTypeDefinitionId = ?.
|
static ListTypeEntry |
fetchByListTypeDefinitionId_Last(long listTypeDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
Returns the last list type entry in the ordered set where listTypeDefinitionId = ?.
|
static ListTypeEntry |
fetchByLTDI_K(long listTypeDefinitionId,
java.lang.String key)
Returns the list type entry where listTypeDefinitionId = ? and key = ? or returns
null if it could not be found. |
static ListTypeEntry |
fetchByLTDI_K(long listTypeDefinitionId,
java.lang.String key,
boolean useFinderCache)
Returns the list type entry where listTypeDefinitionId = ? and key = ? or returns
null if it could not be found, optionally using the finder cache. |
static ListTypeEntry |
fetchByPrimaryKey(long listTypeEntryId)
Returns the list type entry with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ListTypeEntry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static ListTypeEntry |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
Returns the first list type entry in the ordered set where uuid = ? and companyId = ?.
|
static ListTypeEntry |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
Returns the last list type entry in the ordered set where uuid = ? and companyId = ?.
|
static ListTypeEntry |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
Returns the first list type entry in the ordered set where uuid = ?.
|
static ListTypeEntry |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
Returns the last list type entry in the ordered set where uuid = ?.
|
static java.util.List<ListTypeEntry> |
findAll()
Returns all the list type entries.
|
static java.util.List<ListTypeEntry> |
findAll(int start,
int end)
Returns a range of all the list type entries.
|
static java.util.List<ListTypeEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
Returns an ordered range of all the list type entries.
|
static java.util.List<ListTypeEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the list type entries.
|
static ListTypeEntry |
findByListTypeDefinitionId_First(long listTypeDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
Returns the first list type entry in the ordered set where listTypeDefinitionId = ?.
|
static ListTypeEntry |
findByListTypeDefinitionId_Last(long listTypeDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
Returns the last list type entry in the ordered set where listTypeDefinitionId = ?.
|
static ListTypeEntry[] |
findByListTypeDefinitionId_PrevAndNext(long listTypeEntryId,
long listTypeDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
Returns the list type entries before and after the current list type entry in the ordered set where listTypeDefinitionId = ?.
|
static java.util.List<ListTypeEntry> |
findByListTypeDefinitionId(long listTypeDefinitionId)
Returns all the list type entries where listTypeDefinitionId = ?.
|
static java.util.List<ListTypeEntry> |
findByListTypeDefinitionId(long listTypeDefinitionId,
int start,
int end)
Returns a range of all the list type entries where listTypeDefinitionId = ?.
|
static java.util.List<ListTypeEntry> |
findByListTypeDefinitionId(long listTypeDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
Returns an ordered range of all the list type entries where listTypeDefinitionId = ?.
|
static java.util.List<ListTypeEntry> |
findByListTypeDefinitionId(long listTypeDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the list type entries where listTypeDefinitionId = ?.
|
static ListTypeEntry |
findByLTDI_K(long listTypeDefinitionId,
java.lang.String key)
Returns the list type entry where listTypeDefinitionId = ? and key = ? or throws a
NoSuchListTypeEntryException if it could not be found. |
static ListTypeEntry |
findByPrimaryKey(long listTypeEntryId)
Returns the list type entry with the primary key or throws a
NoSuchListTypeEntryException if it could not be found. |
static ListTypeEntry |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
Returns the first list type entry in the ordered set where uuid = ? and companyId = ?.
|
static ListTypeEntry |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
Returns the last list type entry in the ordered set where uuid = ? and companyId = ?.
|
static ListTypeEntry[] |
findByUuid_C_PrevAndNext(long listTypeEntryId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
Returns the list type entries before and after the current list type entry in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<ListTypeEntry> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the list type entries where uuid = ? and companyId = ?.
|
static java.util.List<ListTypeEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the list type entries where uuid = ? and companyId = ?.
|
static java.util.List<ListTypeEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
Returns an ordered range of all the list type entries where uuid = ? and companyId = ?.
|
static java.util.List<ListTypeEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the list type entries where uuid = ? and companyId = ?.
|
static ListTypeEntry |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
Returns the first list type entry in the ordered set where uuid = ?.
|
static ListTypeEntry |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
Returns the last list type entry in the ordered set where uuid = ?.
|
static ListTypeEntry[] |
findByUuid_PrevAndNext(long listTypeEntryId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
Returns the list type entries before and after the current list type entry in the ordered set where uuid = ?.
|
static java.util.List<ListTypeEntry> |
findByUuid(java.lang.String uuid)
Returns all the list type entries where uuid = ?.
|
static java.util.List<ListTypeEntry> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the list type entries where uuid = ?.
|
static java.util.List<ListTypeEntry> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
Returns an ordered range of all the list type entries where uuid = ?.
|
static java.util.List<ListTypeEntry> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the list type entries where uuid = ?.
|
static java.util.List<ListTypeEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<ListTypeEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ListTypeEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator) |
static ListTypeEntryPersistence |
getPersistence() |
static ListTypeEntry |
remove(long listTypeEntryId)
Removes the list type entry with the primary key from the database.
|
static void |
removeAll()
Removes all the list type entries from the database.
|
static void |
removeByListTypeDefinitionId(long listTypeDefinitionId)
Removes all the list type entries where listTypeDefinitionId = ? from the database.
|
static ListTypeEntry |
removeByLTDI_K(long listTypeDefinitionId,
java.lang.String key)
Removes the list type entry where listTypeDefinitionId = ? and key = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the list type entries where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the list type entries where uuid = ? from the database.
|
static ListTypeEntry |
update(ListTypeEntry listTypeEntry) |
static ListTypeEntry |
update(ListTypeEntry listTypeEntry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ListTypeEntry |
updateImpl(ListTypeEntry listTypeEntry) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ListTypeEntry listTypeEntry)
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,ListTypeEntry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<ListTypeEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<ListTypeEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<ListTypeEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ListTypeEntry update(ListTypeEntry listTypeEntry)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static ListTypeEntry update(ListTypeEntry listTypeEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<ListTypeEntry> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ListTypeEntry> 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 ListTypeEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of list type entriesend
- the upper bound of the range of list type entries (not inclusive)public static java.util.List<ListTypeEntry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> 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 ListTypeEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of list type entriesend
- the upper bound of the range of list type entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ListTypeEntry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> 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 ListTypeEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of list type entriesend
- the upper bound of the range of list type entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ListTypeEntry findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator) throws NoSuchListTypeEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchListTypeEntryException
- if a matching list type entry could not be foundpublic static ListTypeEntry fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching list type entry could not be foundpublic static ListTypeEntry findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator) throws NoSuchListTypeEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchListTypeEntryException
- if a matching list type entry could not be foundpublic static ListTypeEntry fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching list type entry could not be foundpublic static ListTypeEntry[] findByUuid_PrevAndNext(long listTypeEntryId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator) throws NoSuchListTypeEntryException
listTypeEntryId
- the primary key of the current list type entryuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchListTypeEntryException
- if a list type 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 java.util.List<ListTypeEntry> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ListTypeEntry> 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 ListTypeEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of list type entriesend
- the upper bound of the range of list type entries (not inclusive)public static java.util.List<ListTypeEntry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> 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 ListTypeEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of list type entriesend
- the upper bound of the range of list type entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ListTypeEntry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> 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 ListTypeEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of list type entriesend
- the upper bound of the range of list type entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ListTypeEntry findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator) throws NoSuchListTypeEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchListTypeEntryException
- if a matching list type entry could not be foundpublic static ListTypeEntry fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching list type entry could not be foundpublic static ListTypeEntry findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator) throws NoSuchListTypeEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchListTypeEntryException
- if a matching list type entry could not be foundpublic static ListTypeEntry fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching list type entry could not be foundpublic static ListTypeEntry[] findByUuid_C_PrevAndNext(long listTypeEntryId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator) throws NoSuchListTypeEntryException
listTypeEntryId
- the primary key of the current list type entryuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchListTypeEntryException
- if a list type 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<ListTypeEntry> findByListTypeDefinitionId(long listTypeDefinitionId)
listTypeDefinitionId
- the list type definition IDpublic static java.util.List<ListTypeEntry> findByListTypeDefinitionId(long listTypeDefinitionId, 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 ListTypeEntryModelImpl
.
listTypeDefinitionId
- the list type definition IDstart
- the lower bound of the range of list type entriesend
- the upper bound of the range of list type entries (not inclusive)public static java.util.List<ListTypeEntry> findByListTypeDefinitionId(long listTypeDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> 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 ListTypeEntryModelImpl
.
listTypeDefinitionId
- the list type definition IDstart
- the lower bound of the range of list type entriesend
- the upper bound of the range of list type entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ListTypeEntry> findByListTypeDefinitionId(long listTypeDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> 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 ListTypeEntryModelImpl
.
listTypeDefinitionId
- the list type definition IDstart
- the lower bound of the range of list type entriesend
- the upper bound of the range of list type entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ListTypeEntry findByListTypeDefinitionId_First(long listTypeDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator) throws NoSuchListTypeEntryException
listTypeDefinitionId
- the list type definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchListTypeEntryException
- if a matching list type entry could not be foundpublic static ListTypeEntry fetchByListTypeDefinitionId_First(long listTypeDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
listTypeDefinitionId
- the list type definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching list type entry could not be foundpublic static ListTypeEntry findByListTypeDefinitionId_Last(long listTypeDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator) throws NoSuchListTypeEntryException
listTypeDefinitionId
- the list type definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchListTypeEntryException
- if a matching list type entry could not be foundpublic static ListTypeEntry fetchByListTypeDefinitionId_Last(long listTypeDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator)
listTypeDefinitionId
- the list type definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching list type entry could not be foundpublic static ListTypeEntry[] findByListTypeDefinitionId_PrevAndNext(long listTypeEntryId, long listTypeDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> orderByComparator) throws NoSuchListTypeEntryException
listTypeEntryId
- the primary key of the current list type entrylistTypeDefinitionId
- the list type definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchListTypeEntryException
- if a list type entry with the primary key could not be foundpublic static void removeByListTypeDefinitionId(long listTypeDefinitionId)
listTypeDefinitionId
- the list type definition IDpublic static int countByListTypeDefinitionId(long listTypeDefinitionId)
listTypeDefinitionId
- the list type definition IDpublic static ListTypeEntry findByLTDI_K(long listTypeDefinitionId, java.lang.String key) throws NoSuchListTypeEntryException
NoSuchListTypeEntryException
if it could not be found.listTypeDefinitionId
- the list type definition IDkey
- the keyNoSuchListTypeEntryException
- if a matching list type entry could not be foundpublic static ListTypeEntry fetchByLTDI_K(long listTypeDefinitionId, java.lang.String key)
null
if it could not be found. Uses the finder cache.listTypeDefinitionId
- the list type definition IDkey
- the keynull
if a matching list type entry could not be foundpublic static ListTypeEntry fetchByLTDI_K(long listTypeDefinitionId, java.lang.String key, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.listTypeDefinitionId
- the list type definition IDkey
- the keyuseFinderCache
- whether to use the finder cachenull
if a matching list type entry could not be foundpublic static ListTypeEntry removeByLTDI_K(long listTypeDefinitionId, java.lang.String key) throws NoSuchListTypeEntryException
listTypeDefinitionId
- the list type definition IDkey
- the keyNoSuchListTypeEntryException
public static int countByLTDI_K(long listTypeDefinitionId, java.lang.String key)
listTypeDefinitionId
- the list type definition IDkey
- the keypublic static void cacheResult(ListTypeEntry listTypeEntry)
listTypeEntry
- the list type entrypublic static void cacheResult(java.util.List<ListTypeEntry> listTypeEntries)
listTypeEntries
- the list type entriespublic static ListTypeEntry create(long listTypeEntryId)
listTypeEntryId
- the primary key for the new list type entrypublic static ListTypeEntry remove(long listTypeEntryId) throws NoSuchListTypeEntryException
listTypeEntryId
- the primary key of the list type entryNoSuchListTypeEntryException
- if a list type entry with the primary key could not be foundpublic static ListTypeEntry updateImpl(ListTypeEntry listTypeEntry)
public static ListTypeEntry findByPrimaryKey(long listTypeEntryId) throws NoSuchListTypeEntryException
NoSuchListTypeEntryException
if it could not be found.listTypeEntryId
- the primary key of the list type entryNoSuchListTypeEntryException
- if a list type entry with the primary key could not be foundpublic static ListTypeEntry fetchByPrimaryKey(long listTypeEntryId)
null
if it could not be found.listTypeEntryId
- the primary key of the list type entrynull
if a list type entry with the primary key could not be foundpublic static java.util.List<ListTypeEntry> findAll()
public static java.util.List<ListTypeEntry> 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 ListTypeEntryModelImpl
.
start
- the lower bound of the range of list type entriesend
- the upper bound of the range of list type entries (not inclusive)public static java.util.List<ListTypeEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> 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 ListTypeEntryModelImpl
.
start
- the lower bound of the range of list type entriesend
- the upper bound of the range of list type entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ListTypeEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeEntry> 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 ListTypeEntryModelImpl
.
start
- the lower bound of the range of list type entriesend
- the upper bound of the range of list type 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 ListTypeEntryPersistence getPersistence()