public class ObjectFilterUtil
extends java.lang.Object
com.liferay.object.service.persistence.impl.ObjectFilterPersistenceImpl
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
ObjectFilterPersistence
Constructor and Description |
---|
ObjectFilterUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<ObjectFilter> objectFilters)
Caches the object filters in the entity cache if it is enabled.
|
static void |
cacheResult(ObjectFilter objectFilter)
Caches the object filter in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ObjectFilter objectFilter) |
static int |
countAll()
Returns the number of object filters.
|
static int |
countByObjectFieldId(long objectFieldId)
Returns the number of object filters where objectFieldId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of object filters where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of object filters where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static ObjectFilter |
create(long objectFilterId)
Creates a new object filter with the primary key.
|
static ObjectFilter |
fetchByObjectFieldId_First(long objectFieldId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
Returns the first object filter in the ordered set where objectFieldId = ?.
|
static ObjectFilter |
fetchByObjectFieldId_Last(long objectFieldId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
Returns the last object filter in the ordered set where objectFieldId = ?.
|
static ObjectFilter |
fetchByPrimaryKey(long objectFilterId)
Returns the object filter with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ObjectFilter> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static ObjectFilter |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
Returns the first object filter in the ordered set where uuid = ? and companyId = ?.
|
static ObjectFilter |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
Returns the last object filter in the ordered set where uuid = ? and companyId = ?.
|
static ObjectFilter |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
Returns the first object filter in the ordered set where uuid = ?.
|
static ObjectFilter |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
Returns the last object filter in the ordered set where uuid = ?.
|
static java.util.List<ObjectFilter> |
findAll()
Returns all the object filters.
|
static java.util.List<ObjectFilter> |
findAll(int start,
int end)
Returns a range of all the object filters.
|
static java.util.List<ObjectFilter> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
Returns an ordered range of all the object filters.
|
static java.util.List<ObjectFilter> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object filters.
|
static ObjectFilter |
findByObjectFieldId_First(long objectFieldId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
Returns the first object filter in the ordered set where objectFieldId = ?.
|
static ObjectFilter |
findByObjectFieldId_Last(long objectFieldId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
Returns the last object filter in the ordered set where objectFieldId = ?.
|
static ObjectFilter[] |
findByObjectFieldId_PrevAndNext(long objectFilterId,
long objectFieldId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
Returns the object filters before and after the current object filter in the ordered set where objectFieldId = ?.
|
static java.util.List<ObjectFilter> |
findByObjectFieldId(long objectFieldId)
Returns all the object filters where objectFieldId = ?.
|
static java.util.List<ObjectFilter> |
findByObjectFieldId(long objectFieldId,
int start,
int end)
Returns a range of all the object filters where objectFieldId = ?.
|
static java.util.List<ObjectFilter> |
findByObjectFieldId(long objectFieldId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
Returns an ordered range of all the object filters where objectFieldId = ?.
|
static java.util.List<ObjectFilter> |
findByObjectFieldId(long objectFieldId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object filters where objectFieldId = ?.
|
static ObjectFilter |
findByPrimaryKey(long objectFilterId)
Returns the object filter with the primary key or throws a
NoSuchObjectFilterException if it could not be found. |
static ObjectFilter |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
Returns the first object filter in the ordered set where uuid = ? and companyId = ?.
|
static ObjectFilter |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
Returns the last object filter in the ordered set where uuid = ? and companyId = ?.
|
static ObjectFilter[] |
findByUuid_C_PrevAndNext(long objectFilterId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
Returns the object filters before and after the current object filter in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<ObjectFilter> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the object filters where uuid = ? and companyId = ?.
|
static java.util.List<ObjectFilter> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the object filters where uuid = ? and companyId = ?.
|
static java.util.List<ObjectFilter> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
Returns an ordered range of all the object filters where uuid = ? and companyId = ?.
|
static java.util.List<ObjectFilter> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object filters where uuid = ? and companyId = ?.
|
static ObjectFilter |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
Returns the first object filter in the ordered set where uuid = ?.
|
static ObjectFilter |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
Returns the last object filter in the ordered set where uuid = ?.
|
static ObjectFilter[] |
findByUuid_PrevAndNext(long objectFilterId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
Returns the object filters before and after the current object filter in the ordered set where uuid = ?.
|
static java.util.List<ObjectFilter> |
findByUuid(java.lang.String uuid)
Returns all the object filters where uuid = ?.
|
static java.util.List<ObjectFilter> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the object filters where uuid = ?.
|
static java.util.List<ObjectFilter> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
Returns an ordered range of all the object filters where uuid = ?.
|
static java.util.List<ObjectFilter> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object filters where uuid = ?.
|
static java.util.List<ObjectFilter> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<ObjectFilter> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ObjectFilter> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) |
static ObjectFilterPersistence |
getPersistence() |
static ObjectFilter |
remove(long objectFilterId)
Removes the object filter with the primary key from the database.
|
static void |
removeAll()
Removes all the object filters from the database.
|
static void |
removeByObjectFieldId(long objectFieldId)
Removes all the object filters where objectFieldId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the object filters where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the object filters where uuid = ? from the database.
|
static void |
setPersistence(ObjectFilterPersistence persistence) |
static ObjectFilter |
update(ObjectFilter objectFilter) |
static ObjectFilter |
update(ObjectFilter objectFilter,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ObjectFilter |
updateImpl(ObjectFilter objectFilter) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ObjectFilter objectFilter)
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,ObjectFilter> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<ObjectFilter> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<ObjectFilter> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<ObjectFilter> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ObjectFilter update(ObjectFilter objectFilter)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static ObjectFilter update(ObjectFilter objectFilter, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<ObjectFilter> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ObjectFilter> 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 ObjectFilterModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object filtersend
- the upper bound of the range of object filters (not inclusive)public static java.util.List<ObjectFilter> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> 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 ObjectFilterModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object filtersend
- the upper bound of the range of object filters (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectFilter> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> 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 ObjectFilterModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object filtersend
- the upper bound of the range of object filters (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectFilter findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) throws NoSuchObjectFilterException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFilterException
- if a matching object filter could not be foundpublic static ObjectFilter fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object filter could not be foundpublic static ObjectFilter findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) throws NoSuchObjectFilterException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFilterException
- if a matching object filter could not be foundpublic static ObjectFilter fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object filter could not be foundpublic static ObjectFilter[] findByUuid_PrevAndNext(long objectFilterId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) throws NoSuchObjectFilterException
objectFilterId
- the primary key of the current object filteruuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFilterException
- if a object filter 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<ObjectFilter> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ObjectFilter> 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 ObjectFilterModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object filtersend
- the upper bound of the range of object filters (not inclusive)public static java.util.List<ObjectFilter> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> 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 ObjectFilterModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object filtersend
- the upper bound of the range of object filters (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectFilter> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> 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 ObjectFilterModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object filtersend
- the upper bound of the range of object filters (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectFilter findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) throws NoSuchObjectFilterException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFilterException
- if a matching object filter could not be foundpublic static ObjectFilter fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object filter could not be foundpublic static ObjectFilter findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) throws NoSuchObjectFilterException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFilterException
- if a matching object filter could not be foundpublic static ObjectFilter fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object filter could not be foundpublic static ObjectFilter[] findByUuid_C_PrevAndNext(long objectFilterId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) throws NoSuchObjectFilterException
objectFilterId
- the primary key of the current object filteruuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFilterException
- if a object filter 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<ObjectFilter> findByObjectFieldId(long objectFieldId)
objectFieldId
- the object field IDpublic static java.util.List<ObjectFilter> findByObjectFieldId(long objectFieldId, 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 ObjectFilterModelImpl
.
objectFieldId
- the object field IDstart
- the lower bound of the range of object filtersend
- the upper bound of the range of object filters (not inclusive)public static java.util.List<ObjectFilter> findByObjectFieldId(long objectFieldId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> 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 ObjectFilterModelImpl
.
objectFieldId
- the object field IDstart
- the lower bound of the range of object filtersend
- the upper bound of the range of object filters (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectFilter> findByObjectFieldId(long objectFieldId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> 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 ObjectFilterModelImpl
.
objectFieldId
- the object field IDstart
- the lower bound of the range of object filtersend
- the upper bound of the range of object filters (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectFilter findByObjectFieldId_First(long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) throws NoSuchObjectFilterException
objectFieldId
- the object field IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFilterException
- if a matching object filter could not be foundpublic static ObjectFilter fetchByObjectFieldId_First(long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
objectFieldId
- the object field IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object filter could not be foundpublic static ObjectFilter findByObjectFieldId_Last(long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) throws NoSuchObjectFilterException
objectFieldId
- the object field IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFilterException
- if a matching object filter could not be foundpublic static ObjectFilter fetchByObjectFieldId_Last(long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator)
objectFieldId
- the object field IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object filter could not be foundpublic static ObjectFilter[] findByObjectFieldId_PrevAndNext(long objectFilterId, long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) throws NoSuchObjectFilterException
objectFilterId
- the primary key of the current object filterobjectFieldId
- the object field IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFilterException
- if a object filter with the primary key could not be foundpublic static void removeByObjectFieldId(long objectFieldId)
objectFieldId
- the object field IDpublic static int countByObjectFieldId(long objectFieldId)
objectFieldId
- the object field IDpublic static void cacheResult(ObjectFilter objectFilter)
objectFilter
- the object filterpublic static void cacheResult(java.util.List<ObjectFilter> objectFilters)
objectFilters
- the object filterspublic static ObjectFilter create(long objectFilterId)
objectFilterId
- the primary key for the new object filterpublic static ObjectFilter remove(long objectFilterId) throws NoSuchObjectFilterException
objectFilterId
- the primary key of the object filterNoSuchObjectFilterException
- if a object filter with the primary key could not be foundpublic static ObjectFilter updateImpl(ObjectFilter objectFilter)
public static ObjectFilter findByPrimaryKey(long objectFilterId) throws NoSuchObjectFilterException
NoSuchObjectFilterException
if it could not be found.objectFilterId
- the primary key of the object filterNoSuchObjectFilterException
- if a object filter with the primary key could not be foundpublic static ObjectFilter fetchByPrimaryKey(long objectFilterId)
null
if it could not be found.objectFilterId
- the primary key of the object filternull
if a object filter with the primary key could not be foundpublic static java.util.List<ObjectFilter> findAll()
public static java.util.List<ObjectFilter> 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 ObjectFilterModelImpl
.
start
- the lower bound of the range of object filtersend
- the upper bound of the range of object filters (not inclusive)public static java.util.List<ObjectFilter> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> 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 ObjectFilterModelImpl
.
start
- the lower bound of the range of object filtersend
- the upper bound of the range of object filters (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectFilter> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> 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 ObjectFilterModelImpl
.
start
- the lower bound of the range of object filtersend
- the upper bound of the range of object filters (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 ObjectFilterPersistence getPersistence()
public static void setPersistence(ObjectFilterPersistence persistence)