@ProviderType public interface LayoutSetPersistence extends BasePersistence<LayoutSet>
Caching information and settings can be found in portal.properties
LayoutSetPersistenceImpl
,
LayoutSetUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(LayoutSet layoutSet)
Caches the layout set in the entity cache if it is enabled.
|
void |
cacheResult(List<LayoutSet> layoutSets)
Caches the layout sets in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of layout sets.
|
int |
countByG_P(long groupId,
boolean privateLayout)
Returns the number of layout sets where groupId = ? and privateLayout = ?.
|
int |
countByGroupId(long groupId)
Returns the number of layout sets where groupId = ?.
|
int |
countByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
Returns the number of layout sets where layoutSetPrototypeUuid = ?.
|
int |
countByP_L(boolean privateLayout,
long logoId)
Returns the number of layout sets where privateLayout = ? and logoId = ?.
|
LayoutSet |
create(long layoutSetId)
Creates a new layout set with the primary key.
|
LayoutSet |
fetchByG_P(long groupId,
boolean privateLayout)
Returns the layout set where groupId = ? and privateLayout = ? or returns
null if it could not be found. |
LayoutSet |
fetchByG_P(long groupId,
boolean privateLayout,
boolean retrieveFromCache)
Returns the layout set where groupId = ? and privateLayout = ? or returns
null if it could not be found, optionally using the finder cache. |
LayoutSet |
fetchByGroupId_First(long groupId,
OrderByComparator<LayoutSet> orderByComparator)
Returns the first layout set in the ordered set where groupId = ?.
|
LayoutSet |
fetchByGroupId_Last(long groupId,
OrderByComparator<LayoutSet> orderByComparator)
Returns the last layout set in the ordered set where groupId = ?.
|
LayoutSet |
fetchByLayoutSetPrototypeUuid_First(String layoutSetPrototypeUuid,
OrderByComparator<LayoutSet> orderByComparator)
Returns the first layout set in the ordered set where layoutSetPrototypeUuid = ?.
|
LayoutSet |
fetchByLayoutSetPrototypeUuid_Last(String layoutSetPrototypeUuid,
OrderByComparator<LayoutSet> orderByComparator)
Returns the last layout set in the ordered set where layoutSetPrototypeUuid = ?.
|
LayoutSet |
fetchByP_L(boolean privateLayout,
long logoId)
Returns the layout set where privateLayout = ? and logoId = ? or returns
null if it could not be found. |
LayoutSet |
fetchByP_L(boolean privateLayout,
long logoId,
boolean retrieveFromCache)
Returns the layout set where privateLayout = ? and logoId = ? or returns
null if it could not be found, optionally using the finder cache. |
LayoutSet |
fetchByPrimaryKey(long layoutSetId)
Returns the layout set with the primary key or returns
null if it could not be found. |
Map<Serializable,LayoutSet> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
List<LayoutSet> |
findAll()
Returns all the layout sets.
|
List<LayoutSet> |
findAll(int start,
int end)
Returns a range of all the layout sets.
|
List<LayoutSet> |
findAll(int start,
int end,
OrderByComparator<LayoutSet> orderByComparator)
Returns an ordered range of all the layout sets.
|
List<LayoutSet> |
findAll(int start,
int end,
OrderByComparator<LayoutSet> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the layout sets.
|
LayoutSet |
findByG_P(long groupId,
boolean privateLayout)
Returns the layout set where groupId = ? and privateLayout = ? or throws a
NoSuchLayoutSetException if it could not be found. |
LayoutSet |
findByGroupId_First(long groupId,
OrderByComparator<LayoutSet> orderByComparator)
Returns the first layout set in the ordered set where groupId = ?.
|
LayoutSet |
findByGroupId_Last(long groupId,
OrderByComparator<LayoutSet> orderByComparator)
Returns the last layout set in the ordered set where groupId = ?.
|
LayoutSet[] |
findByGroupId_PrevAndNext(long layoutSetId,
long groupId,
OrderByComparator<LayoutSet> orderByComparator)
Returns the layout sets before and after the current layout set in the ordered set where groupId = ?.
|
List<LayoutSet> |
findByGroupId(long groupId)
Returns all the layout sets where groupId = ?.
|
List<LayoutSet> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the layout sets where groupId = ?.
|
List<LayoutSet> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<LayoutSet> orderByComparator)
Returns an ordered range of all the layout sets where groupId = ?.
|
List<LayoutSet> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<LayoutSet> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the layout sets where groupId = ?.
|
LayoutSet |
findByLayoutSetPrototypeUuid_First(String layoutSetPrototypeUuid,
OrderByComparator<LayoutSet> orderByComparator)
Returns the first layout set in the ordered set where layoutSetPrototypeUuid = ?.
|
LayoutSet |
findByLayoutSetPrototypeUuid_Last(String layoutSetPrototypeUuid,
OrderByComparator<LayoutSet> orderByComparator)
Returns the last layout set in the ordered set where layoutSetPrototypeUuid = ?.
|
LayoutSet[] |
findByLayoutSetPrototypeUuid_PrevAndNext(long layoutSetId,
String layoutSetPrototypeUuid,
OrderByComparator<LayoutSet> orderByComparator)
Returns the layout sets before and after the current layout set in the ordered set where layoutSetPrototypeUuid = ?.
|
List<LayoutSet> |
findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
Returns all the layout sets where layoutSetPrototypeUuid = ?.
|
List<LayoutSet> |
findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid,
int start,
int end)
Returns a range of all the layout sets where layoutSetPrototypeUuid = ?.
|
List<LayoutSet> |
findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid,
int start,
int end,
OrderByComparator<LayoutSet> orderByComparator)
Returns an ordered range of all the layout sets where layoutSetPrototypeUuid = ?.
|
List<LayoutSet> |
findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid,
int start,
int end,
OrderByComparator<LayoutSet> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the layout sets where layoutSetPrototypeUuid = ?.
|
LayoutSet |
findByP_L(boolean privateLayout,
long logoId)
Returns the layout set where privateLayout = ? and logoId = ? or throws a
NoSuchLayoutSetException if it could not be found. |
LayoutSet |
findByPrimaryKey(long layoutSetId)
Returns the layout set with the primary key or throws a
NoSuchLayoutSetException if it could not be found. |
Set<String> |
getBadColumnNames() |
LayoutSet |
remove(long layoutSetId)
Removes the layout set with the primary key from the database.
|
void |
removeAll()
Removes all the layout sets from the database.
|
LayoutSet |
removeByG_P(long groupId,
boolean privateLayout)
Removes the layout set where groupId = ? and privateLayout = ? from the database.
|
void |
removeByGroupId(long groupId)
Removes all the layout sets where groupId = ? from the database.
|
void |
removeByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
Removes all the layout sets where layoutSetPrototypeUuid = ? from the database.
|
LayoutSet |
removeByP_L(boolean privateLayout,
long logoId)
Removes the layout set where privateLayout = ? and logoId = ? from the database.
|
LayoutSet |
updateImpl(LayoutSet layoutSet) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
List<LayoutSet> findByGroupId(long groupId)
groupId
- the group IDList<LayoutSet> findByGroupId(long groupId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from LayoutSetModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDstart
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)List<LayoutSet> findByGroupId(long groupId, int start, int end, OrderByComparator<LayoutSet> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from LayoutSetModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDstart
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)List<LayoutSet> findByGroupId(long groupId, int start, int end, OrderByComparator<LayoutSet> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from LayoutSetModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDstart
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheLayoutSet findByGroupId_First(long groupId, OrderByComparator<LayoutSet> orderByComparator) throws NoSuchLayoutSetException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLayoutSetException
- if a matching layout set could not be foundLayoutSet fetchByGroupId_First(long groupId, OrderByComparator<LayoutSet> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching layout set could not be foundLayoutSet findByGroupId_Last(long groupId, OrderByComparator<LayoutSet> orderByComparator) throws NoSuchLayoutSetException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLayoutSetException
- if a matching layout set could not be foundLayoutSet fetchByGroupId_Last(long groupId, OrderByComparator<LayoutSet> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching layout set could not be foundLayoutSet[] findByGroupId_PrevAndNext(long layoutSetId, long groupId, OrderByComparator<LayoutSet> orderByComparator) throws NoSuchLayoutSetException
layoutSetId
- the primary key of the current layout setgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLayoutSetException
- if a layout set with the primary key could not be foundvoid removeByGroupId(long groupId)
groupId
- the group IDint countByGroupId(long groupId)
groupId
- the group IDList<LayoutSet> findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
layoutSetPrototypeUuid
- the layout set prototype uuidList<LayoutSet> findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from LayoutSetModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
layoutSetPrototypeUuid
- the layout set prototype uuidstart
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)List<LayoutSet> findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid, int start, int end, OrderByComparator<LayoutSet> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from LayoutSetModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
layoutSetPrototypeUuid
- the layout set prototype uuidstart
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)List<LayoutSet> findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid, int start, int end, OrderByComparator<LayoutSet> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from LayoutSetModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
layoutSetPrototypeUuid
- the layout set prototype uuidstart
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheLayoutSet findByLayoutSetPrototypeUuid_First(String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) throws NoSuchLayoutSetException
layoutSetPrototypeUuid
- the layout set prototype uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLayoutSetException
- if a matching layout set could not be foundLayoutSet fetchByLayoutSetPrototypeUuid_First(String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator)
layoutSetPrototypeUuid
- the layout set prototype uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching layout set could not be foundLayoutSet findByLayoutSetPrototypeUuid_Last(String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) throws NoSuchLayoutSetException
layoutSetPrototypeUuid
- the layout set prototype uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLayoutSetException
- if a matching layout set could not be foundLayoutSet fetchByLayoutSetPrototypeUuid_Last(String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator)
layoutSetPrototypeUuid
- the layout set prototype uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching layout set could not be foundLayoutSet[] findByLayoutSetPrototypeUuid_PrevAndNext(long layoutSetId, String layoutSetPrototypeUuid, OrderByComparator<LayoutSet> orderByComparator) throws NoSuchLayoutSetException
layoutSetId
- the primary key of the current layout setlayoutSetPrototypeUuid
- the layout set prototype uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLayoutSetException
- if a layout set with the primary key could not be foundvoid removeByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
layoutSetPrototypeUuid
- the layout set prototype uuidint countByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
layoutSetPrototypeUuid
- the layout set prototype uuidLayoutSet findByG_P(long groupId, boolean privateLayout) throws NoSuchLayoutSetException
NoSuchLayoutSetException
if it could not be found.groupId
- the group IDprivateLayout
- the private layoutNoSuchLayoutSetException
- if a matching layout set could not be foundLayoutSet fetchByG_P(long groupId, boolean privateLayout)
null
if it could not be found. Uses the finder cache.groupId
- the group IDprivateLayout
- the private layoutnull
if a matching layout set could not be foundLayoutSet fetchByG_P(long groupId, boolean privateLayout, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.groupId
- the group IDprivateLayout
- the private layoutretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching layout set could not be foundLayoutSet removeByG_P(long groupId, boolean privateLayout) throws NoSuchLayoutSetException
groupId
- the group IDprivateLayout
- the private layoutNoSuchLayoutSetException
int countByG_P(long groupId, boolean privateLayout)
groupId
- the group IDprivateLayout
- the private layoutLayoutSet findByP_L(boolean privateLayout, long logoId) throws NoSuchLayoutSetException
NoSuchLayoutSetException
if it could not be found.privateLayout
- the private layoutlogoId
- the logo IDNoSuchLayoutSetException
- if a matching layout set could not be foundLayoutSet fetchByP_L(boolean privateLayout, long logoId)
null
if it could not be found. Uses the finder cache.privateLayout
- the private layoutlogoId
- the logo IDnull
if a matching layout set could not be foundLayoutSet fetchByP_L(boolean privateLayout, long logoId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.privateLayout
- the private layoutlogoId
- the logo IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching layout set could not be foundLayoutSet removeByP_L(boolean privateLayout, long logoId) throws NoSuchLayoutSetException
privateLayout
- the private layoutlogoId
- the logo IDNoSuchLayoutSetException
int countByP_L(boolean privateLayout, long logoId)
privateLayout
- the private layoutlogoId
- the logo IDvoid cacheResult(LayoutSet layoutSet)
layoutSet
- the layout setvoid cacheResult(List<LayoutSet> layoutSets)
layoutSets
- the layout setsLayoutSet create(long layoutSetId)
layoutSetId
- the primary key for the new layout setLayoutSet remove(long layoutSetId) throws NoSuchLayoutSetException
layoutSetId
- the primary key of the layout setNoSuchLayoutSetException
- if a layout set with the primary key could not be foundLayoutSet findByPrimaryKey(long layoutSetId) throws NoSuchLayoutSetException
NoSuchLayoutSetException
if it could not be found.layoutSetId
- the primary key of the layout setNoSuchLayoutSetException
- if a layout set with the primary key could not be foundLayoutSet fetchByPrimaryKey(long layoutSetId)
null
if it could not be found.layoutSetId
- the primary key of the layout setnull
if a layout set with the primary key could not be foundMap<Serializable,LayoutSet> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys
in interface BasePersistence<LayoutSet>
List<LayoutSet> findAll()
List<LayoutSet> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from LayoutSetModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)List<LayoutSet> findAll(int start, int end, OrderByComparator<LayoutSet> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from LayoutSetModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)List<LayoutSet> findAll(int start, int end, OrderByComparator<LayoutSet> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from LayoutSetModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()
Set<String> getBadColumnNames()
getBadColumnNames
in interface BasePersistence<LayoutSet>