public class ObjectFieldSettingUtil
extends java.lang.Object
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
ObjectFieldSettingPersistence
Constructor and Description |
---|
ObjectFieldSettingUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<ObjectFieldSetting> objectFieldSettings)
Caches the object field settings in the entity cache if it is enabled.
|
static void |
cacheResult(ObjectFieldSetting objectFieldSetting)
Caches the object field setting in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ObjectFieldSetting objectFieldSetting) |
static int |
countAll()
Returns the number of object field settings.
|
static int |
countByObjectFieldId(long objectFieldId)
Returns the number of object field settings where objectFieldId = ?.
|
static int |
countByOFI_N(long objectFieldId,
java.lang.String name)
Returns the number of object field settings where objectFieldId = ? and name = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of object field settings where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of object field settings where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static ObjectFieldSetting |
create(long objectFieldSettingId)
Creates a new object field setting with the primary key.
|
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 = ?.
|
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 = ?.
|
static ObjectFieldSetting |
fetchByOFI_N(long objectFieldId,
java.lang.String name)
Returns the object field setting where objectFieldId = ? and name = ? or returns
null if it could not be found. |
static ObjectFieldSetting |
fetchByOFI_N(long objectFieldId,
java.lang.String name,
boolean useFinderCache)
Returns the object field setting where objectFieldId = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
static ObjectFieldSetting |
fetchByPrimaryKey(long objectFieldSettingId)
Returns the object field setting with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ObjectFieldSetting> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static ObjectFieldSetting |
fetchByUuid_C_First(java.lang.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 ObjectFieldSetting |
fetchByUuid_C_Last(java.lang.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 |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator)
Returns the first object field setting in the ordered set where uuid = ?.
|
static ObjectFieldSetting |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator)
Returns the last object field setting in the ordered set where uuid = ?.
|
static java.util.List<ObjectFieldSetting> |
findAll()
Returns all the object field settings.
|
static java.util.List<ObjectFieldSetting> |
findAll(int start,
int end)
Returns a range of all the object field settings.
|
static java.util.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 java.util.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 ObjectFieldSetting |
findByObjectFieldId_First(long objectFieldId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator)
Returns the first object field setting in the ordered set where objectFieldId = ?.
|
static ObjectFieldSetting |
findByObjectFieldId_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 java.util.List<ObjectFieldSetting> |
findByObjectFieldId(long objectFieldId)
Returns all the object field settings where objectFieldId = ?.
|
static java.util.List<ObjectFieldSetting> |
findByObjectFieldId(long objectFieldId,
int start,
int end)
Returns a range of all the object field settings where objectFieldId = ?.
|
static java.util.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 java.util.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 ObjectFieldSetting |
findByOFI_N(long objectFieldId,
java.lang.String name)
Returns the object field setting where objectFieldId = ? and name = ? or throws a
NoSuchObjectFieldSettingException if it could not be found. |
static ObjectFieldSetting |
findByPrimaryKey(long objectFieldSettingId)
Returns the object field setting with the primary key or throws a
NoSuchObjectFieldSettingException if it could not be found. |
static ObjectFieldSetting |
findByUuid_C_First(java.lang.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 ObjectFieldSetting |
findByUuid_C_Last(java.lang.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,
java.lang.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 java.util.List<ObjectFieldSetting> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the object field settings where uuid = ? and companyId = ?.
|
static java.util.List<ObjectFieldSetting> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the object field settings where uuid = ? and companyId = ?.
|
static java.util.List<ObjectFieldSetting> |
findByUuid_C(java.lang.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 java.util.List<ObjectFieldSetting> |
findByUuid_C(java.lang.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 ObjectFieldSetting |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator)
Returns the first object field setting in the ordered set where uuid = ?.
|
static ObjectFieldSetting |
findByUuid_Last(java.lang.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,
java.lang.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 java.util.List<ObjectFieldSetting> |
findByUuid(java.lang.String uuid)
Returns all the object field settings where uuid = ?.
|
static java.util.List<ObjectFieldSetting> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the object field settings where uuid = ?.
|
static java.util.List<ObjectFieldSetting> |
findByUuid(java.lang.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 java.util.List<ObjectFieldSetting> |
findByUuid(java.lang.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 java.util.List<ObjectFieldSetting> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<ObjectFieldSetting> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ObjectFieldSetting> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) |
static ObjectFieldSettingPersistence |
getPersistence() |
static ObjectFieldSetting |
remove(long objectFieldSettingId)
Removes the object field setting with the primary key from the database.
|
static void |
removeAll()
Removes all the object field settings from the database.
|
static void |
removeByObjectFieldId(long objectFieldId)
Removes all the object field settings where objectFieldId = ? from the database.
|
static ObjectFieldSetting |
removeByOFI_N(long objectFieldId,
java.lang.String name)
Removes the object field setting where objectFieldId = ? and name = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the object field settings where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the object field settings where uuid = ? from the database.
|
static ObjectFieldSetting |
update(ObjectFieldSetting objectFieldSetting) |
static ObjectFieldSetting |
update(ObjectFieldSetting objectFieldSetting,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ObjectFieldSetting |
updateImpl(ObjectFieldSetting objectFieldSetting) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ObjectFieldSetting objectFieldSetting)
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,ObjectFieldSetting> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<ObjectFieldSetting> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<ObjectFieldSetting> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<ObjectFieldSetting> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ObjectFieldSetting update(ObjectFieldSetting objectFieldSetting)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static ObjectFieldSetting update(ObjectFieldSetting objectFieldSetting, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<ObjectFieldSetting> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ObjectFieldSetting> 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 ObjectFieldSettingModelImpl
.
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)public static java.util.List<ObjectFieldSetting> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> 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 ObjectFieldSettingModelImpl
.
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 (optionally null
)public static java.util.List<ObjectFieldSetting> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> 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 ObjectFieldSettingModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectFieldSetting findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) throws NoSuchObjectFieldSettingException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldSettingException
- if a matching object field setting could not be foundpublic static ObjectFieldSetting fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object field setting could not be foundpublic static ObjectFieldSetting findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) throws NoSuchObjectFieldSettingException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldSettingException
- if a matching object field setting could not be foundpublic static ObjectFieldSetting fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object field setting could not be foundpublic static ObjectFieldSetting[] findByUuid_PrevAndNext(long objectFieldSettingId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) throws NoSuchObjectFieldSettingException
objectFieldSettingId
- the primary key of the current object field settinguuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldSettingException
- if a object field setting 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<ObjectFieldSetting> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ObjectFieldSetting> 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 ObjectFieldSettingModelImpl
.
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)public static java.util.List<ObjectFieldSetting> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> 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 ObjectFieldSettingModelImpl
.
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 (optionally null
)public static java.util.List<ObjectFieldSetting> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> 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 ObjectFieldSettingModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectFieldSetting findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) throws NoSuchObjectFieldSettingException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldSettingException
- if a matching object field setting could not be foundpublic static ObjectFieldSetting fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object field setting could not be foundpublic static ObjectFieldSetting findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) throws NoSuchObjectFieldSettingException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldSettingException
- if a matching object field setting could not be foundpublic static ObjectFieldSetting fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object field setting could not be foundpublic static ObjectFieldSetting[] findByUuid_C_PrevAndNext(long objectFieldSettingId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) throws NoSuchObjectFieldSettingException
objectFieldSettingId
- the primary key of the current object field settinguuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldSettingException
- if a object field setting 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<ObjectFieldSetting> findByObjectFieldId(long objectFieldId)
objectFieldId
- the object field IDpublic static java.util.List<ObjectFieldSetting> 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 ObjectFieldSettingModelImpl
.
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)public static java.util.List<ObjectFieldSetting> findByObjectFieldId(long objectFieldId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> 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 ObjectFieldSettingModelImpl
.
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 (optionally null
)public static java.util.List<ObjectFieldSetting> findByObjectFieldId(long objectFieldId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> 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 ObjectFieldSettingModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectFieldSetting findByObjectFieldId_First(long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) throws NoSuchObjectFieldSettingException
objectFieldId
- the object field IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldSettingException
- if a matching object field setting could not be foundpublic static ObjectFieldSetting fetchByObjectFieldId_First(long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator)
objectFieldId
- the object field IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object field setting could not be foundpublic static ObjectFieldSetting findByObjectFieldId_Last(long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) throws NoSuchObjectFieldSettingException
objectFieldId
- the object field IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldSettingException
- if a matching object field setting could not be foundpublic static ObjectFieldSetting fetchByObjectFieldId_Last(long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator)
objectFieldId
- the object field IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object field setting could not be foundpublic static ObjectFieldSetting[] findByObjectFieldId_PrevAndNext(long objectFieldSettingId, long objectFieldId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> orderByComparator) throws NoSuchObjectFieldSettingException
objectFieldSettingId
- the primary key of the current object field settingobjectFieldId
- the object field IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldSettingException
- if a object field setting 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 ObjectFieldSetting findByOFI_N(long objectFieldId, java.lang.String name) throws NoSuchObjectFieldSettingException
NoSuchObjectFieldSettingException
if it could not be found.objectFieldId
- the object field IDname
- the nameNoSuchObjectFieldSettingException
- if a matching object field setting could not be foundpublic static ObjectFieldSetting fetchByOFI_N(long objectFieldId, java.lang.String name)
null
if it could not be found. Uses the finder cache.objectFieldId
- the object field IDname
- the namenull
if a matching object field setting could not be foundpublic static ObjectFieldSetting fetchByOFI_N(long objectFieldId, java.lang.String name, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.objectFieldId
- the object field IDname
- the nameuseFinderCache
- whether to use the finder cachenull
if a matching object field setting could not be foundpublic static ObjectFieldSetting removeByOFI_N(long objectFieldId, java.lang.String name) throws NoSuchObjectFieldSettingException
objectFieldId
- the object field IDname
- the nameNoSuchObjectFieldSettingException
public static int countByOFI_N(long objectFieldId, java.lang.String name)
objectFieldId
- the object field IDname
- the namepublic static void cacheResult(ObjectFieldSetting objectFieldSetting)
objectFieldSetting
- the object field settingpublic static void cacheResult(java.util.List<ObjectFieldSetting> objectFieldSettings)
objectFieldSettings
- the object field settingspublic static ObjectFieldSetting create(long objectFieldSettingId)
objectFieldSettingId
- the primary key for the new object field settingpublic static ObjectFieldSetting remove(long objectFieldSettingId) throws NoSuchObjectFieldSettingException
objectFieldSettingId
- the primary key of the object field settingNoSuchObjectFieldSettingException
- if a object field setting with the primary key could not be foundpublic static ObjectFieldSetting updateImpl(ObjectFieldSetting objectFieldSetting)
public static ObjectFieldSetting findByPrimaryKey(long objectFieldSettingId) throws NoSuchObjectFieldSettingException
NoSuchObjectFieldSettingException
if it could not be found.objectFieldSettingId
- the primary key of the object field settingNoSuchObjectFieldSettingException
- if a object field setting with the primary key could not be foundpublic static ObjectFieldSetting fetchByPrimaryKey(long objectFieldSettingId)
null
if it could not be found.objectFieldSettingId
- the primary key of the object field settingnull
if a object field setting with the primary key could not be foundpublic static java.util.List<ObjectFieldSetting> findAll()
public static java.util.List<ObjectFieldSetting> 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 ObjectFieldSettingModelImpl
.
start
- the lower bound of the range of object field settingsend
- the upper bound of the range of object field settings (not inclusive)public static java.util.List<ObjectFieldSetting> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> 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 ObjectFieldSettingModelImpl
.
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 (optionally null
)public static java.util.List<ObjectFieldSetting> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFieldSetting> 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 ObjectFieldSettingModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static ObjectFieldSettingPersistence getPersistence()