Liferay 6.0-ee

com.liferay.portal.service.persistence
Class LayoutSetPrototypeUtil

java.lang.Object
  extended by com.liferay.portal.service.persistence.LayoutSetPrototypeUtil

public class LayoutSetPrototypeUtil
extends Object

The persistence utility for the layout set prototype service. This utility wraps LayoutSetPrototypePersistenceImpl 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.

Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

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

Constructor Summary
LayoutSetPrototypeUtil()
           
 
Method Summary
static void cacheResult(LayoutSetPrototype layoutSetPrototype)
          Caches the layout set prototype in the entity cache if it is enabled.
static void cacheResult(List<LayoutSetPrototype> layoutSetPrototypes)
          Caches the layout set prototypes in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(LayoutSetPrototype layoutSetPrototype)
           
static int countAll()
          Counts all the layout set prototypes.
static int countByC_A(long companyId, boolean active)
          Counts all the layout set prototypes where companyId = ? and active = ?.
static int countByCompanyId(long companyId)
          Counts all the layout set prototypes where companyId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static LayoutSetPrototype create(long layoutSetPrototypeId)
          Creates a new layout set prototype with the primary key.
static LayoutSetPrototype fetchByPrimaryKey(long layoutSetPrototypeId)
          Finds the layout set prototype with the primary key or returns null if it could not be found.
static List<LayoutSetPrototype> findAll()
          Finds all the layout set prototypes.
static List<LayoutSetPrototype> findAll(int start, int end)
          Finds a range of all the layout set prototypes.
static List<LayoutSetPrototype> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the layout set prototypes.
static LayoutSetPrototype findByC_A_First(long companyId, boolean active, OrderByComparator orderByComparator)
          Finds the first layout set prototype in the ordered set where companyId = ? and active = ?.
static LayoutSetPrototype findByC_A_Last(long companyId, boolean active, OrderByComparator orderByComparator)
          Finds the last layout set prototype in the ordered set where companyId = ? and active = ?.
static LayoutSetPrototype[] findByC_A_PrevAndNext(long layoutSetPrototypeId, long companyId, boolean active, OrderByComparator orderByComparator)
          Finds the layout set prototypes before and after the current layout set prototype in the ordered set where companyId = ? and active = ?.
static List<LayoutSetPrototype> findByC_A(long companyId, boolean active)
          Finds all the layout set prototypes where companyId = ? and active = ?.
static List<LayoutSetPrototype> findByC_A(long companyId, boolean active, int start, int end)
          Finds a range of all the layout set prototypes where companyId = ? and active = ?.
static List<LayoutSetPrototype> findByC_A(long companyId, boolean active, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the layout set prototypes where companyId = ? and active = ?.
static LayoutSetPrototype findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Finds the first layout set prototype in the ordered set where companyId = ?.
static LayoutSetPrototype findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Finds the last layout set prototype in the ordered set where companyId = ?.
static LayoutSetPrototype[] findByCompanyId_PrevAndNext(long layoutSetPrototypeId, long companyId, OrderByComparator orderByComparator)
          Finds the layout set prototypes before and after the current layout set prototype in the ordered set where companyId = ?.
static List<LayoutSetPrototype> findByCompanyId(long companyId)
          Finds all the layout set prototypes where companyId = ?.
static List<LayoutSetPrototype> findByCompanyId(long companyId, int start, int end)
          Finds a range of all the layout set prototypes where companyId = ?.
static List<LayoutSetPrototype> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the layout set prototypes where companyId = ?.
static LayoutSetPrototype findByPrimaryKey(long layoutSetPrototypeId)
          Finds the layout set prototype with the primary key or throws a NoSuchLayoutSetPrototypeException if it could not be found.
static List<LayoutSetPrototype> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<LayoutSetPrototype> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<LayoutSetPrototype> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static LayoutSetPrototypePersistence getPersistence()
           
static LayoutSetPrototype remove(LayoutSetPrototype layoutSetPrototype)
           
static LayoutSetPrototype remove(long layoutSetPrototypeId)
          Removes the layout set prototype with the primary key from the database.
static void removeAll()
          Removes all the layout set prototypes from the database.
static void removeByC_A(long companyId, boolean active)
          Removes all the layout set prototypes where companyId = ? and active = ? from the database.
static void removeByCompanyId(long companyId)
          Removes all the layout set prototypes where companyId = ? from the database.
 void setPersistence(LayoutSetPrototypePersistence persistence)
           
static LayoutSetPrototype update(LayoutSetPrototype layoutSetPrototype, boolean merge)
           
static LayoutSetPrototype update(LayoutSetPrototype layoutSetPrototype, boolean merge, ServiceContext serviceContext)
           
static LayoutSetPrototype updateImpl(LayoutSetPrototype layoutSetPrototype, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutSetPrototypeUtil

public LayoutSetPrototypeUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(LayoutSetPrototype layoutSetPrototype)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<LayoutSetPrototype> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                     throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<LayoutSetPrototype> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                            int start,
                                                            int end)
                                                     throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<LayoutSetPrototype> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                            int start,
                                                            int end,
                                                            OrderByComparator orderByComparator)
                                                     throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

