Class LayoutPrototypeUtil
com.liferay.portal.service.persistence.impl.LayoutPrototypePersistenceImpl 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
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(LayoutPrototype layoutPrototype) Caches the layout prototype in the entity cache if it is enabled.static voidcacheResult(List<LayoutPrototype> layoutPrototypes) Caches the layout prototypes in the entity cache if it is enabled.static voidstatic voidclearCache(LayoutPrototype layoutPrototype) static intcountAll()Returns the number of layout prototypes.static intcountByC_A(long companyId, boolean active) Returns the number of layout prototypes where companyId = ? and active = ?.static intcountByCompanyId(long companyId) Returns the number of layout prototypes where companyId = ?.static intcountByUuid(String uuid) Returns the number of layout prototypes where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of layout prototypes where uuid = ? and companyId = ?.static longcountWithDynamicQuery(DynamicQuery dynamicQuery) static LayoutPrototypecreate(long layoutPrototypeId) Creates a new layout prototype with the primary key.static LayoutPrototypefetchByC_A_First(long companyId, boolean active, OrderByComparator<LayoutPrototype> orderByComparator) Returns the first layout prototype in the ordered set where companyId = ? and active = ?.static LayoutPrototypefetchByC_A_Last(long companyId, boolean active, OrderByComparator<LayoutPrototype> orderByComparator) Returns the last layout prototype in the ordered set where companyId = ? and active = ?.static LayoutPrototypefetchByCompanyId_First(long companyId, OrderByComparator<LayoutPrototype> orderByComparator) Returns the first layout prototype in the ordered set where companyId = ?.static LayoutPrototypefetchByCompanyId_Last(long companyId, OrderByComparator<LayoutPrototype> orderByComparator) Returns the last layout prototype in the ordered set where companyId = ?.static LayoutPrototypefetchByPrimaryKey(long layoutPrototypeId) Returns the layout prototype with the primary key or returnsnullif it could not be found.static Map<Serializable,LayoutPrototype> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static LayoutPrototypefetchByUuid_C_First(String uuid, long companyId, OrderByComparator<LayoutPrototype> orderByComparator) Returns the first layout prototype in the ordered set where uuid = ? and companyId = ?.static LayoutPrototypefetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<LayoutPrototype> orderByComparator) Returns the last layout prototype in the ordered set where uuid = ? and companyId = ?.static LayoutPrototypefetchByUuid_First(String uuid, OrderByComparator<LayoutPrototype> orderByComparator) Returns the first layout prototype in the ordered set where uuid = ?.static LayoutPrototypefetchByUuid_Last(String uuid, OrderByComparator<LayoutPrototype> orderByComparator) Returns the last layout prototype in the ordered set where uuid = ?.static intfilterCountByC_A(long companyId, boolean active) Returns the number of layout prototypes that the user has permission to view where companyId = ? and active = ?.static intfilterCountByCompanyId(long companyId) Returns the number of layout prototypes that the user has permission to view where companyId = ?.static intfilterCountByUuid(String uuid) Returns the number of layout prototypes that the user has permission to view where uuid = ?.static intfilterCountByUuid_C(String uuid, long companyId) Returns the number of layout prototypes that the user has permission to view where uuid = ? and companyId = ?.static List<LayoutPrototype>filterFindByC_A(long companyId, boolean active) Returns all the layout prototypes that the user has permission to view where companyId = ? and active = ?.static 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 = ?.static List<LayoutPrototype>filterFindByC_A(long companyId, boolean active, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator) Returns an ordered range of all the layout prototypes that the user has permissions to view where companyId = ? and active = ?.static LayoutPrototype[]filterFindByC_A_PrevAndNext(long layoutPrototypeId, long companyId, boolean active, OrderByComparator<LayoutPrototype> 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 = ?.static List<LayoutPrototype>filterFindByCompanyId(long companyId) Returns all the layout prototypes that the user has permission to view where companyId = ?.static 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 = ?.static List<LayoutPrototype>filterFindByCompanyId(long companyId, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator) Returns an ordered range of all the layout prototypes that the user has permissions to view where companyId = ?.static LayoutPrototype[]filterFindByCompanyId_PrevAndNext(long layoutPrototypeId, long companyId, OrderByComparator<LayoutPrototype> 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 = ?.static List<LayoutPrototype>filterFindByUuid(String uuid) Returns all the layout prototypes that the user has permission to view where uuid = ?.static 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 = ?.static List<LayoutPrototype>filterFindByUuid(String uuid, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator) Returns an ordered range of all the layout prototypes that the user has permissions to view where uuid = ?.static List<LayoutPrototype>filterFindByUuid_C(String uuid, long companyId) Returns all the layout prototypes that the user has permission to view where uuid = ? and companyId = ?.static List<LayoutPrototype>filterFindByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the layout prototypes that the user has permission to view where uuid = ? and companyId = ?.static List<LayoutPrototype>filterFindByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator) Returns an ordered range of all the layout prototypes that the user has permissions to view where uuid = ? and companyId = ?.static LayoutPrototype[]filterFindByUuid_C_PrevAndNext(long layoutPrototypeId, String uuid, long companyId, OrderByComparator<LayoutPrototype> 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 = ? and companyId = ?.static LayoutPrototype[]filterFindByUuid_PrevAndNext(long layoutPrototypeId, String uuid, OrderByComparator<LayoutPrototype> 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 = ?.static List<LayoutPrototype>findAll()Returns all the layout prototypes.static List<LayoutPrototype>findAll(int start, int end) Returns a range of all the layout prototypes.static List<LayoutPrototype>findAll(int start, int end, OrderByComparator<LayoutPrototype> orderByComparator) Returns an ordered range of all the layout prototypes.static List<LayoutPrototype>findAll(int start, int end, OrderByComparator<LayoutPrototype> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout prototypes.static List<LayoutPrototype>findByC_A(long companyId, boolean active) Returns all the layout prototypes where companyId = ? and active = ?.static List<LayoutPrototype>findByC_A(long companyId, boolean active, int start, int end) Returns a range of all the layout prototypes where companyId = ? and active = ?.static List<LayoutPrototype>findByC_A(long companyId, boolean active, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator) Returns an ordered range of all the layout prototypes where companyId = ? and active = ?.static List<LayoutPrototype>findByC_A(long companyId, boolean active, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout prototypes where companyId = ? and active = ?.static LayoutPrototypefindByC_A_First(long companyId, boolean active, OrderByComparator<LayoutPrototype> orderByComparator) Returns the first layout prototype in the ordered set where companyId = ? and active = ?.static LayoutPrototypefindByC_A_Last(long companyId, boolean active, OrderByComparator<LayoutPrototype> orderByComparator) Returns the last layout prototype in the ordered set where companyId = ? and active = ?.static LayoutPrototype[]findByC_A_PrevAndNext(long layoutPrototypeId, long companyId, boolean active, OrderByComparator<LayoutPrototype> orderByComparator) Returns the layout prototypes before and after the current layout prototype in the ordered set where companyId = ? and active = ?.static List<LayoutPrototype>findByCompanyId(long companyId) Returns all the layout prototypes where companyId = ?.static List<LayoutPrototype>findByCompanyId(long companyId, int start, int end) Returns a range of all the layout prototypes where companyId = ?.static List<LayoutPrototype>findByCompanyId(long companyId, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator) Returns an ordered range of all the layout prototypes where companyId = ?.static List<LayoutPrototype>findByCompanyId(long companyId, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout prototypes where companyId = ?.static LayoutPrototypefindByCompanyId_First(long companyId, OrderByComparator<LayoutPrototype> orderByComparator) Returns the first layout prototype in the ordered set where companyId = ?.static LayoutPrototypefindByCompanyId_Last(long companyId, OrderByComparator<LayoutPrototype> orderByComparator) Returns the last layout prototype in the ordered set where companyId = ?.static LayoutPrototype[]findByCompanyId_PrevAndNext(long layoutPrototypeId, long companyId, OrderByComparator<LayoutPrototype> orderByComparator) Returns the layout prototypes before and after the current layout prototype in the ordered set where companyId = ?.static LayoutPrototypefindByPrimaryKey(long layoutPrototypeId) Returns the layout prototype with the primary key or throws aNoSuchLayoutPrototypeExceptionif it could not be found.static List<LayoutPrototype>findByUuid(String uuid) Returns all the layout prototypes where uuid = ?.static List<LayoutPrototype>findByUuid(String uuid, int start, int end) Returns a range of all the layout prototypes where uuid = ?.static List<LayoutPrototype>findByUuid(String uuid, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator) Returns an ordered range of all the layout prototypes where uuid = ?.static List<LayoutPrototype>findByUuid(String uuid, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout prototypes where uuid = ?.static List<LayoutPrototype>findByUuid_C(String uuid, long companyId) Returns all the layout prototypes where uuid = ? and companyId = ?.static List<LayoutPrototype>findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the layout prototypes where uuid = ? and companyId = ?.static List<LayoutPrototype>findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator) Returns an ordered range of all the layout prototypes where uuid = ? and companyId = ?.static List<LayoutPrototype>findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout prototypes where uuid = ? and companyId = ?.static LayoutPrototypefindByUuid_C_First(String uuid, long companyId, OrderByComparator<LayoutPrototype> orderByComparator) Returns the first layout prototype in the ordered set where uuid = ? and companyId = ?.static LayoutPrototypefindByUuid_C_Last(String uuid, long companyId, OrderByComparator<LayoutPrototype> orderByComparator) Returns the last layout prototype in the ordered set where uuid = ? and companyId = ?.static LayoutPrototype[]findByUuid_C_PrevAndNext(long layoutPrototypeId, String uuid, long companyId, OrderByComparator<LayoutPrototype> orderByComparator) Returns the layout prototypes before and after the current layout prototype in the ordered set where uuid = ? and companyId = ?.static LayoutPrototypefindByUuid_First(String uuid, OrderByComparator<LayoutPrototype> orderByComparator) Returns the first layout prototype in the ordered set where uuid = ?.static LayoutPrototypefindByUuid_Last(String uuid, OrderByComparator<LayoutPrototype> orderByComparator) Returns the last layout prototype in the ordered set where uuid = ?.static LayoutPrototype[]findByUuid_PrevAndNext(long layoutPrototypeId, String uuid, OrderByComparator<LayoutPrototype> orderByComparator) Returns the layout prototypes before and after the current layout prototype in the ordered set where uuid = ?.static List<LayoutPrototype>findWithDynamicQuery(DynamicQuery dynamicQuery) static List<LayoutPrototype>findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) static List<LayoutPrototype>findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator) static LayoutPrototypePersistencestatic LayoutPrototyperemove(long layoutPrototypeId) Removes the layout prototype with the primary key from the database.static voidRemoves all the layout prototypes from the database.static voidremoveByC_A(long companyId, boolean active) Removes all the layout prototypes where companyId = ? and active = ? from the database.static voidremoveByCompanyId(long companyId) Removes all the layout prototypes where companyId = ? from the database.static voidremoveByUuid(String uuid) Removes all the layout prototypes where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the layout prototypes where uuid = ? and companyId = ? from the database.static voidsetPersistence(LayoutPrototypePersistence persistence) static LayoutPrototypeupdate(LayoutPrototype layoutPrototype) static LayoutPrototypeupdate(LayoutPrototype layoutPrototype, ServiceContext serviceContext) static LayoutPrototypeupdateImpl(LayoutPrototype layoutPrototype)
-
Constructor Details
-
LayoutPrototypeUtil
public LayoutPrototypeUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
-
countWithDynamicQuery
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
-
findWithDynamicQuery
public static List<LayoutPrototype> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) -
findWithDynamicQuery
public static List<LayoutPrototype> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator) -
update
-
update
public static LayoutPrototype update(LayoutPrototype layoutPrototype, ServiceContext serviceContext) -
findByUuid
Returns all the layout prototypes where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching layout prototypes
-
findByUuid
Returns a range of all the layout prototypes where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of layout prototypesend- the upper bound of the range of layout prototypes (not inclusive)- Returns:
- the range of matching layout prototypes
-
findByUuid
public static List<LayoutPrototype> findByUuid(String uuid, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator) Returns an ordered range of all the layout prototypes where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of layout prototypesend- the upper bound of the range of layout prototypes (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching layout prototypes
-
findByUuid
public static List<LayoutPrototype> findByUuid(String uuid, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout prototypes where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of layout prototypesend- the upper bound of the range of layout prototypes (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching layout prototypes
-
findByUuid_First
public static LayoutPrototype findByUuid_First(String uuid, OrderByComparator<LayoutPrototype> orderByComparator) throws NoSuchLayoutPrototypeException Returns the first layout prototype in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching layout prototype
- Throws:
NoSuchLayoutPrototypeException- if a matching layout prototype could not be foundNoSuchLayoutPrototypeException
-
fetchByUuid_First
public static LayoutPrototype fetchByUuid_First(String uuid, OrderByComparator<LayoutPrototype> orderByComparator) Returns the first layout prototype in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching layout prototype, or
nullif a matching layout prototype could not be found
-
findByUuid_Last
public static LayoutPrototype findByUuid_Last(String uuid, OrderByComparator<LayoutPrototype> orderByComparator) throws NoSuchLayoutPrototypeException Returns the last layout prototype in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching layout prototype
- Throws:
NoSuchLayoutPrototypeException- if a matching layout prototype could not be foundNoSuchLayoutPrototypeException
-
fetchByUuid_Last
public static LayoutPrototype fetchByUuid_Last(String uuid, OrderByComparator<LayoutPrototype> orderByComparator) Returns the last layout prototype in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching layout prototype, or
nullif a matching layout prototype could not be found
-
findByUuid_PrevAndNext
public static LayoutPrototype[] findByUuid_PrevAndNext(long layoutPrototypeId, String uuid, OrderByComparator<LayoutPrototype> orderByComparator) throws NoSuchLayoutPrototypeException 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 prototypeuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next layout prototype
- Throws:
NoSuchLayoutPrototypeException- if a layout prototype with the primary key could not be foundNoSuchLayoutPrototypeException
-
filterFindByUuid
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
-
filterFindByUuid
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of layout prototypesend- 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
-
filterFindByUuid
public static List<LayoutPrototype> filterFindByUuid(String uuid, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator) 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of layout prototypesend- the upper bound of the range of layout prototypes (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching layout prototypes that the user has permission to view
-
filterFindByUuid_PrevAndNext
public static LayoutPrototype[] filterFindByUuid_PrevAndNext(long layoutPrototypeId, String uuid, OrderByComparator<LayoutPrototype> orderByComparator) throws NoSuchLayoutPrototypeException 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 prototypeuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next layout prototype
- Throws:
NoSuchLayoutPrototypeException- if a layout prototype with the primary key could not be foundNoSuchLayoutPrototypeException
-
removeByUuid
Removes all the layout prototypes where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of layout prototypes where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching layout prototypes
-
filterCountByUuid
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
-
findByUuid_C
Returns all the layout prototypes where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching layout prototypes
-
findByUuid_C
Returns a range of all the layout prototypes where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of layout prototypesend- the upper bound of the range of layout prototypes (not inclusive)- Returns:
- the range of matching layout prototypes
-
findByUuid_C
public static List<LayoutPrototype> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator) Returns an ordered range of all the layout prototypes where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of layout prototypesend- the upper bound of the range of layout prototypes (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching layout prototypes
-
findByUuid_C
public static List<LayoutPrototype> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout prototypes where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of layout prototypesend- the upper bound of the range of layout prototypes (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching layout prototypes
-
findByUuid_C_First
public static LayoutPrototype findByUuid_C_First(String uuid, long companyId, OrderByComparator<LayoutPrototype> orderByComparator) throws NoSuchLayoutPrototypeException Returns the first layout prototype in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching layout prototype
- Throws:
NoSuchLayoutPrototypeException- if a matching layout prototype could not be foundNoSuchLayoutPrototypeException
-
fetchByUuid_C_First
public static LayoutPrototype fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<LayoutPrototype> orderByComparator) Returns the first layout prototype in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching layout prototype, or
nullif a matching layout prototype could not be found
-
findByUuid_C_Last
public static LayoutPrototype findByUuid_C_Last(String uuid, long companyId, OrderByComparator<LayoutPrototype> orderByComparator) throws NoSuchLayoutPrototypeException Returns the last layout prototype in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching layout prototype
- Throws:
NoSuchLayoutPrototypeException- if a matching layout prototype could not be foundNoSuchLayoutPrototypeException
-
fetchByUuid_C_Last
public static LayoutPrototype fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<LayoutPrototype> orderByComparator) Returns the last layout prototype in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching layout prototype, or
nullif a matching layout prototype could not be found
-
findByUuid_C_PrevAndNext
public static LayoutPrototype[] findByUuid_C_PrevAndNext(long layoutPrototypeId, String uuid, long companyId, OrderByComparator<LayoutPrototype> orderByComparator) throws NoSuchLayoutPrototypeException Returns the layout prototypes before and after the current layout prototype in the ordered set where uuid = ? and companyId = ?.- Parameters:
layoutPrototypeId- the primary key of the current layout prototypeuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next layout prototype
- Throws:
NoSuchLayoutPrototypeException- if a layout prototype with the primary key could not be foundNoSuchLayoutPrototypeException
-
filterFindByUuid_C
Returns all the layout prototypes that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching layout prototypes that the user has permission to view
-
filterFindByUuid_C
public static List<LayoutPrototype> filterFindByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the layout prototypes that the user has permission to view where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of layout prototypesend- 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
-
filterFindByUuid_C
public static List<LayoutPrototype> filterFindByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator) Returns an ordered range of all the layout prototypes that the user has permissions to view where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of layout prototypesend- the upper bound of the range of layout prototypes (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching layout prototypes that the user has permission to view
-
filterFindByUuid_C_PrevAndNext
public static LayoutPrototype[] filterFindByUuid_C_PrevAndNext(long layoutPrototypeId, String uuid, long companyId, OrderByComparator<LayoutPrototype> orderByComparator) throws NoSuchLayoutPrototypeException 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 = ? and companyId = ?.- Parameters:
layoutPrototypeId- the primary key of the current layout prototypeuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next layout prototype
- Throws:
NoSuchLayoutPrototypeException- if a layout prototype with the primary key could not be foundNoSuchLayoutPrototypeException
-
removeByUuid_C
Removes all the layout prototypes where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of layout prototypes where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching layout prototypes
-
filterCountByUuid_C
Returns the number of layout prototypes that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching layout prototypes that the user has permission to view
-
findByCompanyId
Returns all the layout prototypes where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching layout prototypes
-
findByCompanyId
Returns a range of all the layout prototypes where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of layout prototypesend- the upper bound of the range of layout prototypes (not inclusive)- Returns:
- the range of matching layout prototypes
-
findByCompanyId
public static List<LayoutPrototype> findByCompanyId(long companyId, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator) Returns an ordered range of all the layout prototypes where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of layout prototypesend- the upper bound of the range of layout prototypes (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching layout prototypes
-
findByCompanyId
public static List<LayoutPrototype> findByCompanyId(long companyId, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout prototypes where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of layout prototypesend- the upper bound of the range of layout prototypes (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching layout prototypes
-
findByCompanyId_First
public static LayoutPrototype findByCompanyId_First(long companyId, OrderByComparator<LayoutPrototype> orderByComparator) throws NoSuchLayoutPrototypeException Returns the first layout prototype in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching layout prototype
- Throws:
NoSuchLayoutPrototypeException- if a matching layout prototype could not be foundNoSuchLayoutPrototypeException
-
fetchByCompanyId_First
public static LayoutPrototype fetchByCompanyId_First(long companyId, OrderByComparator<LayoutPrototype> orderByComparator) Returns the first layout prototype in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching layout prototype, or
nullif a matching layout prototype could not be found
-
findByCompanyId_Last
public static LayoutPrototype findByCompanyId_Last(long companyId, OrderByComparator<LayoutPrototype> orderByComparator) throws NoSuchLayoutPrototypeException Returns the last layout prototype in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching layout prototype
- Throws:
NoSuchLayoutPrototypeException- if a matching layout prototype could not be foundNoSuchLayoutPrototypeException
-
fetchByCompanyId_Last
public static LayoutPrototype fetchByCompanyId_Last(long companyId, OrderByComparator<LayoutPrototype> orderByComparator) Returns the last layout prototype in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching layout prototype, or
nullif a matching layout prototype could not be found
-
findByCompanyId_PrevAndNext
public static LayoutPrototype[] findByCompanyId_PrevAndNext(long layoutPrototypeId, long companyId, OrderByComparator<LayoutPrototype> orderByComparator) throws NoSuchLayoutPrototypeException 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 prototypecompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next layout prototype
- Throws:
NoSuchLayoutPrototypeException- if a layout prototype with the primary key could not be foundNoSuchLayoutPrototypeException
-
filterFindByCompanyId
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
-
filterFindByCompanyId
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of layout prototypesend- 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
-
filterFindByCompanyId
public static List<LayoutPrototype> filterFindByCompanyId(long companyId, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator) 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of layout prototypesend- the upper bound of the range of layout prototypes (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching layout prototypes that the user has permission to view
-
filterFindByCompanyId_PrevAndNext
public static LayoutPrototype[] filterFindByCompanyId_PrevAndNext(long layoutPrototypeId, long companyId, OrderByComparator<LayoutPrototype> orderByComparator) throws NoSuchLayoutPrototypeException 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 prototypecompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next layout prototype
- Throws:
NoSuchLayoutPrototypeException- if a layout prototype with the primary key could not be foundNoSuchLayoutPrototypeException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the layout prototypes where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of layout prototypes where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching layout prototypes
-
filterCountByCompanyId
public static int filterCountByCompanyId(long companyId) 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
-
findByC_A
Returns all the layout prototypes where companyId = ? and active = ?.- Parameters:
companyId- the company IDactive- the active- Returns:
- the matching layout prototypes
-
findByC_A
Returns a range of all the layout prototypes where companyId = ? and active = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
companyId- the company IDactive- the activestart- the lower bound of the range of layout prototypesend- the upper bound of the range of layout prototypes (not inclusive)- Returns:
- the range of matching layout prototypes
-
findByC_A
public static List<LayoutPrototype> findByC_A(long companyId, boolean active, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator) Returns an ordered range of all the layout prototypes where companyId = ? and active = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
companyId- the company IDactive- the activestart- the lower bound of the range of layout prototypesend- the upper bound of the range of layout prototypes (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching layout prototypes
-
findByC_A
public static List<LayoutPrototype> findByC_A(long companyId, boolean active, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout prototypes where companyId = ? and active = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
companyId- the company IDactive- the activestart- the lower bound of the range of layout prototypesend- the upper bound of the range of layout prototypes (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching layout prototypes
-
findByC_A_First
public static LayoutPrototype findByC_A_First(long companyId, boolean active, OrderByComparator<LayoutPrototype> orderByComparator) throws NoSuchLayoutPrototypeException Returns the first layout prototype in the ordered set where companyId = ? and active = ?.- Parameters:
companyId- the company IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching layout prototype
- Throws:
NoSuchLayoutPrototypeException- if a matching layout prototype could not be foundNoSuchLayoutPrototypeException
-
fetchByC_A_First
public static LayoutPrototype fetchByC_A_First(long companyId, boolean active, OrderByComparator<LayoutPrototype> orderByComparator) Returns the first layout prototype in the ordered set where companyId = ? and active = ?.- Parameters:
companyId- the company IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching layout prototype, or
nullif a matching layout prototype could not be found
-
findByC_A_Last
public static LayoutPrototype findByC_A_Last(long companyId, boolean active, OrderByComparator<LayoutPrototype> orderByComparator) throws NoSuchLayoutPrototypeException Returns the last layout prototype in the ordered set where companyId = ? and active = ?.- Parameters:
companyId- the company IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching layout prototype
- Throws:
NoSuchLayoutPrototypeException- if a matching layout prototype could not be foundNoSuchLayoutPrototypeException
-
fetchByC_A_Last
public static LayoutPrototype fetchByC_A_Last(long companyId, boolean active, OrderByComparator<LayoutPrototype> orderByComparator) Returns the last layout prototype in the ordered set where companyId = ? and active = ?.- Parameters:
companyId- the company IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching layout prototype, or
nullif a matching layout prototype could not be found
-
findByC_A_PrevAndNext
public static LayoutPrototype[] findByC_A_PrevAndNext(long layoutPrototypeId, long companyId, boolean active, OrderByComparator<LayoutPrototype> orderByComparator) throws NoSuchLayoutPrototypeException 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 prototypecompanyId- the company IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next layout prototype
- Throws:
NoSuchLayoutPrototypeException- if a layout prototype with the primary key could not be foundNoSuchLayoutPrototypeException
-
filterFindByC_A
Returns all the layout prototypes that the user has permission to view where companyId = ? and active = ?.- Parameters:
companyId- the company IDactive- the active- Returns:
- the matching layout prototypes that the user has permission to view
-
filterFindByC_A
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
companyId- the company IDactive- the activestart- the lower bound of the range of layout prototypesend- 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
-
filterFindByC_A
public static List<LayoutPrototype> filterFindByC_A(long companyId, boolean active, int start, int end, OrderByComparator<LayoutPrototype> orderByComparator) 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
companyId- the company IDactive- the activestart- the lower bound of the range of layout prototypesend- the upper bound of the range of layout prototypes (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching layout prototypes that the user has permission to view
-
filterFindByC_A_PrevAndNext
public static LayoutPrototype[] filterFindByC_A_PrevAndNext(long layoutPrototypeId, long companyId, boolean active, OrderByComparator<LayoutPrototype> orderByComparator) throws NoSuchLayoutPrototypeException 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 prototypecompanyId- the company IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next layout prototype
- Throws:
NoSuchLayoutPrototypeException- if a layout prototype with the primary key could not be foundNoSuchLayoutPrototypeException
-
removeByC_A
public static void removeByC_A(long companyId, boolean active) Removes all the layout prototypes where companyId = ? and active = ? from the database.- Parameters:
companyId- the company IDactive- the active
-
countByC_A
public static int countByC_A(long companyId, boolean active) Returns the number of layout prototypes where companyId = ? and active = ?.- Parameters:
companyId- the company IDactive- the active- Returns:
- the number of matching layout prototypes
-
filterCountByC_A
public static int filterCountByC_A(long companyId, boolean active) Returns the number of layout prototypes that the user has permission to view where companyId = ? and active = ?.- Parameters:
companyId- the company IDactive- the active- Returns:
- the number of matching layout prototypes that the user has permission to view
-
cacheResult
Caches the layout prototype in the entity cache if it is enabled.- Parameters:
layoutPrototype- the layout prototype
-
cacheResult
Caches the layout prototypes in the entity cache if it is enabled.- Parameters:
layoutPrototypes- the layout prototypes
-
create
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
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 foundNoSuchLayoutPrototypeException
-
updateImpl
-
findByPrimaryKey
public static LayoutPrototype findByPrimaryKey(long layoutPrototypeId) throws NoSuchLayoutPrototypeException Returns the layout prototype with the primary key or throws aNoSuchLayoutPrototypeExceptionif 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 foundNoSuchLayoutPrototypeException
-
fetchByPrimaryKey
Returns the layout prototype with the primary key or returnsnullif it could not be found.- Parameters:
layoutPrototypeId- the primary key of the layout prototype- Returns:
- the layout prototype, or
nullif a layout prototype with the primary key could not be found
-
findAll
Returns all the layout prototypes.- Returns:
- the layout prototypes
-
findAll
Returns a range of all the layout prototypes.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
start- the lower bound of the range of layout prototypesend- the upper bound of the range of layout prototypes (not inclusive)- Returns:
- the range of layout prototypes
-
findAll
public static List<LayoutPrototype> findAll(int start, int end, OrderByComparator<LayoutPrototype> orderByComparator) Returns an ordered range of all the layout prototypes.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
start- the lower bound of the range of layout prototypesend- the upper bound of the range of layout prototypes (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of layout prototypes
-
findAll
public static List<LayoutPrototype> findAll(int start, int end, OrderByComparator<LayoutPrototype> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout prototypes.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromLayoutPrototypeModelImpl.- Parameters:
start- the lower bound of the range of layout prototypesend- the upper bound of the range of layout prototypes (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of layout prototypes
-
removeAll
public static void removeAll()Removes all the layout prototypes from the database. -
countAll
public static int countAll()Returns the number of layout prototypes.- Returns:
- the number of layout prototypes
-
getPersistence
-
setPersistence
-