public class ObjectFolderUtil
extends java.lang.Object
com.liferay.object.service.persistence.impl.ObjectFolderPersistenceImpl
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
ObjectFolderPersistence
Constructor and Description |
---|
ObjectFolderUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<ObjectFolder> objectFolders)
Caches the object folders in the entity cache if it is enabled.
|
static void |
cacheResult(ObjectFolder objectFolder)
Caches the object folder in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ObjectFolder objectFolder) |
static int |
countAll()
Returns the number of object folders.
|
static int |
countByC_N(long companyId,
java.lang.String name)
Returns the number of object folders where companyId = ? and name = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of object folders where companyId = ?.
|
static int |
countByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the number of object folders where externalReferenceCode = ? and companyId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of object folders where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of object folders where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static ObjectFolder |
create(long objectFolderId)
Creates a new object folder with the primary key.
|
static ObjectFolder |
fetchByC_N(long companyId,
java.lang.String name)
Returns the object folder where companyId = ? and name = ? or returns
null if it could not be found. |
static ObjectFolder |
fetchByC_N(long companyId,
java.lang.String name,
boolean useFinderCache)
Returns the object folder where companyId = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
static ObjectFolder |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns the first object folder in the ordered set where companyId = ?.
|
static ObjectFolder |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns the last object folder in the ordered set where companyId = ?.
|
static ObjectFolder |
fetchByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the object folder where externalReferenceCode = ? and companyId = ? or returns
null if it could not be found. |
static ObjectFolder |
fetchByERC_C(java.lang.String externalReferenceCode,
long companyId,
boolean useFinderCache)
Returns the object folder where externalReferenceCode = ? and companyId = ? or returns
null if it could not be found, optionally using the finder cache. |
static ObjectFolder |
fetchByPrimaryKey(long objectFolderId)
Returns the object folder with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ObjectFolder> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static ObjectFolder |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns the first object folder in the ordered set where uuid = ? and companyId = ?.
|
static ObjectFolder |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns the last object folder in the ordered set where uuid = ? and companyId = ?.
|
static ObjectFolder |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns the first object folder in the ordered set where uuid = ?.
|
static ObjectFolder |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns the last object folder in the ordered set where uuid = ?.
|
static int |
filterCountByCompanyId(long companyId)
Returns the number of object folders that the user has permission to view where companyId = ?.
|
static int |
filterCountByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of object folders that the user has permission to view where uuid = ? and companyId = ?.
|
static int |
filterCountByUuid(java.lang.String uuid)
Returns the number of object folders that the user has permission to view where uuid = ?.
|
static ObjectFolder[] |
filterFindByCompanyId_PrevAndNext(long objectFolderId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns the object folders before and after the current object folder in the ordered set of object folders that the user has permission to view where companyId = ?.
|
static java.util.List<ObjectFolder> |
filterFindByCompanyId(long companyId)
Returns all the object folders that the user has permission to view where companyId = ?.
|
static java.util.List<ObjectFolder> |
filterFindByCompanyId(long companyId,
int start,
int end)
Returns a range of all the object folders that the user has permission to view where companyId = ?.
|
static java.util.List<ObjectFolder> |
filterFindByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns an ordered range of all the object folders that the user has permissions to view where companyId = ?.
|
static ObjectFolder[] |
filterFindByUuid_C_PrevAndNext(long objectFolderId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns the object folders before and after the current object folder in the ordered set of object folders that the user has permission to view where uuid = ? and companyId = ?.
|
static java.util.List<ObjectFolder> |
filterFindByUuid_C(java.lang.String uuid,
long companyId)
Returns all the object folders that the user has permission to view where uuid = ? and companyId = ?.
|
static java.util.List<ObjectFolder> |
filterFindByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the object folders that the user has permission to view where uuid = ? and companyId = ?.
|
static java.util.List<ObjectFolder> |
filterFindByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns an ordered range of all the object folders that the user has permissions to view where uuid = ? and companyId = ?.
|
static ObjectFolder[] |
filterFindByUuid_PrevAndNext(long objectFolderId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns the object folders before and after the current object folder in the ordered set of object folders that the user has permission to view where uuid = ?.
|
static java.util.List<ObjectFolder> |
filterFindByUuid(java.lang.String uuid)
Returns all the object folders that the user has permission to view where uuid = ?.
|
static java.util.List<ObjectFolder> |
filterFindByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the object folders that the user has permission to view where uuid = ?.
|
static java.util.List<ObjectFolder> |
filterFindByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns an ordered range of all the object folders that the user has permissions to view where uuid = ?.
|
static java.util.List<ObjectFolder> |
findAll()
Returns all the object folders.
|
static java.util.List<ObjectFolder> |
findAll(int start,
int end)
Returns a range of all the object folders.
|
static java.util.List<ObjectFolder> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns an ordered range of all the object folders.
|
static java.util.List<ObjectFolder> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object folders.
|
static ObjectFolder |
findByC_N(long companyId,
java.lang.String name)
Returns the object folder where companyId = ? and name = ? or throws a
NoSuchObjectFolderException if it could not be found. |
static ObjectFolder |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns the first object folder in the ordered set where companyId = ?.
|
static ObjectFolder |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns the last object folder in the ordered set where companyId = ?.
|
static ObjectFolder[] |
findByCompanyId_PrevAndNext(long objectFolderId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns the object folders before and after the current object folder in the ordered set where companyId = ?.
|
static java.util.List<ObjectFolder> |
findByCompanyId(long companyId)
Returns all the object folders where companyId = ?.
|
static java.util.List<ObjectFolder> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the object folders where companyId = ?.
|
static java.util.List<ObjectFolder> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns an ordered range of all the object folders where companyId = ?.
|
static java.util.List<ObjectFolder> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object folders where companyId = ?.
|
static ObjectFolder |
findByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the object folder where externalReferenceCode = ? and companyId = ? or throws a
NoSuchObjectFolderException if it could not be found. |
static ObjectFolder |
findByPrimaryKey(long objectFolderId)
Returns the object folder with the primary key or throws a
NoSuchObjectFolderException if it could not be found. |
static ObjectFolder |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns the first object folder in the ordered set where uuid = ? and companyId = ?.
|
static ObjectFolder |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns the last object folder in the ordered set where uuid = ? and companyId = ?.
|
static ObjectFolder[] |
findByUuid_C_PrevAndNext(long objectFolderId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns the object folders before and after the current object folder in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<ObjectFolder> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the object folders where uuid = ? and companyId = ?.
|
static java.util.List<ObjectFolder> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the object folders where uuid = ? and companyId = ?.
|
static java.util.List<ObjectFolder> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns an ordered range of all the object folders where uuid = ? and companyId = ?.
|
static java.util.List<ObjectFolder> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object folders where uuid = ? and companyId = ?.
|
static ObjectFolder |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns the first object folder in the ordered set where uuid = ?.
|
static ObjectFolder |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns the last object folder in the ordered set where uuid = ?.
|
static ObjectFolder[] |
findByUuid_PrevAndNext(long objectFolderId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns the object folders before and after the current object folder in the ordered set where uuid = ?.
|
static java.util.List<ObjectFolder> |
findByUuid(java.lang.String uuid)
Returns all the object folders where uuid = ?.
|
static java.util.List<ObjectFolder> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the object folders where uuid = ?.
|
static java.util.List<ObjectFolder> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
Returns an ordered range of all the object folders where uuid = ?.
|
static java.util.List<ObjectFolder> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object folders where uuid = ?.
|
static java.util.List<ObjectFolder> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<ObjectFolder> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ObjectFolder> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) |
static ObjectFolderPersistence |
getPersistence() |
static ObjectFolder |
remove(long objectFolderId)
Removes the object folder with the primary key from the database.
|
static void |
removeAll()
Removes all the object folders from the database.
|
static ObjectFolder |
removeByC_N(long companyId,
java.lang.String name)
Removes the object folder where companyId = ? and name = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the object folders where companyId = ? from the database.
|
static ObjectFolder |
removeByERC_C(java.lang.String externalReferenceCode,
long companyId)
Removes the object folder where externalReferenceCode = ? and companyId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the object folders where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the object folders where uuid = ? from the database.
|
static void |
setPersistence(ObjectFolderPersistence persistence) |
static ObjectFolder |
update(ObjectFolder objectFolder) |
static ObjectFolder |
update(ObjectFolder objectFolder,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ObjectFolder |
updateImpl(ObjectFolder objectFolder) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ObjectFolder objectFolder)
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,ObjectFolder> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<ObjectFolder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<ObjectFolder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<ObjectFolder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ObjectFolder update(ObjectFolder objectFolder)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static ObjectFolder update(ObjectFolder objectFolder, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<ObjectFolder> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ObjectFolder> 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 ObjectFolderModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object foldersend
- the upper bound of the range of object folders (not inclusive)public static java.util.List<ObjectFolder> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> 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 ObjectFolderModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object foldersend
- the upper bound of the range of object folders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectFolder> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> 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 ObjectFolderModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object foldersend
- the upper bound of the range of object folders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectFolder findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderException
- if a matching object folder could not be foundpublic static ObjectFolder fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object folder could not be foundpublic static ObjectFolder findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderException
- if a matching object folder could not be foundpublic static ObjectFolder fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object folder could not be foundpublic static ObjectFolder[] findByUuid_PrevAndNext(long objectFolderId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
objectFolderId
- the primary key of the current object folderuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderException
- if a object folder with the primary key could not be foundpublic static java.util.List<ObjectFolder> filterFindByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ObjectFolder> filterFindByUuid(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 ObjectFolderModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object foldersend
- the upper bound of the range of object folders (not inclusive)public static java.util.List<ObjectFolder> filterFindByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> 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 ObjectFolderModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object foldersend
- the upper bound of the range of object folders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static ObjectFolder[] filterFindByUuid_PrevAndNext(long objectFolderId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
objectFolderId
- the primary key of the current object folderuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderException
- if a object folder 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 int filterCountByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ObjectFolder> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ObjectFolder> 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 ObjectFolderModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object foldersend
- the upper bound of the range of object folders (not inclusive)public static java.util.List<ObjectFolder> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> 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 ObjectFolderModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object foldersend
- the upper bound of the range of object folders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectFolder> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> 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 ObjectFolderModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object foldersend
- the upper bound of the range of object folders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectFolder findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderException
- if a matching object folder could not be foundpublic static ObjectFolder fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object folder could not be foundpublic static ObjectFolder findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderException
- if a matching object folder could not be foundpublic static ObjectFolder fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object folder could not be foundpublic static ObjectFolder[] findByUuid_C_PrevAndNext(long objectFolderId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
objectFolderId
- the primary key of the current object folderuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderException
- if a object folder with the primary key could not be foundpublic static java.util.List<ObjectFolder> filterFindByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ObjectFolder> filterFindByUuid_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 ObjectFolderModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object foldersend
- the upper bound of the range of object folders (not inclusive)public static java.util.List<ObjectFolder> filterFindByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> 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 ObjectFolderModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object foldersend
- the upper bound of the range of object folders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static ObjectFolder[] filterFindByUuid_C_PrevAndNext(long objectFolderId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
objectFolderId
- the primary key of the current object folderuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderException
- if a object folder 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 int filterCountByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ObjectFolder> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<ObjectFolder> findByCompanyId(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 ObjectFolderModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of object foldersend
- the upper bound of the range of object folders (not inclusive)public static java.util.List<ObjectFolder> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> 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 ObjectFolderModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of object foldersend
- the upper bound of the range of object folders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectFolder> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> 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 ObjectFolderModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of object foldersend
- the upper bound of the range of object folders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectFolder findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderException
- if a matching object folder could not be foundpublic static ObjectFolder fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object folder could not be foundpublic static ObjectFolder findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderException
- if a matching object folder could not be foundpublic static ObjectFolder fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object folder could not be foundpublic static ObjectFolder[] findByCompanyId_PrevAndNext(long objectFolderId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
objectFolderId
- the primary key of the current object foldercompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderException
- if a object folder with the primary key could not be foundpublic static java.util.List<ObjectFolder> filterFindByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<ObjectFolder> filterFindByCompanyId(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 ObjectFolderModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of object foldersend
- the upper bound of the range of object folders (not inclusive)public static java.util.List<ObjectFolder> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> 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 ObjectFolderModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of object foldersend
- the upper bound of the range of object folders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static ObjectFolder[] filterFindByCompanyId_PrevAndNext(long objectFolderId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException
objectFolderId
- the primary key of the current object foldercompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderException
- if a object folder with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static int filterCountByCompanyId(long companyId)
companyId
- the company IDpublic static ObjectFolder findByC_N(long companyId, java.lang.String name) throws NoSuchObjectFolderException
NoSuchObjectFolderException
if it could not be found.companyId
- the company IDname
- the nameNoSuchObjectFolderException
- if a matching object folder could not be foundpublic static ObjectFolder fetchByC_N(long companyId, java.lang.String name)
null
if it could not be found. Uses the finder cache.companyId
- the company IDname
- the namenull
if a matching object folder could not be foundpublic static ObjectFolder fetchByC_N(long companyId, java.lang.String name, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDname
- the nameuseFinderCache
- whether to use the finder cachenull
if a matching object folder could not be foundpublic static ObjectFolder removeByC_N(long companyId, java.lang.String name) throws NoSuchObjectFolderException
companyId
- the company IDname
- the nameNoSuchObjectFolderException
public static int countByC_N(long companyId, java.lang.String name)
companyId
- the company IDname
- the namepublic static ObjectFolder findByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchObjectFolderException
NoSuchObjectFolderException
if it could not be found.externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchObjectFolderException
- if a matching object folder could not be foundpublic static ObjectFolder fetchByERC_C(java.lang.String externalReferenceCode, long companyId)
null
if it could not be found. Uses the finder cache.externalReferenceCode
- the external reference codecompanyId
- the company IDnull
if a matching object folder could not be foundpublic static ObjectFolder fetchByERC_C(java.lang.String externalReferenceCode, long companyId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cachenull
if a matching object folder could not be foundpublic static ObjectFolder removeByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchObjectFolderException
externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchObjectFolderException
public static int countByERC_C(java.lang.String externalReferenceCode, long companyId)
externalReferenceCode
- the external reference codecompanyId
- the company IDpublic static void cacheResult(ObjectFolder objectFolder)
objectFolder
- the object folderpublic static void cacheResult(java.util.List<ObjectFolder> objectFolders)
objectFolders
- the object folderspublic static ObjectFolder create(long objectFolderId)
objectFolderId
- the primary key for the new object folderpublic static ObjectFolder remove(long objectFolderId) throws NoSuchObjectFolderException
objectFolderId
- the primary key of the object folderNoSuchObjectFolderException
- if a object folder with the primary key could not be foundpublic static ObjectFolder updateImpl(ObjectFolder objectFolder)
public static ObjectFolder findByPrimaryKey(long objectFolderId) throws NoSuchObjectFolderException
NoSuchObjectFolderException
if it could not be found.objectFolderId
- the primary key of the object folderNoSuchObjectFolderException
- if a object folder with the primary key could not be foundpublic static ObjectFolder fetchByPrimaryKey(long objectFolderId)
null
if it could not be found.objectFolderId
- the primary key of the object foldernull
if a object folder with the primary key could not be foundpublic static java.util.List<ObjectFolder> findAll()
public static java.util.List<ObjectFolder> 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 ObjectFolderModelImpl
.
start
- the lower bound of the range of object foldersend
- the upper bound of the range of object folders (not inclusive)public static java.util.List<ObjectFolder> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> 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 ObjectFolderModelImpl
.
start
- the lower bound of the range of object foldersend
- the upper bound of the range of object folders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectFolder> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> 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 ObjectFolderModelImpl
.
start
- the lower bound of the range of object foldersend
- the upper bound of the range of object folders (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 ObjectFolderPersistence getPersistence()
public static void setPersistence(ObjectFolderPersistence persistence)