@ProviderType public interface LayoutSetPersistence extends BasePersistence<LayoutSet>
Caching information and settings can be found in portal.properties
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(java.util.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(java.lang.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 useFinderCache)
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(java.lang.String layoutSetPrototypeUuid,
OrderByComparator<LayoutSet> orderByComparator)
Returns the first layout set in the ordered set where layoutSetPrototypeUuid = ?.
|
LayoutSet |
fetchByLayoutSetPrototypeUuid_Last(java.lang.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 useFinderCache)
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. |
java.util.Map<java.io.Serializable,LayoutSet> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
NOTE FOR DEVELOPERS:
Never modify or reference this interface directly.
|
java.util.List<LayoutSet> |
findAll()
Returns all the layout sets.
|
java.util.List<LayoutSet> |
findAll(int start,
int end)
Returns a range of all the layout sets.
|
java.util.List<LayoutSet> |
findAll(int start,
int end,
OrderByComparator<LayoutSet> orderByComparator)
Returns an ordered range of all the layout sets.
|
java.util.List<LayoutSet> |
findAll(int start,
int end,
OrderByComparator<LayoutSet> orderByComparator,
boolean useFinderCache)
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 = ?.
|
java.util.List<LayoutSet> |
findByGroupId(long groupId)
Returns all the layout sets where groupId = ?.
|
java.util.List<LayoutSet> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the layout sets where groupId = ?.
|
java.util.List<LayoutSet> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<LayoutSet> orderByComparator)
Returns an ordered range of all the layout sets where groupId = ?.
|
java.util.List<LayoutSet> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<LayoutSet> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the layout sets where groupId = ?.
|
LayoutSet |
findByLayoutSetPrototypeUuid_First(java.lang.String layoutSetPrototypeUuid,
OrderByComparator<LayoutSet> orderByComparator)
Returns the first layout set in the ordered set where layoutSetPrototypeUuid = ?.
|
LayoutSet |
findByLayoutSetPrototypeUuid_Last(java.lang.String layoutSetPrototypeUuid,
OrderByComparator<LayoutSet> orderByComparator)
Returns the last layout set in the ordered set where layoutSetPrototypeUuid = ?.
|
LayoutSet[] |
findByLayoutSetPrototypeUuid_PrevAndNext(long layoutSetId,
java.lang.String layoutSetPrototypeUuid,
OrderByComparator<LayoutSet> orderByComparator)
Returns the layout sets before and after the current layout set in the ordered set where layoutSetPrototypeUuid = ?.
|
java.util.List<LayoutSet> |
findByLayoutSetPrototypeUuid(java.lang.String layoutSetPrototypeUuid)
Returns all the layout sets where layoutSetPrototypeUuid = ?.
|
java.util.List<LayoutSet> |
findByLayoutSetPrototypeUuid(java.lang.String layoutSetPrototypeUuid,
int start,
int end)
Returns a range of all the layout sets where layoutSetPrototypeUuid = ?.
|
java.util.List<LayoutSet> |
findByLayoutSetPrototypeUuid(java.lang.String layoutSetPrototypeUuid,
int start,
int end,
OrderByComparator<LayoutSet> orderByComparator)
Returns an ordered range of all the layout sets where layoutSetPrototypeUuid = ?.
|
java.util.List<LayoutSet> |
findByLayoutSetPrototypeUuid(java.lang.String layoutSetPrototypeUuid,
int start,
int end,
OrderByComparator<LayoutSet> orderByComparator,
boolean useFinderCache)
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. |
java.util.Set<java.lang.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(java.lang.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
java.util.Map<java.io.Serializable,LayoutSet> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
LayoutSetUtil
to access the layout set persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this interface.fetchByPrimaryKeys
in interface BasePersistence<LayoutSet>
java.util.List<LayoutSet> findByGroupId(long groupId)
groupId
- the group IDjava.util.List<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, then the query will include the default ORDER BY logic from LayoutSetModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)java.util.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, then the query will include the default ORDER BY logic from LayoutSetModelImpl
.
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
)java.util.List<LayoutSet> findByGroupId(long groupId, int start, int end, OrderByComparator<LayoutSet> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from LayoutSetModelImpl
.
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
)useFinderCache
- whether to use 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 IDjava.util.List<LayoutSet> findByLayoutSetPrototypeUuid(java.lang.String layoutSetPrototypeUuid)
layoutSetPrototypeUuid
- the layout set prototype uuidjava.util.List<LayoutSet> findByLayoutSetPrototypeUuid(java.lang.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, then the query will include the default ORDER BY logic from LayoutSetModelImpl
.
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)java.util.List<LayoutSet> findByLayoutSetPrototypeUuid(java.lang.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, then the query will include the default ORDER BY logic from LayoutSetModelImpl
.
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
)java.util.List<LayoutSet> findByLayoutSetPrototypeUuid(java.lang.String layoutSetPrototypeUuid, int start, int end, OrderByComparator<LayoutSet> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from LayoutSetModelImpl
.
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
)useFinderCache
- whether to use the finder cacheLayoutSet findByLayoutSetPrototypeUuid_First(java.lang.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(java.lang.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(java.lang.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(java.lang.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, java.lang.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(java.lang.String layoutSetPrototypeUuid)
layoutSetPrototypeUuid
- the layout set prototype uuidint countByLayoutSetPrototypeUuid(java.lang.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 useFinderCache)
null
if it could not be found, optionally using the finder cache.groupId
- the group IDprivateLayout
- the private layoutuseFinderCache
- whether to use 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 useFinderCache)
null
if it could not be found, optionally using the finder cache.privateLayout
- the private layoutlogoId
- the logo IDuseFinderCache
- whether to use 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(java.util.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 foundjava.util.List<LayoutSet> findAll()
java.util.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, then the query will include the default ORDER BY logic from LayoutSetModelImpl
.
start
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)java.util.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, then the query will include the default ORDER BY logic from LayoutSetModelImpl
.
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
)java.util.List<LayoutSet> findAll(int start, int end, OrderByComparator<LayoutSet> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from LayoutSetModelImpl
.
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
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()
java.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames
in interface BasePersistence<LayoutSet>