Liferay 6.1.2-ce-ga3

com.liferay.portal.service.persistence
Interface LayoutPrototypePersistence

All Superinterfaces:
BasePersistence<LayoutPrototype>
All Known Implementing Classes:
LayoutPrototypePersistenceImpl

public interface LayoutPrototypePersistence
extends BasePersistence<LayoutPrototype>

The persistence interface for the layout prototype service.

Caching information and settings can be found in portal.properties

See Also:
LayoutPrototypePersistenceImpl, LayoutPrototypeUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
 void cacheResult(LayoutPrototype layoutPrototype)
          Caches the layout prototype in the entity cache if it is enabled.
 void cacheResult(List<LayoutPrototype> layoutPrototypes)
          Caches the layout prototypes in the entity cache if it is enabled.
 int countAll()
          Returns the number of layout prototypes.
 int countByC_A(long companyId, boolean active)
          Returns the number of layout prototypes where companyId = ? and active = ?.
 int countByCompanyId(long companyId)
          Returns the number of layout prototypes where companyId = ?.
 int countByUuid(String uuid)
          Returns the number of layout prototypes where uuid = ?.
 LayoutPrototype create(long layoutPrototypeId)
          Creates a new layout prototype with the primary key.
 LayoutPrototype fetchByC_A_First(long companyId, boolean active, OrderByComparator orderByComparator)
          Returns the first layout prototype in the ordered set where companyId = ? and active = ?.
 LayoutPrototype fetchByC_A_Last(long companyId, boolean active, OrderByComparator orderByComparator)
          Returns the last layout prototype in the ordered set where companyId = ? and active = ?.
 LayoutPrototype fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first layout prototype in the ordered set where companyId = ?.
 LayoutPrototype fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last layout prototype in the ordered set where companyId = ?.
 LayoutPrototype fetchByPrimaryKey(long layoutPrototypeId)
          Returns the layout prototype with the primary key or returns null if it could not be found.
 LayoutPrototype fetchByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first layout prototype in the ordered set where uuid = ?.
 LayoutPrototype fetchByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last layout prototype in the ordered set where uuid = ?.
 int filterCountByC_A(long companyId, boolean active)
          Returns the number of layout prototypes that the user has permission to view where companyId = ? and active = ?.
 int filterCountByCompanyId(long companyId)
          Returns the number of layout prototypes that the user has permission to view where companyId = ?.
 int filterCountByUuid(String uuid)
          Returns the number of layout prototypes that the user has permission to view where uuid = ?.
 LayoutPrototype[] filterFindByC_A_PrevAndNext(long layoutPrototypeId, long companyId, boolean active, OrderByComparator orderByComparator)
          Returns the layout prototypes before and after the current layout prototype in the ordered set of layout prototypes that the user has permission to view where companyId = ? and active = ?.
 List<LayoutPrototype> filterFindByC_A(long companyId, boolean active)
          Returns all the layout prototypes that the user has permission to view where companyId = ? and active = ?.
 List<LayoutPrototype> filterFindByC_A(long companyId, boolean active, int start, int end)
          Returns a range of all the layout prototypes that the user has permission to view where companyId = ? and active = ?.
 List<LayoutPrototype> filterFindByC_A(long companyId, boolean active, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layout prototypes that the user has permissions to view where companyId = ? and active = ?.
 LayoutPrototype[] filterFindByCompanyId_PrevAndNext(long layoutPrototypeId, long companyId, OrderByComparator orderByComparator)
          Returns the layout prototypes before and after the current layout prototype in the ordered set of layout prototypes that the user has permission to view where companyId = ?.
 List<LayoutPrototype> filterFindByCompanyId(long companyId)
          Returns all the layout prototypes that the user has permission to view where companyId = ?.
 List<LayoutPrototype> filterFindByCompanyId(long companyId, int start, int end)
          Returns a range of all the layout prototypes that the user has permission to view where companyId = ?.
 List<LayoutPrototype> filterFindByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layout prototypes that the user has permissions to view where companyId = ?.
 LayoutPrototype[] filterFindByUuid_PrevAndNext(long layoutPrototypeId, String uuid, OrderByComparator orderByComparator)
          Returns the layout prototypes before and after the current layout prototype in the ordered set of layout prototypes that the user has permission to view where uuid = ?.
 List<LayoutPrototype> filterFindByUuid(String uuid)
          Returns all the layout prototypes that the user has permission to view where uuid = ?.
 List<LayoutPrototype> filterFindByUuid(String uuid, int start, int end)
          Returns a range of all the layout prototypes that the user has permission to view where uuid = ?.
 List<LayoutPrototype> filterFindByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layout prototypes that the user has permissions to view where uuid = ?.
 List<LayoutPrototype> findAll()
          Returns all the layout prototypes.
 List<LayoutPrototype> findAll(int start, int end)
          Returns a range of all the layout prototypes.
 List<LayoutPrototype> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layout prototypes.
 LayoutPrototype findByC_A_First(long companyId, boolean active, OrderByComparator orderByComparator)
          Returns the first layout prototype in the ordered set where companyId = ? and active = ?.
 LayoutPrototype findByC_A_Last(long companyId, boolean active, OrderByComparator orderByComparator)
          Returns the last layout prototype in the ordered set where companyId = ? and active = ?.
 LayoutPrototype[] findByC_A_PrevAndNext(long layoutPrototypeId, long companyId, boolean active, OrderByComparator orderByComparator)
          Returns the layout prototypes before and after the current layout prototype in the ordered set where companyId = ? and active = ?.
 List<LayoutPrototype> findByC_A(long companyId, boolean active)
          Returns all the layout prototypes where companyId = ? and active = ?.
 List<LayoutPrototype> findByC_A(long companyId, boolean active, int start, int end)
          Returns a range of all the layout prototypes where companyId = ? and active = ?.
 List<LayoutPrototype> findByC_A(long companyId, boolean active, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layout prototypes where companyId = ? and active = ?.
 LayoutPrototype findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first layout prototype in the ordered set where companyId = ?.
 LayoutPrototype findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last layout prototype in the ordered set where companyId = ?.
 LayoutPrototype[] findByCompanyId_PrevAndNext(long layoutPrototypeId, long companyId, OrderByComparator orderByComparator)
          Returns the layout prototypes before and after the current layout prototype in the ordered set where companyId = ?.
 List<LayoutPrototype> findByCompanyId(long companyId)
          Returns all the layout prototypes where companyId = ?.
 List<LayoutPrototype> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the layout prototypes where companyId = ?.
 List<LayoutPrototype> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layout prototypes where companyId = ?.
 LayoutPrototype findByPrimaryKey(long layoutPrototypeId)
          Returns the layout prototype with the primary key or throws a NoSuchLayoutPrototypeException if it could not be found.
 LayoutPrototype findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first layout prototype in the ordered set where uuid = ?.
 LayoutPrototype findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last layout prototype in the ordered set where uuid = ?.
 LayoutPrototype[] findByUuid_PrevAndNext(long layoutPrototypeId, String uuid, OrderByComparator orderByComparator)
          Returns the layout prototypes before and after the current layout prototype in the ordered set where uuid = ?.
 List<LayoutPrototype> findByUuid(String uuid)
          Returns all the layout prototypes where uuid = ?.
 List<LayoutPrototype> findByUuid(String uuid, int start, int end)
          Returns a range of all the layout prototypes where uuid = ?.
 List<LayoutPrototype> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layout prototypes where uuid = ?.
 LayoutPrototype remove(long layoutPrototypeId)
          Removes the layout prototype with the primary key from the database.
 void removeAll()
          Removes all the layout prototypes from the database.
 void removeByC_A(long companyId, boolean active)
          Removes all the layout prototypes where companyId = ? and active = ? from the database.
 void removeByCompanyId(long companyId)
          Removes all the layout prototypes where companyId = ? from the database.
 void removeByUuid(String uuid)
          Removes all the layout prototypes where uuid = ? from the database.
 LayoutPrototype updateImpl(LayoutPrototype layoutPrototype, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

void cacheResult(LayoutPrototype layoutPrototype)
Caches the layout prototype in the entity cache if it is enabled.

Parameters:
layoutPrototype - the layout prototype

cacheResult

void cacheResult(List<LayoutPrototype> layoutPrototypes)
Caches the layout prototypes in the entity cache if it is enabled.

Parameters:
layoutPrototypes - the layout prototypes

create

LayoutPrototype create(long layoutPrototypeId)
Creates a new layout prototype with the primary key. Does not add the layout prototype to the database.

Parameters:
layoutPrototypeId - the primary key for the new layout prototype
Returns:
the new layout prototype

remove

LayoutPrototype remove(long layoutPrototypeId)
                       throws NoSuchLayoutPrototypeException,
                              SystemException
Removes the layout prototype with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
layoutPrototypeId - the primary key of the layout prototype
Returns:
the layout prototype that was removed
Throws:
NoSuchLayoutPrototypeException - if a layout prototype with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

LayoutPrototype updateImpl(LayoutPrototype layoutPrototype,
                           boolean merge)
                           throws SystemException
Throws:
SystemException

findByPrimaryKey

LayoutPrototype findByPrimaryKey(long layoutPrototypeId)
                                 throws NoSuchLayoutPrototypeException,
                                        SystemException
Returns the layout prototype with the primary key or throws a NoSuchLayoutPrototypeException if it could not be found.

Parameters:
layoutPrototypeId - the primary key of the layout prototype
Returns:
the layout prototype
Throws:
NoSuchLayoutPrototypeException - if a layout prototype with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

LayoutPrototype fetchByPrimaryKey(long layoutPrototypeId)
                                  throws SystemException
Returns the layout prototype with the primary key or returns null if it could not be found.

Parameters:
layoutPrototypeId - the primary key of the layout prototype
Returns:
the layout prototype, or null if a layout prototype with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByUuid

List<LayoutPrototype> findByUuid(String uuid)
                                 throws SystemException
Returns all the layout prototypes where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the matching layout prototypes
Throws:
SystemException - if a system exception occurred

findByUuid

List<LayoutPrototype> findByUuid(String uuid,
                                 int start,
                                 int end)
                                 throws SystemException
Returns a range of all the layout prototypes where uuid = ?.

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.

Parameters:
uuid - the uuid
start - the lower bound of the range of layout prototypes
end - the upper bound of the range of layout prototypes (not inclusive)
Returns:
the range of matching layout prototypes
Throws:
SystemException - if a system exception occurred

findByUuid

List<LayoutPrototype> findByUuid(String uuid,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns an ordered range of all the layout prototypes where uuid = ?.

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.

Parameters:
uuid - the uuid
start - the lower bound of the range of layout prototypes
end - the upper bound of the range of layout prototypes (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching layout prototypes
Throws:
SystemException - if a system exception occurred

findByUuid_First

LayoutPrototype findByUuid_First(String uuid,
                                 OrderByComparator orderByComparator)
                                 throws NoSuchLayoutPrototypeException,
                                        SystemException
Returns the first layout prototype in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout prototype
Throws:
NoSuchLayoutPrototypeException - if a matching layout prototype could not be found
SystemException - if a system exception occurred

fetchByUuid_First

LayoutPrototype fetchByUuid_First(String uuid,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
Returns the first layout prototype in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout prototype, or null if a matching layout prototype could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_Last

LayoutPrototype findByUuid_Last(String uuid,
                                OrderByComparator orderByComparator)
                                throws NoSuchLayoutPrototypeException,
                                       SystemException
Returns the last layout prototype in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout prototype
Throws:
NoSuchLayoutPrototypeException - if a matching layout prototype could not be found
SystemException - if a system exception occurred

fetchByUuid_Last

LayoutPrototype fetchByUuid_Last(String uuid,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns the last layout prototype in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout prototype, or null if a matching layout prototype could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_PrevAndNext

LayoutPrototype[] findByUuid_PrevAndNext(long layoutPrototypeId,
                                         String uuid,
                                         OrderByComparator orderByComparator)
                                         throws NoSuchLayoutPrototypeException,
                                                SystemException
Returns the layout prototypes before and after the current layout prototype in the ordered set where uuid = ?.

Parameters:
layoutPrototypeId - the primary key of the current layout prototype
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next layout prototype
Throws:
NoSuchLayoutPrototypeException - if a layout prototype with the primary key could not be found
SystemException - if a system exception occurred

filterFindByUuid

List<LayoutPrototype> filterFindByUuid(String uuid)
                                       throws SystemException
Returns all the layout prototypes that the user has permission to view where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the matching layout prototypes that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByUuid

List<LayoutPrototype> filterFindByUuid(String uuid,
                                       int start,
                                       int end)
                                       throws SystemException
Returns a range of all the layout prototypes that the user has permission to view where uuid = ?.

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.

Parameters:
uuid - the uuid
start - the lower bound of the range of layout prototypes
end - the upper bound of the range of layout prototypes (not inclusive)
Returns:
the range of matching layout prototypes that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByUuid

List<LayoutPrototype> filterFindByUuid(String uuid,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                       throws SystemException
Returns an ordered range of all the layout prototypes that the user has permissions to view where uuid = ?.

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.

Parameters:
uuid - the uuid
start - the lower bound of the range of layout prototypes
end - the upper bound of the range of layout prototypes (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching layout prototypes that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByUuid_PrevAndNext

LayoutPrototype[] filterFindByUuid_PrevAndNext(long layoutPrototypeId,
                                               String uuid,
                                               OrderByComparator orderByComparator)
                                               throws NoSuchLayoutPrototypeException,
                                                      SystemException
Returns the layout prototypes before and after the current layout prototype in the ordered set of layout prototypes that the user has permission to view where uuid = ?.

Parameters:
layoutPrototypeId - the primary key of the current layout prototype
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next layout prototype
Throws:
NoSuchLayoutPrototypeException - if a layout prototype with the primary key could not be found
SystemException - if a system exception occurred

findByCompanyId

List<LayoutPrototype> findByCompanyId(long companyId)
                                      throws SystemException
Returns all the layout prototypes where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the matching layout prototypes
Throws:
SystemException - if a system exception occurred

findByCompanyId

List<LayoutPrototype> findByCompanyId(long companyId,
                                      int start,
                                      int end)
                                      throws SystemException
Returns a range of all the layout prototypes where companyId = ?.

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.

Parameters:
companyId - the company ID
start - the lower bound of the range of layout prototypes
end - the upper bound of the range of layout prototypes (not inclusive)
Returns:
the range of matching layout prototypes
Throws:
SystemException - if a system exception occurred

findByCompanyId

List<LayoutPrototype> findByCompanyId(long companyId,
                                      int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                                      throws SystemException
Returns an ordered range of all the layout prototypes where companyId = ?.

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.

Parameters:
companyId - the company ID
start - the lower bound of the range of layout prototypes
end - the upper bound of the range of layout prototypes (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching layout prototypes
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

LayoutPrototype findByCompanyId_First(long companyId,
                                      OrderByComparator orderByComparator)
                                      throws NoSuchLayoutPrototypeException,
                                             SystemException
Returns the first layout prototype in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout prototype
Throws:
NoSuchLayoutPrototypeException - if a matching layout prototype could not be found
SystemException - if a system exception occurred

fetchByCompanyId_First

LayoutPrototype fetchByCompanyId_First(long companyId,
                                       OrderByComparator orderByComparator)
                                       throws SystemException
Returns the first layout prototype in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout prototype, or null if a matching layout prototype could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_Last

LayoutPrototype findByCompanyId_Last(long companyId,
                                     OrderByComparator orderByComparator)
                                     throws NoSuchLayoutPrototypeException,
                                            SystemException
Returns the last layout prototype in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout prototype
Throws:
NoSuchLayoutPrototypeException - if a matching layout prototype could not be found
SystemException - if a system exception occurred

fetchByCompanyId_Last

LayoutPrototype fetchByCompanyId_Last(long companyId,
                                      OrderByComparator orderByComparator)
                                      throws SystemException
Returns the last layout prototype in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout prototype, or null if a matching layout prototype could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

LayoutPrototype[] findByCompanyId_PrevAndNext(long layoutPrototypeId,
                                              long companyId,
                                              OrderByComparator orderByComparator)
                                              throws NoSuchLayoutPrototypeException,
                                                     SystemException
Returns the layout prototypes before and after the current layout prototype in the ordered set where companyId = ?.

Parameters:
layoutPrototypeId - the primary key of the current layout prototype
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next layout prototype
Throws:
NoSuchLayoutPrototypeException - if a layout prototype with the primary key could not be found
SystemException - if a system exception occurred

filterFindByCompanyId

List<LayoutPrototype> filterFindByCompanyId(long companyId)
                                            throws SystemException
Returns all the layout prototypes that the user has permission to view where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the matching layout prototypes that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByCompanyId

List<LayoutPrototype> filterFindByCompanyId(long companyId,
                                            int start,
                                            int end)
                                            throws SystemException
Returns a range of all the layout prototypes that the user has permission to view where companyId = ?.

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.

Parameters:
companyId - the company ID
start - the lower bound of the range of layout prototypes
end - the upper bound of the range of layout prototypes (not inclusive)
Returns:
the range of matching layout prototypes that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByCompanyId

List<LayoutPrototype> filterFindByCompanyId(long companyId,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                            throws SystemException
Returns an ordered range of all the layout prototypes that the user has permissions to view where companyId = ?.

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.

Parameters:
companyId - the company ID
start - the lower bound of the range of layout prototypes
end - the upper bound of the range of layout prototypes (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching layout prototypes that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByCompanyId_PrevAndNext

LayoutPrototype[] filterFindByCompanyId_PrevAndNext(long layoutPrototypeId,
                                                    long companyId,
                                                    OrderByComparator orderByComparator)
                                                    throws NoSuchLayoutPrototypeException,
                                                           SystemException
Returns the layout prototypes before and after the current layout prototype in the ordered set of layout prototypes that the user has permission to view where companyId = ?.

Parameters:
layoutPrototypeId - the primary key of the current layout prototype
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next layout prototype
Throws:
NoSuchLayoutPrototypeException - if a layout prototype with the primary key could not be found
SystemException - if a system exception occurred

findByC_A

List<LayoutPrototype> findByC_A(long companyId,
                                boolean active)
                                throws SystemException
Returns all the layout prototypes where companyId = ? and active = ?.

Parameters:
companyId - the company ID
active - the active
Returns:
the matching layout prototypes
Throws:
SystemException - if a system exception occurred

findByC_A

List<LayoutPrototype> findByC_A(long companyId,
                                boolean active,
                                int start,
                                int end)
                                throws SystemException
Returns a range of all the layout prototypes where companyId = ? and active = ?.

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.

Parameters:
companyId - the company ID
active - the active
start - the lower bound of the range of layout prototypes
end - the upper bound of the range of layout prototypes (not inclusive)
Returns:
the range of matching layout prototypes
Throws:
SystemException - if a system exception occurred

findByC_A

List<LayoutPrototype> findByC_A(long companyId,
                                boolean active,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                                throws SystemException
Returns an ordered range of all the layout prototypes where companyId = ? and active = ?.

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.

Parameters:
companyId - the company ID
active - the active
start - the lower bound of the range of layout prototypes
end - the upper bound of the range of layout prototypes (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching layout prototypes
Throws:
SystemException - if a system exception occurred

findByC_A_First

LayoutPrototype findByC_A_First(long companyId,
                                boolean active,
                                OrderByComparator orderByComparator)
                                throws NoSuchLayoutPrototypeException,
                                       SystemException
Returns the first layout prototype in the ordered set where companyId = ? and active = ?.

Parameters:
companyId - the company ID
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout prototype
Throws:
NoSuchLayoutPrototypeException - if a matching layout prototype could not be found
SystemException - if a system exception occurred

fetchByC_A_First

LayoutPrototype fetchByC_A_First(long companyId,
                                 boolean active,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns the first layout prototype in the ordered set where companyId = ? and active = ?.

Parameters:
companyId - the company ID
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout prototype, or null if a matching layout prototype could not be found
Throws:
SystemException - if a system exception occurred

findByC_A_Last

LayoutPrototype findByC_A_Last(long companyId,
                               boolean active,
                               OrderByComparator orderByComparator)
                               throws NoSuchLayoutPrototypeException,
                                      SystemException
Returns the last layout prototype in the ordered set where companyId = ? and active = ?.

Parameters:
companyId - the company ID
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout prototype
Throws:
NoSuchLayoutPrototypeException - if a matching layout prototype could not be found
SystemException - if a system exception occurred

fetchByC_A_Last

LayoutPrototype fetchByC_A_Last(long companyId,
                                boolean active,
                                OrderByComparator orderByComparator)
                                throws SystemException
Returns the last layout prototype in the ordered set where companyId = ? and active = ?.

Parameters:
companyId - the company ID
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout prototype, or null if a matching layout prototype could not be found
Throws:
SystemException - if a system exception occurred

findByC_A_PrevAndNext

LayoutPrototype[] findByC_A_PrevAndNext(long layoutPrototypeId,
                                        long companyId,
                                        boolean active,
                                        OrderByComparator orderByComparator)
                                        throws NoSuchLayoutPrototypeException,
                                               SystemException
Returns the layout prototypes before and after the current layout prototype in the ordered set where companyId = ? and active = ?.

Parameters:
layoutPrototypeId - the primary key of the current layout prototype
companyId - the company ID
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next layout prototype
Throws:
NoSuchLayoutPrototypeException - if a layout prototype with the primary key could not be found
SystemException - if a system exception occurred

filterFindByC_A

List<LayoutPrototype> filterFindByC_A(long companyId,
                                      boolean active)
                                      throws SystemException
Returns all the layout prototypes that the user has permission to view where companyId = ? and active = ?.

Parameters:
companyId - the company ID
active - the active
Returns:
the matching layout prototypes that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByC_A

List<LayoutPrototype> filterFindByC_A(long companyId,
                                      boolean active,
                                      int start,
                                      int end)
                                      throws SystemException
Returns a range of all the layout prototypes that the user has permission to view where companyId = ? and active = ?.

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.

Parameters:
companyId - the company ID
active - the active
start - the lower bound of the range of layout prototypes
end - the upper bound of the range of layout prototypes (not inclusive)
Returns:
the range of matching layout prototypes that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByC_A

List<LayoutPrototype> filterFindByC_A(long companyId,
                                      boolean active,
                                      int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                                      throws SystemException
Returns an ordered range of all the layout prototypes that the user has permissions to view where companyId = ? and active = ?.

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.

Parameters:
companyId - the company ID
active - the active
start - the lower bound of the range of layout prototypes
end - the upper bound of the range of layout prototypes (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching layout prototypes that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByC_A_PrevAndNext

LayoutPrototype[] filterFindByC_A_PrevAndNext(long layoutPrototypeId,
                                              long companyId,
                                              boolean active,
                                              OrderByComparator orderByComparator)
                                              throws NoSuchLayoutPrototypeException,
                                                     SystemException
Returns the layout prototypes before and after the current layout prototype in the ordered set of layout prototypes that the user has permission to view where companyId = ? and active = ?.

Parameters:
layoutPrototypeId - the primary key of the current layout prototype
companyId - the company ID
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next layout prototype
Throws:
NoSuchLayoutPrototypeException - if a layout prototype with the primary key could not be found
SystemException - if a system exception occurred

findAll

List<LayoutPrototype> findAll()
                              throws SystemException
Returns all the layout prototypes.

Returns:
the layout prototypes
Throws:
SystemException - if a system exception occurred

findAll

List<LayoutPrototype> findAll(int start,
                              int end)
                              throws SystemException
Returns a range of all the layout prototypes.

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.

Parameters:
start - the lower bound of the range of layout prototypes
end - the upper bound of the range of layout prototypes (not inclusive)
Returns:
the range of layout prototypes
Throws:
SystemException - if a system exception occurred

findAll

List<LayoutPrototype> findAll(int start,
                              int end,
                              OrderByComparator orderByComparator)
                              throws SystemException
Returns an ordered range of all the layout prototypes.

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.

Parameters:
start - the lower bound of the range of layout prototypes
end - the upper bound of the range of layout prototypes (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of layout prototypes
Throws:
SystemException - if a system exception occurred

removeByUuid

void removeByUuid(String uuid)
                  throws SystemException
Removes all the layout prototypes where uuid = ? from the database.

Parameters:
uuid - the uuid
Throws:
SystemException - if a system exception occurred

removeByCompanyId

void removeByCompanyId(long companyId)
                       throws SystemException
Removes all the layout prototypes where companyId = ? from the database.

Parameters:
companyId - the company ID
Throws:
SystemException - if a system exception occurred

removeByC_A

void removeByC_A(long companyId,
                 boolean active)
                 throws SystemException
Removes all the layout prototypes where companyId = ? and active = ? from the database.

Parameters:
companyId - the company ID
active - the active
Throws:
SystemException - if a system exception occurred

removeAll

void removeAll()
               throws SystemException
Removes all the layout prototypes from the database.

Throws:
SystemException - if a system exception occurred

countByUuid

int countByUuid(String uuid)
                throws SystemException
Returns the number of layout prototypes where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the number of matching layout prototypes
Throws:
SystemException - if a system exception occurred

filterCountByUuid

int filterCountByUuid(String uuid)
                      throws SystemException
Returns the number of layout prototypes that the user has permission to view where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the number of matching layout prototypes that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByCompanyId

int countByCompanyId(long companyId)
                     throws SystemException
Returns the number of layout prototypes where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the number of matching layout prototypes
Throws:
SystemException - if a system exception occurred

filterCountByCompanyId

int filterCountByCompanyId(long companyId)
                           throws SystemException
Returns the number of layout prototypes that the user has permission to view where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the number of matching layout prototypes that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByC_A

int countByC_A(long companyId,
               boolean active)
               throws SystemException
Returns the number of layout prototypes where companyId = ? and active = ?.

Parameters:
companyId - the company ID
active - the active
Returns:
the number of matching layout prototypes
Throws:
SystemException - if a system exception occurred

filterCountByC_A

int filterCountByC_A(long companyId,
                     boolean active)
                     throws SystemException
Returns the number of layout prototypes that the user has permission to view where companyId = ? and active = ?.

Parameters:
companyId - the company ID
active - the active
Returns:
the number of matching layout prototypes that the user has permission to view
Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Returns the number of layout prototypes.

Returns:
the number of layout prototypes
Throws:
SystemException - if a system exception occurred

Liferay 6.1.2-ce-ga3