Class ObjectFilterUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(ObjectFilter objectFilter) Caches the object filter in the entity cache if it is enabled.static void
cacheResult
(List<ObjectFilter> objectFilters) Caches the object filters in the entity cache if it is enabled.static void
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
(String uuid) Returns the number of object filters where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of object filters where uuid = ? and companyId = ?.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 returnsnull
if it could not be found.static Map<Serializable,
ObjectFilter> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static ObjectFilter
fetchByUuid_C_First
(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
(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
(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
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) Returns the last object filter in the ordered set where uuid = ?.static List<ObjectFilter>
findAll()
Returns all the object filters.static List<ObjectFilter>
findAll
(int start, int end) Returns a range of all the object filters.static 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 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 List<ObjectFilter>
findByObjectFieldId
(long objectFieldId) Returns all the object filters where objectFieldId = ?.static List<ObjectFilter>
findByObjectFieldId
(long objectFieldId, int start, int end) Returns a range of all the object filters where objectFieldId = ?.static 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 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
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 ObjectFilter
findByPrimaryKey
(long objectFilterId) Returns the object filter with the primary key or throws aNoSuchObjectFilterException
if it could not be found.static List<ObjectFilter>
findByUuid
(String uuid) Returns all the object filters where uuid = ?.static List<ObjectFilter>
findByUuid
(String uuid, int start, int end) Returns a range of all the object filters where uuid = ?.static List<ObjectFilter>
findByUuid
(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 List<ObjectFilter>
findByUuid
(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 List<ObjectFilter>
findByUuid_C
(String uuid, long companyId) Returns all the object filters where uuid = ? and companyId = ?.static List<ObjectFilter>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the object filters where uuid = ? and companyId = ?.static List<ObjectFilter>
findByUuid_C
(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 List<ObjectFilter>
findByUuid_C
(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_C_First
(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
(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, 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 ObjectFilter
findByUuid_First
(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
(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, 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 List<ObjectFilter>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<ObjectFilter>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static 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
static ObjectFilter
remove
(long objectFilterId) Removes the object filter with the primary key from the database.static void
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
(String uuid) Removes all the object filters where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the object filters where uuid = ? and companyId = ? 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)
-
Constructor Details
-
ObjectFilterUtil
public ObjectFilterUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<ObjectFilter> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<ObjectFilter> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<ObjectFilter> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static ObjectFilter update(ObjectFilter objectFilter, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the object filters where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching object filters
-
findByUuid
Returns a range of all the object filters where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectFilterModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of object filtersend
- the upper bound of the range of object filters (not inclusive)- Returns:
- the range of matching object filters
-
findByUuid
public static List<ObjectFilter> findByUuid(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectFilterModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching object filters
-
findByUuid
public static List<ObjectFilter> findByUuid(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectFilterModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching object filters
-
findByUuid_First
public static ObjectFilter findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) throws NoSuchObjectFilterException Returns the first object filter in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching object filter
- Throws:
NoSuchObjectFilterException
- if a matching object filter could not be foundNoSuchObjectFilterException
-
fetchByUuid_First
public static ObjectFilter fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) Returns the first object filter in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching object filter, or
null
if a matching object filter could not be found
-
findByUuid_Last
public static ObjectFilter findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) throws NoSuchObjectFilterException Returns the last object filter in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching object filter
- Throws:
NoSuchObjectFilterException
- if a matching object filter could not be foundNoSuchObjectFilterException
-
fetchByUuid_Last
public static ObjectFilter fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) Returns the last object filter in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching object filter, or
null
if a matching object filter could not be found
-
findByUuid_PrevAndNext
public static ObjectFilter[] findByUuid_PrevAndNext(long objectFilterId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) throws NoSuchObjectFilterException Returns the object filters before and after the current object filter in the ordered set where uuid = ?.- Parameters:
objectFilterId
- the primary key of the current object filteruuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next object filter
- Throws:
NoSuchObjectFilterException
- if a object filter with the primary key could not be foundNoSuchObjectFilterException
-
removeByUuid
Removes all the object filters where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of object filters where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching object filters
-
findByUuid_C
Returns all the object filters where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching object filters
-
findByUuid_C
Returns a range of all the object filters where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectFilterModelImpl
.- Parameters:
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)- Returns:
- the range of matching object filters
-
findByUuid_C
public static List<ObjectFilter> findByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectFilterModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching object filters
-
findByUuid_C
public static List<ObjectFilter> findByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectFilterModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching object filters
-
findByUuid_C_First
public static ObjectFilter findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) throws NoSuchObjectFilterException Returns the first object filter in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching object filter
- Throws:
NoSuchObjectFilterException
- if a matching object filter could not be foundNoSuchObjectFilterException
-
fetchByUuid_C_First
public static ObjectFilter fetchByUuid_C_First(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 = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching object filter, or
null
if a matching object filter could not be found
-
findByUuid_C_Last
public static ObjectFilter findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) throws NoSuchObjectFilterException Returns the last object filter in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching object filter
- Throws:
NoSuchObjectFilterException
- if a matching object filter could not be foundNoSuchObjectFilterException
-
fetchByUuid_C_Last
public static ObjectFilter fetchByUuid_C_Last(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 = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching object filter, or
null
if a matching object filter could not be found
-
findByUuid_C_PrevAndNext
public static ObjectFilter[] findByUuid_C_PrevAndNext(long objectFilterId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) throws NoSuchObjectFilterException Returns the object filters before and after the current object filter in the ordered set where uuid = ? and companyId = ?.- Parameters:
objectFilterId
- the primary key of the current object filteruuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next object filter
- Throws:
NoSuchObjectFilterException
- if a object filter with the primary key could not be foundNoSuchObjectFilterException
-
removeByUuid_C
Removes all the object filters where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of object filters where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching object filters
-
findByObjectFieldId
Returns all the object filters where objectFieldId = ?.- Parameters:
objectFieldId
- the object field ID- Returns:
- the matching object filters
-
findByObjectFieldId
Returns a range of all the object filters where objectFieldId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectFilterModelImpl
.- Parameters:
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)- Returns:
- the range of matching object filters
-
findByObjectFieldId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectFilterModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching object filters
-
findByObjectFieldId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectFilterModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching object filters
-
findByObjectFieldId_First
public static ObjectFilter findByObjectFieldId_First(long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) throws NoSuchObjectFilterException Returns the first object filter in the ordered set where objectFieldId = ?.- Parameters:
objectFieldId
- the object field IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching object filter
- Throws:
NoSuchObjectFilterException
- if a matching object filter could not be foundNoSuchObjectFilterException
-
fetchByObjectFieldId_First
public 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 = ?.- Parameters:
objectFieldId
- the object field IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching object filter, or
null
if a matching object filter could not be found
-
findByObjectFieldId_Last
public static ObjectFilter findByObjectFieldId_Last(long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) throws NoSuchObjectFilterException Returns the last object filter in the ordered set where objectFieldId = ?.- Parameters:
objectFieldId
- the object field IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching object filter
- Throws:
NoSuchObjectFilterException
- if a matching object filter could not be foundNoSuchObjectFilterException
-
fetchByObjectFieldId_Last
public 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 = ?.- Parameters:
objectFieldId
- the object field IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching object filter, or
null
if a matching object filter could not be found
-
findByObjectFieldId_PrevAndNext
public static ObjectFilter[] findByObjectFieldId_PrevAndNext(long objectFilterId, long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) throws NoSuchObjectFilterException Returns the object filters before and after the current object filter in the ordered set where objectFieldId = ?.- Parameters:
objectFilterId
- the primary key of the current object filterobjectFieldId
- the object field IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next object filter
- Throws:
NoSuchObjectFilterException
- if a object filter with the primary key could not be foundNoSuchObjectFilterException
-
removeByObjectFieldId
public static void removeByObjectFieldId(long objectFieldId) Removes all the object filters where objectFieldId = ? from the database.- Parameters:
objectFieldId
- the object field ID
-
countByObjectFieldId
public static int countByObjectFieldId(long objectFieldId) Returns the number of object filters where objectFieldId = ?.- Parameters:
objectFieldId
- the object field ID- Returns:
- the number of matching object filters
-
cacheResult
Caches the object filter in the entity cache if it is enabled.- Parameters:
objectFilter
- the object filter
-
cacheResult
Caches the object filters in the entity cache if it is enabled.- Parameters:
objectFilters
- the object filters
-
create
Creates a new object filter with the primary key. Does not add the object filter to the database.- Parameters:
objectFilterId
- the primary key for the new object filter- Returns:
- the new object filter
-
remove
Removes the object filter with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
objectFilterId
- the primary key of the object filter- Returns:
- the object filter that was removed
- Throws:
NoSuchObjectFilterException
- if a object filter with the primary key could not be foundNoSuchObjectFilterException
-
updateImpl
-
findByPrimaryKey
Returns the object filter with the primary key or throws aNoSuchObjectFilterException
if it could not be found.- Parameters:
objectFilterId
- the primary key of the object filter- Returns:
- the object filter
- Throws:
NoSuchObjectFilterException
- if a object filter with the primary key could not be foundNoSuchObjectFilterException
-
fetchByPrimaryKey
Returns the object filter with the primary key or returnsnull
if it could not be found.- Parameters:
objectFilterId
- the primary key of the object filter- Returns:
- the object filter, or
null
if a object filter with the primary key could not be found
-
findAll
Returns all the object filters.- Returns:
- the object filters
-
findAll
Returns a range of all the object filters.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectFilterModelImpl
.- Parameters:
start
- the lower bound of the range of object filtersend
- the upper bound of the range of object filters (not inclusive)- Returns:
- the range of object filters
-
findAll
public static List<ObjectFilter> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFilter> orderByComparator) Returns an ordered range of all the object filters.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectFilterModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of object filters
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromObjectFilterModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of object filters
-
removeAll
public static void removeAll()Removes all the object filters from the database. -
countAll
public static int countAll()Returns the number of object filters.- Returns:
- the number of object filters
-
getPersistence
-
setPersistence
-