remove

public static LayoutSetPrototype remove(LayoutSetPrototype layoutSetPrototype)
                                 throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static LayoutSetPrototype update(LayoutSetPrototype layoutSetPrototype,
                                        boolean merge)
                                 throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static LayoutSetPrototype update(LayoutSetPrototype layoutSetPrototype,
                                        boolean merge,
                                        ServiceContext serviceContext)
                                 throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static void cacheResult(LayoutSetPrototype layoutSetPrototype)
Caches the layout set prototype in the entity cache if it is enabled.

Parameters:
layoutSetPrototype - the layout set prototype to cache

cacheResult

public static void cacheResult(List<LayoutSetPrototype> layoutSetPrototypes)
Caches the layout set prototypes in the entity cache if it is enabled.

Parameters:
layoutSetPrototypes - the layout set prototypes to cache

create

public static LayoutSetPrototype create(long layoutSetPrototypeId)
Creates a new layout set prototype with the primary key. Does not add the layout set prototype to the database.

Parameters:
layoutSetPrototypeId - the primary key for the new layout set prototype
Returns:
the new layout set prototype

remove

public static LayoutSetPrototype remove(long layoutSetPrototypeId)
                                 throws NoSuchLayoutSetPrototypeException,
                                        SystemException
Removes the layout set prototype with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
layoutSetPrototypeId - the primary key of the layout set prototype to remove
Returns:
the layout set prototype that was removed
Throws:
NoSuchLayoutSetPrototypeException - if a layout set prototype with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static LayoutSetPrototype updateImpl(LayoutSetPrototype layoutSetPrototype,
                                            boolean merge)
                                     throws SystemException
Throws:
SystemException

findByPrimaryKey

public static LayoutSetPrototype findByPrimaryKey(long layoutSetPrototypeId)
                                           throws NoSuchLayoutSetPrototypeException,
                                                  SystemException
Finds the layout set prototype with the primary key or throws a NoSuchLayoutSetPrototypeException if it could not be found.

Parameters:
layoutSetPrototypeId - the primary key of the layout set prototype to find
Returns:
the layout set prototype
Throws:
NoSuchLayoutSetPrototypeException - if a layout set prototype with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static LayoutSetPrototype fetchByPrimaryKey(long layoutSetPrototypeId)
                                            throws SystemException
Finds the layout set prototype with the primary key or returns null if it could not be found.

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

findByCompanyId

public static List<LayoutSetPrototype> findByCompanyId(long companyId)
                                                throws SystemException
Finds all the layout set prototypes where companyId = ?.

Parameters:
companyId - the company id to search with
Returns:
the matching layout set prototypes
Throws:
SystemException - if a system exception occurred

findByCompanyId

public static List<LayoutSetPrototype> findByCompanyId(long companyId,
                                                       int start,
                                                       int end)
                                                throws SystemException
Finds a range of all the layout set 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 to search with
start - the lower bound of the range of layout set prototypes to return
end - the upper bound of the range of layout set prototypes to return (not inclusive)
Returns:
the range of matching layout set prototypes
Throws:
SystemException - if a system exception occurred

findByCompanyId

