public class ObjectFieldUtil
extends java.lang.Object
com.liferay.object.service.persistence.impl.ObjectFieldPersistenceImpl
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
ObjectFieldPersistence
Constructor and Description |
---|
ObjectFieldUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<ObjectField> objectFields)
Caches the object fields in the entity cache if it is enabled.
|
static void |
cacheResult(ObjectField objectField)
Caches the object field in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ObjectField objectField) |
static int |
countAll()
Returns the number of object fields.
|
static int |
countByListTypeDefinitionId(long listTypeDefinitionId)
Returns the number of object fields where listTypeDefinitionId = ?.
|
static int |
countByObjectDefinitionId(long objectDefinitionId)
Returns the number of object fields where objectDefinitionId = ?.
|
static int |
countByODI_DTN(long objectDefinitionId,
java.lang.String dbTableName)
Returns the number of object fields where objectDefinitionId = ? and dbTableName = ?.
|
static int |
countByODI_N(long objectDefinitionId,
java.lang.String name)
Returns the number of object fields where objectDefinitionId = ? and name = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of object fields where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of object fields where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static ObjectField |
create(long objectFieldId)
Creates a new object field with the primary key.
|
static ObjectField |
fetchByListTypeDefinitionId_First(long listTypeDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the first object field in the ordered set where listTypeDefinitionId = ?.
|
static ObjectField |
fetchByListTypeDefinitionId_Last(long listTypeDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the last object field in the ordered set where listTypeDefinitionId = ?.
|
static ObjectField |
fetchByObjectDefinitionId_First(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the first object field in the ordered set where objectDefinitionId = ?.
|
static ObjectField |
fetchByObjectDefinitionId_Last(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the last object field in the ordered set where objectDefinitionId = ?.
|
static ObjectField |
fetchByODI_DTN_First(long objectDefinitionId,
java.lang.String dbTableName,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the first object field in the ordered set where objectDefinitionId = ? and dbTableName = ?.
|
static ObjectField |
fetchByODI_DTN_Last(long objectDefinitionId,
java.lang.String dbTableName,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the last object field in the ordered set where objectDefinitionId = ? and dbTableName = ?.
|
static ObjectField |
fetchByODI_N(long objectDefinitionId,
java.lang.String name)
Returns the object field where objectDefinitionId = ? and name = ? or returns
null if it could not be found. |
static ObjectField |
fetchByODI_N(long objectDefinitionId,
java.lang.String name,
boolean useFinderCache)
Returns the object field where objectDefinitionId = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
static ObjectField |
fetchByPrimaryKey(long objectFieldId)
Returns the object field with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ObjectField> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static ObjectField |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the first object field in the ordered set where uuid = ? and companyId = ?.
|
static ObjectField |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the last object field in the ordered set where uuid = ? and companyId = ?.
|
static ObjectField |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the first object field in the ordered set where uuid = ?.
|
static ObjectField |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the last object field in the ordered set where uuid = ?.
|
static java.util.List<ObjectField> |
findAll()
Returns all the object fields.
|
static java.util.List<ObjectField> |
findAll(int start,
int end)
Returns a range of all the object fields.
|
static java.util.List<ObjectField> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns an ordered range of all the object fields.
|
static java.util.List<ObjectField> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object fields.
|
static ObjectField |
findByListTypeDefinitionId_First(long listTypeDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the first object field in the ordered set where listTypeDefinitionId = ?.
|
static ObjectField |
findByListTypeDefinitionId_Last(long listTypeDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the last object field in the ordered set where listTypeDefinitionId = ?.
|
static ObjectField[] |
findByListTypeDefinitionId_PrevAndNext(long objectFieldId,
long listTypeDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the object fields before and after the current object field in the ordered set where listTypeDefinitionId = ?.
|
static java.util.List<ObjectField> |
findByListTypeDefinitionId(long listTypeDefinitionId)
Returns all the object fields where listTypeDefinitionId = ?.
|
static java.util.List<ObjectField> |
findByListTypeDefinitionId(long listTypeDefinitionId,
int start,
int end)
Returns a range of all the object fields where listTypeDefinitionId = ?.
|
static java.util.List<ObjectField> |
findByListTypeDefinitionId(long listTypeDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns an ordered range of all the object fields where listTypeDefinitionId = ?.
|
static java.util.List<ObjectField> |
findByListTypeDefinitionId(long listTypeDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object fields where listTypeDefinitionId = ?.
|
static ObjectField |
findByObjectDefinitionId_First(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the first object field in the ordered set where objectDefinitionId = ?.
|
static ObjectField |
findByObjectDefinitionId_Last(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the last object field in the ordered set where objectDefinitionId = ?.
|
static ObjectField[] |
findByObjectDefinitionId_PrevAndNext(long objectFieldId,
long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the object fields before and after the current object field in the ordered set where objectDefinitionId = ?.
|
static java.util.List<ObjectField> |
findByObjectDefinitionId(long objectDefinitionId)
Returns all the object fields where objectDefinitionId = ?.
|
static java.util.List<ObjectField> |
findByObjectDefinitionId(long objectDefinitionId,
int start,
int end)
Returns a range of all the object fields where objectDefinitionId = ?.
|
static java.util.List<ObjectField> |
findByObjectDefinitionId(long objectDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns an ordered range of all the object fields where objectDefinitionId = ?.
|
static java.util.List<ObjectField> |
findByObjectDefinitionId(long objectDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object fields where objectDefinitionId = ?.
|
static ObjectField |
findByODI_DTN_First(long objectDefinitionId,
java.lang.String dbTableName,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the first object field in the ordered set where objectDefinitionId = ? and dbTableName = ?.
|
static ObjectField |
findByODI_DTN_Last(long objectDefinitionId,
java.lang.String dbTableName,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the last object field in the ordered set where objectDefinitionId = ? and dbTableName = ?.
|
static ObjectField[] |
findByODI_DTN_PrevAndNext(long objectFieldId,
long objectDefinitionId,
java.lang.String dbTableName,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the object fields before and after the current object field in the ordered set where objectDefinitionId = ? and dbTableName = ?.
|
static java.util.List<ObjectField> |
findByODI_DTN(long objectDefinitionId,
java.lang.String dbTableName)
Returns all the object fields where objectDefinitionId = ? and dbTableName = ?.
|
static java.util.List<ObjectField> |
findByODI_DTN(long objectDefinitionId,
java.lang.String dbTableName,
int start,
int end)
Returns a range of all the object fields where objectDefinitionId = ? and dbTableName = ?.
|
static java.util.List<ObjectField> |
findByODI_DTN(long objectDefinitionId,
java.lang.String dbTableName,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns an ordered range of all the object fields where objectDefinitionId = ? and dbTableName = ?.
|
static java.util.List<ObjectField> |
findByODI_DTN(long objectDefinitionId,
java.lang.String dbTableName,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object fields where objectDefinitionId = ? and dbTableName = ?.
|
static ObjectField |
findByODI_N(long objectDefinitionId,
java.lang.String name)
Returns the object field where objectDefinitionId = ? and name = ? or throws a
NoSuchObjectFieldException if it could not be found. |
static ObjectField |
findByPrimaryKey(long objectFieldId)
Returns the object field with the primary key or throws a
NoSuchObjectFieldException if it could not be found. |
static ObjectField |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the first object field in the ordered set where uuid = ? and companyId = ?.
|
static ObjectField |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the last object field in the ordered set where uuid = ? and companyId = ?.
|
static ObjectField[] |
findByUuid_C_PrevAndNext(long objectFieldId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the object fields before and after the current object field in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<ObjectField> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the object fields where uuid = ? and companyId = ?.
|
static java.util.List<ObjectField> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the object fields where uuid = ? and companyId = ?.
|
static java.util.List<ObjectField> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns an ordered range of all the object fields where uuid = ? and companyId = ?.
|
static java.util.List<ObjectField> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object fields where uuid = ? and companyId = ?.
|
static ObjectField |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the first object field in the ordered set where uuid = ?.
|
static ObjectField |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the last object field in the ordered set where uuid = ?.
|
static ObjectField[] |
findByUuid_PrevAndNext(long objectFieldId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns the object fields before and after the current object field in the ordered set where uuid = ?.
|
static java.util.List<ObjectField> |
findByUuid(java.lang.String uuid)
Returns all the object fields where uuid = ?.
|
static java.util.List<ObjectField> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the object fields where uuid = ?.
|
static java.util.List<ObjectField> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
Returns an ordered range of all the object fields where uuid = ?.
|
static java.util.List<ObjectField> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object fields where uuid = ?.
|
static java.util.List<ObjectField> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<ObjectField> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ObjectField> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator) |
static ObjectFieldPersistence |
getPersistence() |
static ObjectField |
remove(long objectFieldId)
Removes the object field with the primary key from the database.
|
static void |
removeAll()
Removes all the object fields from the database.
|
static void |
removeByListTypeDefinitionId(long listTypeDefinitionId)
Removes all the object fields where listTypeDefinitionId = ? from the database.
|
static void |
removeByObjectDefinitionId(long objectDefinitionId)
Removes all the object fields where objectDefinitionId = ? from the database.
|
static void |
removeByODI_DTN(long objectDefinitionId,
java.lang.String dbTableName)
Removes all the object fields where objectDefinitionId = ? and dbTableName = ? from the database.
|
static ObjectField |
removeByODI_N(long objectDefinitionId,
java.lang.String name)
Removes the object field where objectDefinitionId = ? and name = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the object fields where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the object fields where uuid = ? from the database.
|
static ObjectField |
update(ObjectField objectField) |
static ObjectField |
update(ObjectField objectField,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ObjectField |
updateImpl(ObjectField objectField) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ObjectField objectField)
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,ObjectField> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<ObjectField> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<ObjectField> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<ObjectField> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ObjectField update(ObjectField objectField)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static ObjectField update(ObjectField objectField, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<ObjectField> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ObjectField> 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 ObjectFieldModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object fieldsend
- the upper bound of the range of object fields (not inclusive)public static java.util.List<ObjectField> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> 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 ObjectFieldModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object fieldsend
- the upper bound of the range of object fields (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectField> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> 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 ObjectFieldModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object fieldsend
- the upper bound of the range of object fields (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectField findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator) throws NoSuchObjectFieldException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldException
- if a matching object field could not be foundpublic static ObjectField fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object field could not be foundpublic static ObjectField findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator) throws NoSuchObjectFieldException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldException
- if a matching object field could not be foundpublic static ObjectField fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object field could not be foundpublic static ObjectField[] findByUuid_PrevAndNext(long objectFieldId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator) throws NoSuchObjectFieldException
objectFieldId
- the primary key of the current object fielduuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldException
- if a object field 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<ObjectField> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ObjectField> 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 ObjectFieldModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object fieldsend
- the upper bound of the range of object fields (not inclusive)public static java.util.List<ObjectField> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> 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 ObjectFieldModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object fieldsend
- the upper bound of the range of object fields (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectField> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> 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 ObjectFieldModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object fieldsend
- the upper bound of the range of object fields (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectField findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator) throws NoSuchObjectFieldException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldException
- if a matching object field could not be foundpublic static ObjectField fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object field could not be foundpublic static ObjectField findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator) throws NoSuchObjectFieldException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldException
- if a matching object field could not be foundpublic static ObjectField fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object field could not be foundpublic static ObjectField[] findByUuid_C_PrevAndNext(long objectFieldId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator) throws NoSuchObjectFieldException
objectFieldId
- the primary key of the current object fielduuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldException
- if a object field 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<ObjectField> findByListTypeDefinitionId(long listTypeDefinitionId)
listTypeDefinitionId
- the list type definition IDpublic static java.util.List<ObjectField> findByListTypeDefinitionId(long listTypeDefinitionId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ObjectFieldModelImpl
.
listTypeDefinitionId
- the list type definition IDstart
- the lower bound of the range of object fieldsend
- the upper bound of the range of object fields (not inclusive)public static java.util.List<ObjectField> findByListTypeDefinitionId(long listTypeDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> 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 ObjectFieldModelImpl
.
listTypeDefinitionId
- the list type definition IDstart
- the lower bound of the range of object fieldsend
- the upper bound of the range of object fields (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectField> findByListTypeDefinitionId(long listTypeDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> 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 ObjectFieldModelImpl
.
listTypeDefinitionId
- the list type definition IDstart
- the lower bound of the range of object fieldsend
- the upper bound of the range of object fields (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectField findByListTypeDefinitionId_First(long listTypeDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator) throws NoSuchObjectFieldException
listTypeDefinitionId
- the list type definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldException
- if a matching object field could not be foundpublic static ObjectField fetchByListTypeDefinitionId_First(long listTypeDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
listTypeDefinitionId
- the list type definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object field could not be foundpublic static ObjectField findByListTypeDefinitionId_Last(long listTypeDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator) throws NoSuchObjectFieldException
listTypeDefinitionId
- the list type definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldException
- if a matching object field could not be foundpublic static ObjectField fetchByListTypeDefinitionId_Last(long listTypeDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
listTypeDefinitionId
- the list type definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object field could not be foundpublic static ObjectField[] findByListTypeDefinitionId_PrevAndNext(long objectFieldId, long listTypeDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator) throws NoSuchObjectFieldException
objectFieldId
- the primary key of the current object fieldlistTypeDefinitionId
- the list type definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldException
- if a object field with the primary key could not be foundpublic static void removeByListTypeDefinitionId(long listTypeDefinitionId)
listTypeDefinitionId
- the list type definition IDpublic static int countByListTypeDefinitionId(long listTypeDefinitionId)
listTypeDefinitionId
- the list type definition IDpublic static java.util.List<ObjectField> findByObjectDefinitionId(long objectDefinitionId)
objectDefinitionId
- the object definition IDpublic static java.util.List<ObjectField> findByObjectDefinitionId(long objectDefinitionId, 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 ObjectFieldModelImpl
.
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object fieldsend
- the upper bound of the range of object fields (not inclusive)public static java.util.List<ObjectField> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> 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 ObjectFieldModelImpl
.
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object fieldsend
- the upper bound of the range of object fields (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectField> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> 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 ObjectFieldModelImpl
.
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object fieldsend
- the upper bound of the range of object fields (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectField findByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator) throws NoSuchObjectFieldException
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldException
- if a matching object field could not be foundpublic static ObjectField fetchByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object field could not be foundpublic static ObjectField findByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator) throws NoSuchObjectFieldException
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldException
- if a matching object field could not be foundpublic static ObjectField fetchByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object field could not be foundpublic static ObjectField[] findByObjectDefinitionId_PrevAndNext(long objectFieldId, long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator) throws NoSuchObjectFieldException
objectFieldId
- the primary key of the current object fieldobjectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldException
- if a object field with the primary key could not be foundpublic static void removeByObjectDefinitionId(long objectDefinitionId)
objectDefinitionId
- the object definition IDpublic static int countByObjectDefinitionId(long objectDefinitionId)
objectDefinitionId
- the object definition IDpublic static java.util.List<ObjectField> findByODI_DTN(long objectDefinitionId, java.lang.String dbTableName)
objectDefinitionId
- the object definition IDdbTableName
- the db table namepublic static java.util.List<ObjectField> findByODI_DTN(long objectDefinitionId, java.lang.String dbTableName, 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 ObjectFieldModelImpl
.
objectDefinitionId
- the object definition IDdbTableName
- the db table namestart
- the lower bound of the range of object fieldsend
- the upper bound of the range of object fields (not inclusive)public static java.util.List<ObjectField> findByODI_DTN(long objectDefinitionId, java.lang.String dbTableName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> 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 ObjectFieldModelImpl
.
objectDefinitionId
- the object definition IDdbTableName
- the db table namestart
- the lower bound of the range of object fieldsend
- the upper bound of the range of object fields (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectField> findByODI_DTN(long objectDefinitionId, java.lang.String dbTableName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> 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 ObjectFieldModelImpl
.
objectDefinitionId
- the object definition IDdbTableName
- the db table namestart
- the lower bound of the range of object fieldsend
- the upper bound of the range of object fields (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectField findByODI_DTN_First(long objectDefinitionId, java.lang.String dbTableName, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator) throws NoSuchObjectFieldException
objectDefinitionId
- the object definition IDdbTableName
- the db table nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldException
- if a matching object field could not be foundpublic static ObjectField fetchByODI_DTN_First(long objectDefinitionId, java.lang.String dbTableName, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
objectDefinitionId
- the object definition IDdbTableName
- the db table nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object field could not be foundpublic static ObjectField findByODI_DTN_Last(long objectDefinitionId, java.lang.String dbTableName, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator) throws NoSuchObjectFieldException
objectDefinitionId
- the object definition IDdbTableName
- the db table nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldException
- if a matching object field could not be foundpublic static ObjectField fetchByODI_DTN_Last(long objectDefinitionId, java.lang.String dbTableName, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator)
objectDefinitionId
- the object definition IDdbTableName
- the db table nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object field could not be foundpublic static ObjectField[] findByODI_DTN_PrevAndNext(long objectFieldId, long objectDefinitionId, java.lang.String dbTableName, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> orderByComparator) throws NoSuchObjectFieldException
objectFieldId
- the primary key of the current object fieldobjectDefinitionId
- the object definition IDdbTableName
- the db table nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFieldException
- if a object field with the primary key could not be foundpublic static void removeByODI_DTN(long objectDefinitionId, java.lang.String dbTableName)
objectDefinitionId
- the object definition IDdbTableName
- the db table namepublic static int countByODI_DTN(long objectDefinitionId, java.lang.String dbTableName)
objectDefinitionId
- the object definition IDdbTableName
- the db table namepublic static ObjectField findByODI_N(long objectDefinitionId, java.lang.String name) throws NoSuchObjectFieldException
NoSuchObjectFieldException
if it could not be found.objectDefinitionId
- the object definition IDname
- the nameNoSuchObjectFieldException
- if a matching object field could not be foundpublic static ObjectField fetchByODI_N(long objectDefinitionId, java.lang.String name)
null
if it could not be found. Uses the finder cache.objectDefinitionId
- the object definition IDname
- the namenull
if a matching object field could not be foundpublic static ObjectField fetchByODI_N(long objectDefinitionId, java.lang.String name, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.objectDefinitionId
- the object definition IDname
- the nameuseFinderCache
- whether to use the finder cachenull
if a matching object field could not be foundpublic static ObjectField removeByODI_N(long objectDefinitionId, java.lang.String name) throws NoSuchObjectFieldException
objectDefinitionId
- the object definition IDname
- the nameNoSuchObjectFieldException
public static int countByODI_N(long objectDefinitionId, java.lang.String name)
objectDefinitionId
- the object definition IDname
- the namepublic static void cacheResult(ObjectField objectField)
objectField
- the object fieldpublic static void cacheResult(java.util.List<ObjectField> objectFields)
objectFields
- the object fieldspublic static ObjectField create(long objectFieldId)
objectFieldId
- the primary key for the new object fieldpublic static ObjectField remove(long objectFieldId) throws NoSuchObjectFieldException
objectFieldId
- the primary key of the object fieldNoSuchObjectFieldException
- if a object field with the primary key could not be foundpublic static ObjectField updateImpl(ObjectField objectField)
public static ObjectField findByPrimaryKey(long objectFieldId) throws NoSuchObjectFieldException
NoSuchObjectFieldException
if it could not be found.objectFieldId
- the primary key of the object fieldNoSuchObjectFieldException
- if a object field with the primary key could not be foundpublic static ObjectField fetchByPrimaryKey(long objectFieldId)
null
if it could not be found.objectFieldId
- the primary key of the object fieldnull
if a object field with the primary key could not be foundpublic static java.util.List<ObjectField> findAll()
public static java.util.List<ObjectField> 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 ObjectFieldModelImpl
.
start
- the lower bound of the range of object fieldsend
- the upper bound of the range of object fields (not inclusive)public static java.util.List<ObjectField> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> 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 ObjectFieldModelImpl
.
start
- the lower bound of the range of object fieldsend
- the upper bound of the range of object fields (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectField> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectField> 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 ObjectFieldModelImpl
.
start
- the lower bound of the range of object fieldsend
- the upper bound of the range of object fields (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 ObjectFieldPersistence getPersistence()