Class ObjectFieldSettingUtil
com.liferay.object.service.persistence.impl.ObjectFieldSettingPersistenceImpl 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 voidcacheResult(ObjectFieldSetting objectFieldSetting) Caches the object field setting in the entity cache if it is enabled.static voidcacheResult(List<ObjectFieldSetting> objectFieldSettings) Caches the object field settings in the entity cache if it is enabled.static voidstatic voidclearCache(ObjectFieldSetting objectFieldSetting) static intcountAll()Returns the number of object field settings.static intcountByObjectFieldId(long objectFieldId) Returns the number of object field settings where objectFieldId = ?.static intcountByOFI_N(long objectFieldId, String name) Returns the number of object field settings where objectFieldId = ? and name = ?.static intcountByUuid(String uuid) Returns the number of object field settings where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of object field settings where uuid = ? and companyId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static ObjectFieldSettingcreate(long objectFieldSettingId) Creates a new object field setting with the primary key.static ObjectFieldSettingfetchByObjectFieldId_First(long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the first object field setting in the ordered set where objectFieldId = ?.static ObjectFieldSettingfetchByObjectFieldId_Last(long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the last object field setting in the ordered set where objectFieldId = ?.static ObjectFieldSettingfetchByOFI_N(long objectFieldId, String name) Returns the object field setting where objectFieldId = ? and name = ? or returnsnullif it could not be found.static ObjectFieldSettingfetchByOFI_N(long objectFieldId, String name, boolean useFinderCache) Returns the object field setting where objectFieldId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.static ObjectFieldSettingfetchByPrimaryKey(long objectFieldSettingId) Returns the object field setting with the primary key or returnsnullif it could not be found.static Map<Serializable,ObjectFieldSetting> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static ObjectFieldSettingfetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the first object field setting in the ordered set where uuid = ? and companyId = ?.static ObjectFieldSettingfetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the last object field setting in the ordered set where uuid = ? and companyId = ?.static ObjectFieldSettingfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the first object field setting in the ordered set where uuid = ?.static ObjectFieldSettingfetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the last object field setting in the ordered set where uuid = ?.static List<ObjectFieldSetting>findAll()Returns all the object field settings.static List<ObjectFieldSetting>findAll(int start, int end) Returns a range of all the object field settings.static List<ObjectFieldSetting>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns an ordered range of all the object field settings.static List<ObjectFieldSetting>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object field settings.static List<ObjectFieldSetting>findByObjectFieldId(long objectFieldId) Returns all the object field settings where objectFieldId = ?.static List<ObjectFieldSetting>findByObjectFieldId(long objectFieldId, int start, int end) Returns a range of all the object field settings where objectFieldId = ?.static List<ObjectFieldSetting>findByObjectFieldId(long objectFieldId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns an ordered range of all the object field settings where objectFieldId = ?.static List<ObjectFieldSetting>findByObjectFieldId(long objectFieldId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object field settings where objectFieldId = ?.static ObjectFieldSettingfindByObjectFieldId_First(long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the first object field setting in the ordered set where objectFieldId = ?.static ObjectFieldSettingfindByObjectFieldId_Last(long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the last object field setting in the ordered set where objectFieldId = ?.static ObjectFieldSetting[]findByObjectFieldId_PrevAndNext(long objectFieldSettingId, long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the object field settings before and after the current object field setting in the ordered set where objectFieldId = ?.static ObjectFieldSettingfindByOFI_N(long objectFieldId, String name) Returns the object field setting where objectFieldId = ? and name = ? or throws aNoSuchObjectFieldSettingExceptionif it could not be found.static ObjectFieldSettingfindByPrimaryKey(long objectFieldSettingId) Returns the object field setting with the primary key or throws aNoSuchObjectFieldSettingExceptionif it could not be found.static List<ObjectFieldSetting>findByUuid(String uuid) Returns all the object field settings where uuid = ?.static List<ObjectFieldSetting>findByUuid(String uuid, int start, int end) Returns a range of all the object field settings where uuid = ?.static List<ObjectFieldSetting>findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns an ordered range of all the object field settings where uuid = ?.static List<ObjectFieldSetting>findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object field settings where uuid = ?.static List<ObjectFieldSetting>findByUuid_C(String uuid, long companyId) Returns all the object field settings where uuid = ? and companyId = ?.static List<ObjectFieldSetting>findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the object field settings where uuid = ? and companyId = ?.static List<ObjectFieldSetting>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns an ordered range of all the object field settings where uuid = ? and companyId = ?.static List<ObjectFieldSetting>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object field settings where uuid = ? and companyId = ?.static ObjectFieldSettingfindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the first object field setting in the ordered set where uuid = ? and companyId = ?.static ObjectFieldSettingfindByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the last object field setting in the ordered set where uuid = ? and companyId = ?.static ObjectFieldSetting[]findByUuid_C_PrevAndNext(long objectFieldSettingId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the object field settings before and after the current object field setting in the ordered set where uuid = ? and companyId = ?.static ObjectFieldSettingfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the first object field setting in the ordered set where uuid = ?.static ObjectFieldSettingfindByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the last object field setting in the ordered set where uuid = ?.static ObjectFieldSetting[]findByUuid_PrevAndNext(long objectFieldSettingId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the object field settings before and after the current object field setting in the ordered set where uuid = ?.static List<ObjectFieldSetting>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<ObjectFieldSetting>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<ObjectFieldSetting>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) static ObjectFieldSettingremove(long objectFieldSettingId) Removes the object field setting with the primary key from the database.static voidRemoves all the object field settings from the database.static voidremoveByObjectFieldId(long objectFieldId) Removes all the object field settings where objectFieldId = ? from the database.static ObjectFieldSettingremoveByOFI_N(long objectFieldId, String name) Removes the object field setting where objectFieldId = ? and name = ? from the database.static voidremoveByUuid(String uuid) Removes all the object field settings where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the object field settings where uuid = ? and companyId = ? from the database.static voidsetPersistence(ObjectFieldSettingPersistence persistence) static ObjectFieldSettingupdate(ObjectFieldSetting objectFieldSetting) static ObjectFieldSettingupdate(ObjectFieldSetting objectFieldSetting, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectFieldSettingupdateImpl(ObjectFieldSetting objectFieldSetting)
-
Constructor Details
-
ObjectFieldSettingUtil
public ObjectFieldSettingUtil()
-
-
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
public static Map<Serializable,ObjectFieldSetting> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<ObjectFieldSetting> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<ObjectFieldSetting> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<ObjectFieldSetting> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static ObjectFieldSetting update(ObjectFieldSetting objectFieldSetting, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the object field settings where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching object field settings
-
findByUuid
Returns a range of all the object field settings where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFieldSettingModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of object field settingsend- the upper bound of the range of object field settings (not inclusive)- Returns:
- the range of matching object field settings
-
findByUuid
public static List<ObjectFieldSetting> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns an ordered range of all the object field settings where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFieldSettingModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of object field settingsend- the upper bound of the range of object field settings (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching object field settings
-
findByUuid
public static List<ObjectFieldSetting> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object field settings where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFieldSettingModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of object field settingsend- the upper bound of the range of object field settings (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 field settings
-
findByUuid_First
public static ObjectFieldSetting findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) throws NoSuchObjectFieldSettingException Returns the first object field setting in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching object field setting
- Throws:
NoSuchObjectFieldSettingException- if a matching object field setting could not be foundNoSuchObjectFieldSettingException
-
fetchByUuid_First
public static ObjectFieldSetting fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the first object field setting in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching object field setting, or
nullif a matching object field setting could not be found
-
findByUuid_Last
public static ObjectFieldSetting findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) throws NoSuchObjectFieldSettingException Returns the last object field setting in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching object field setting
- Throws:
NoSuchObjectFieldSettingException- if a matching object field setting could not be foundNoSuchObjectFieldSettingException
-
fetchByUuid_Last
public static ObjectFieldSetting fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the last object field setting in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching object field setting, or
nullif a matching object field setting could not be found
-
findByUuid_PrevAndNext
public static ObjectFieldSetting[] findByUuid_PrevAndNext(long objectFieldSettingId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) throws NoSuchObjectFieldSettingException Returns the object field settings before and after the current object field setting in the ordered set where uuid = ?.- Parameters:
objectFieldSettingId- the primary key of the current object field settinguuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next object field setting
- Throws:
NoSuchObjectFieldSettingException- if a object field setting with the primary key could not be foundNoSuchObjectFieldSettingException
-
removeByUuid
Removes all the object field settings where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of object field settings where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching object field settings
-
findByUuid_C
Returns all the object field settings where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching object field settings
-
findByUuid_C
public static List<ObjectFieldSetting> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the object field settings where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFieldSettingModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of object field settingsend- the upper bound of the range of object field settings (not inclusive)- Returns:
- the range of matching object field settings
-
findByUuid_C
public static List<ObjectFieldSetting> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns an ordered range of all the object field settings where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFieldSettingModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of object field settingsend- the upper bound of the range of object field settings (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching object field settings
-
findByUuid_C
public static List<ObjectFieldSetting> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object field settings where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFieldSettingModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of object field settingsend- the upper bound of the range of object field settings (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 field settings
-
findByUuid_C_First
public static ObjectFieldSetting findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) throws NoSuchObjectFieldSettingException Returns the first object field setting 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 field setting
- Throws:
NoSuchObjectFieldSettingException- if a matching object field setting could not be foundNoSuchObjectFieldSettingException
-
fetchByUuid_C_First
public static ObjectFieldSetting fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the first object field setting 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 field setting, or
nullif a matching object field setting could not be found
-
findByUuid_C_Last
public static ObjectFieldSetting findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) throws NoSuchObjectFieldSettingException Returns the last object field setting 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 field setting
- Throws:
NoSuchObjectFieldSettingException- if a matching object field setting could not be foundNoSuchObjectFieldSettingException
-
fetchByUuid_C_Last
public static ObjectFieldSetting fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the last object field setting 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 field setting, or
nullif a matching object field setting could not be found
-
findByUuid_C_PrevAndNext
public static ObjectFieldSetting[] findByUuid_C_PrevAndNext(long objectFieldSettingId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) throws NoSuchObjectFieldSettingException Returns the object field settings before and after the current object field setting in the ordered set where uuid = ? and companyId = ?.- Parameters:
objectFieldSettingId- the primary key of the current object field settinguuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next object field setting
- Throws:
NoSuchObjectFieldSettingException- if a object field setting with the primary key could not be foundNoSuchObjectFieldSettingException
-
removeByUuid_C
Removes all the object field settings where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of object field settings where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching object field settings
-
findByObjectFieldId
Returns all the object field settings where objectFieldId = ?.- Parameters:
objectFieldId- the object field ID- Returns:
- the matching object field settings
-
findByObjectFieldId
Returns a range of all the object field settings where objectFieldId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFieldSettingModelImpl.- Parameters:
objectFieldId- the object field IDstart- the lower bound of the range of object field settingsend- the upper bound of the range of object field settings (not inclusive)- Returns:
- the range of matching object field settings
-
findByObjectFieldId
public static List<ObjectFieldSetting> findByObjectFieldId(long objectFieldId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns an ordered range of all the object field settings where objectFieldId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFieldSettingModelImpl.- Parameters:
objectFieldId- the object field IDstart- the lower bound of the range of object field settingsend- the upper bound of the range of object field settings (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching object field settings
-
findByObjectFieldId
public static List<ObjectFieldSetting> findByObjectFieldId(long objectFieldId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object field settings where objectFieldId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFieldSettingModelImpl.- Parameters:
objectFieldId- the object field IDstart- the lower bound of the range of object field settingsend- the upper bound of the range of object field settings (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 field settings
-
findByObjectFieldId_First
public static ObjectFieldSetting findByObjectFieldId_First(long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) throws NoSuchObjectFieldSettingException Returns the first object field setting 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 field setting
- Throws:
NoSuchObjectFieldSettingException- if a matching object field setting could not be foundNoSuchObjectFieldSettingException
-
fetchByObjectFieldId_First
public static ObjectFieldSetting fetchByObjectFieldId_First(long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the first object field setting 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 field setting, or
nullif a matching object field setting could not be found
-
findByObjectFieldId_Last
public static ObjectFieldSetting findByObjectFieldId_Last(long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) throws NoSuchObjectFieldSettingException Returns the last object field setting 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 field setting
- Throws:
NoSuchObjectFieldSettingException- if a matching object field setting could not be foundNoSuchObjectFieldSettingException
-
fetchByObjectFieldId_Last
public static ObjectFieldSetting fetchByObjectFieldId_Last(long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns the last object field setting 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 field setting, or
nullif a matching object field setting could not be found
-
findByObjectFieldId_PrevAndNext
public static ObjectFieldSetting[] findByObjectFieldId_PrevAndNext(long objectFieldSettingId, long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) throws NoSuchObjectFieldSettingException Returns the object field settings before and after the current object field setting in the ordered set where objectFieldId = ?.- Parameters:
objectFieldSettingId- the primary key of the current object field settingobjectFieldId- the object field IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next object field setting
- Throws:
NoSuchObjectFieldSettingException- if a object field setting with the primary key could not be foundNoSuchObjectFieldSettingException
-
removeByObjectFieldId
public static void removeByObjectFieldId(long objectFieldId) Removes all the object field settings where objectFieldId = ? from the database.- Parameters:
objectFieldId- the object field ID
-
countByObjectFieldId
public static int countByObjectFieldId(long objectFieldId) Returns the number of object field settings where objectFieldId = ?.- Parameters:
objectFieldId- the object field ID- Returns:
- the number of matching object field settings
-
findByOFI_N
public static ObjectFieldSetting findByOFI_N(long objectFieldId, String name) throws NoSuchObjectFieldSettingException Returns the object field setting where objectFieldId = ? and name = ? or throws aNoSuchObjectFieldSettingExceptionif it could not be found.- Parameters:
objectFieldId- the object field IDname- the name- Returns:
- the matching object field setting
- Throws:
NoSuchObjectFieldSettingException- if a matching object field setting could not be foundNoSuchObjectFieldSettingException
-
fetchByOFI_N
Returns the object field setting where objectFieldId = ? and name = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
objectFieldId- the object field IDname- the name- Returns:
- the matching object field setting, or
nullif a matching object field setting could not be found
-
fetchByOFI_N
public static ObjectFieldSetting fetchByOFI_N(long objectFieldId, String name, boolean useFinderCache) Returns the object field setting where objectFieldId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
objectFieldId- the object field IDname- the nameuseFinderCache- whether to use the finder cache- Returns:
- the matching object field setting, or
nullif a matching object field setting could not be found
-
removeByOFI_N
public static ObjectFieldSetting removeByOFI_N(long objectFieldId, String name) throws NoSuchObjectFieldSettingException Removes the object field setting where objectFieldId = ? and name = ? from the database.- Parameters:
objectFieldId- the object field IDname- the name- Returns:
- the object field setting that was removed
- Throws:
NoSuchObjectFieldSettingException
-
countByOFI_N
Returns the number of object field settings where objectFieldId = ? and name = ?.- Parameters:
objectFieldId- the object field IDname- the name- Returns:
- the number of matching object field settings
-
cacheResult
Caches the object field setting in the entity cache if it is enabled.- Parameters:
objectFieldSetting- the object field setting
-
cacheResult
Caches the object field settings in the entity cache if it is enabled.- Parameters:
objectFieldSettings- the object field settings
-
create
Creates a new object field setting with the primary key. Does not add the object field setting to the database.- Parameters:
objectFieldSettingId- the primary key for the new object field setting- Returns:
- the new object field setting
-
remove
public static ObjectFieldSetting remove(long objectFieldSettingId) throws NoSuchObjectFieldSettingException Removes the object field setting with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
objectFieldSettingId- the primary key of the object field setting- Returns:
- the object field setting that was removed
- Throws:
NoSuchObjectFieldSettingException- if a object field setting with the primary key could not be foundNoSuchObjectFieldSettingException
-
updateImpl
-
findByPrimaryKey
public static ObjectFieldSetting findByPrimaryKey(long objectFieldSettingId) throws NoSuchObjectFieldSettingException Returns the object field setting with the primary key or throws aNoSuchObjectFieldSettingExceptionif it could not be found.- Parameters:
objectFieldSettingId- the primary key of the object field setting- Returns:
- the object field setting
- Throws:
NoSuchObjectFieldSettingException- if a object field setting with the primary key could not be foundNoSuchObjectFieldSettingException
-
fetchByPrimaryKey
Returns the object field setting with the primary key or returnsnullif it could not be found.- Parameters:
objectFieldSettingId- the primary key of the object field setting- Returns:
- the object field setting, or
nullif a object field setting with the primary key could not be found
-
findAll
Returns all the object field settings.- Returns:
- the object field settings
-
findAll
Returns a range of all the object field settings.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFieldSettingModelImpl.- Parameters:
start- the lower bound of the range of object field settingsend- the upper bound of the range of object field settings (not inclusive)- Returns:
- the range of object field settings
-
findAll
public static List<ObjectFieldSetting> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) Returns an ordered range of all the object field settings.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFieldSettingModelImpl.- Parameters:
start- the lower bound of the range of object field settingsend- the upper bound of the range of object field settings (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of object field settings
-
findAll
public static List<ObjectFieldSetting> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object field settings.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFieldSettingModelImpl.- Parameters:
start- the lower bound of the range of object field settingsend- the upper bound of the range of object field settings (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of object field settings
-
removeAll
public static void removeAll()Removes all the object field settings from the database. -
countAll
public static int countAll()Returns the number of object field settings.- Returns:
- the number of object field settings
-
getPersistence
-
setPersistence
-