public static List<LayoutSetPrototype> findByCompanyId(long companyId,
                                                       int start,
                                                       int end,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException
Finds an ordered range of all the layout set 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 to search with
start - the lower bound of the range of layout set prototypes to return
end - the upper bound of the range of layout set prototypes to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching layout set prototypes
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

public static LayoutSetPrototype findByCompanyId_First(long companyId,
                                                       OrderByComparator orderByComparator)
                                                throws NoSuchLayoutSetPrototypeException,
                                                       SystemException
Finds the first layout set prototype in the ordered set 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 to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching layout set prototype
Throws:
NoSuchLayoutSetPrototypeException - if a matching layout set prototype could not be found
SystemException - if a system exception occurred

findByCompanyId_Last

public static LayoutSetPrototype findByCompanyId_Last(long companyId,
                                                      OrderByComparator orderByComparator)
                                               throws NoSuchLayoutSetPrototypeException,
                                                      SystemException
Finds the last layout set prototype in the ordered set 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 to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching layout set prototype
Throws:
NoSuchLayoutSetPrototypeException - if a matching layout set prototype could not be found
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public static LayoutSetPrototype[] findByCompanyId_PrevAndNext(long layoutSetPrototypeId,
                                                               long companyId,
                                                               OrderByComparator orderByComparator)
                                                        throws NoSuchLayoutSetPrototypeException,
                                                               SystemException
Finds the layout set prototypes before and after the current layout set prototype in the ordered set 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:
layoutSetPrototypeId - the primary key of the current layout set prototype
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next layout set prototype
Throws:
NoSuchLayoutSetPrototypeException - if a layout set prototype with the primary key could not be found
SystemException - if a system exception occurred

findByC_A

public static List<LayoutSetPrototype> findByC_A(long companyId,
                                                 boolean active)
                                          throws SystemException
Finds all the layout set prototypes where companyId = ? and active = ?.

Parameters:
companyId - the company id to search with
active - the active to search with
Returns:
the matching layout set prototypes
Throws:
SystemException - if a system exception occurred

findByC_A

public static List<LayoutSetPrototype> findByC_A(long companyId,
                                                 boolean active,
                                                 int start,
                                                 int end)
                                          throws SystemException
Finds a range of all the layout set 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 to search with
active - the active to search with
start - the lower bound of the range of layout set prototypes to return
end - the upper bound of the range of layout set prototypes to return (not inclusive)
Returns:
the range of matching layout set prototypes
Throws:
SystemException - if a system exception occurred

findByC_A

public static List<LayoutSetPrototype> findByC_A(long companyId,
                                                 boolean active,
                                                 int start,
                                                 int end,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Finds an ordered range of all the layout set 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 to search with
active - the active to search with
start - the lower bound of the range of layout set prototypes to return
end - the upper bound of the range of layout set prototypes to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching layout set prototypes
Throws:
SystemException - if a system exception occurred

findByC_A_First

public static LayoutSetPrototype findByC_A_First(long companyId,
                                                 boolean active,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchLayoutSetPrototypeException,
                                                 SystemException
Finds the first layout set prototype in the ordered set 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 to search with
active - the active to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching layout set prototype
Throws:
NoSuchLayoutSetPrototypeException - if a matching layout set prototype could not be found
SystemException - if a system exception occurred

findByC_A_Last

public static LayoutSetPrototype findByC_A_Last(long companyId,
                                                boolean active,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchLayoutSetPrototypeException,
                                                SystemException
Finds the last layout set prototype in the ordered set 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 to search with
active - the active to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching layout set prototype
Throws:
NoSuchLayoutSetPrototypeException - if a matching layout set prototype could not be found
SystemException - if a system exception occurred

findByC_A_PrevAndNext

public static LayoutSetPrototype[] findByC_A_PrevAndNext(long layoutSetPrototypeId,
                                                         long companyId,
                                                         boolean active,
                                                         OrderByComparator orderByComparator)
                                                  throws NoSuchLayoutSetPrototypeException,
                                                         SystemException
Finds the layout set prototypes before and after the current layout set prototype in the ordered set 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:
layoutSetPrototypeId - the primary key of the current layout set prototype
companyId - the company id to search with
active - the active to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next layout set prototype
Throws:
NoSuchLayoutSetPrototypeException - if a layout set prototype with the primary key could not be found
SystemException - if a system exception occurred

findAll

public static List<LayoutSetPrototype> findAll()
                                        throws SystemException
Finds all the layout set prototypes.

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

findAll

public static List<LayoutSetPrototype> findAll(int start,
                                               int end)
                                        throws SystemException
Finds a range of all the layout set 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 set prototypes to return
end - the upper bound of the range of layout set prototypes to return (not inclusive)
Returns:
the range of layout set prototypes
Throws:
SystemException - if a system exception occurred

findAll

public static List<LayoutSetPrototype> findAll(int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Finds an ordered range of all the layout set 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 set prototypes to return
end - the upper bound of the range of layout set prototypes to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of layout set prototypes
Throws:
SystemException - if a system exception occurred

removeByCompanyId

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

Parameters:
companyId - the company id to search with
Throws:
SystemException - if a system exception occurred

removeByC_A

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

Parameters:
companyId - the company id to search with
active - the active to search with
Throws:
SystemException - if a system exception occurred

removeAll

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

Throws:
SystemException - if a system exception occurred

countByCompanyId

public static int countByCompanyId(long companyId)
                            throws SystemException
Counts all the layout set prototypes where companyId = ?.

Parameters:
companyId - the company id to search with
Returns:
the number of matching layout set prototypes
Throws:
SystemException - if a system exception occurred

countByC_A

public static int countByC_A(long companyId,
                             boolean active)
                      throws SystemException
Counts all the layout set prototypes where companyId = ? and active = ?.

Parameters:
companyId - the company id to search with
active - the active to search with
Returns:
the number of matching layout set prototypes
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Counts all the layout set prototypes.

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

getPersistence

public static LayoutSetPrototypePersistence getPersistence()

setPersistence

public void setPersistence(LayoutSetPrototypePersistence persistence)

Liferay 6.0-ee