Class SegmentsEntryRoleUtil
com.liferay.segments.service.persistence.impl.SegmentsEntryRolePersistenceImpl
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(SegmentsEntryRole segmentsEntryRole) Caches the segments entry role in the entity cache if it is enabled.static void
cacheResult
(List<SegmentsEntryRole> segmentsEntryRoles) Caches the segments entry roles in the entity cache if it is enabled.static void
static void
clearCache
(SegmentsEntryRole segmentsEntryRole) static int
countAll()
Returns the number of segments entry roles.static int
countByRoleId
(long roleId) Returns the number of segments entry roles where roleId = ?.static int
countByS_R
(long segmentsEntryId, long roleId) Returns the number of segments entry roles where segmentsEntryId = ? and roleId = ?.static int
countBySegmentsEntryId
(long segmentsEntryId) Returns the number of segments entry roles where segmentsEntryId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static SegmentsEntryRole
create
(long segmentsEntryRoleId) Creates a new segments entry role with the primary key.static SegmentsEntryRole
fetchByPrimaryKey
(long segmentsEntryRoleId) Returns the segments entry role with the primary key or returnsnull
if it could not be found.static Map<Serializable,
SegmentsEntryRole> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static SegmentsEntryRole
fetchByRoleId_First
(long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) Returns the first segments entry role in the ordered set where roleId = ?.static SegmentsEntryRole
fetchByRoleId_Last
(long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) Returns the last segments entry role in the ordered set where roleId = ?.static SegmentsEntryRole
fetchByS_R
(long segmentsEntryId, long roleId) Returns the segments entry role where segmentsEntryId = ? and roleId = ? or returnsnull
if it could not be found.static SegmentsEntryRole
fetchByS_R
(long segmentsEntryId, long roleId, boolean useFinderCache) Returns the segments entry role where segmentsEntryId = ? and roleId = ? or returnsnull
if it could not be found, optionally using the finder cache.static SegmentsEntryRole
fetchBySegmentsEntryId_First
(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) Returns the first segments entry role in the ordered set where segmentsEntryId = ?.static SegmentsEntryRole
fetchBySegmentsEntryId_Last
(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) Returns the last segments entry role in the ordered set where segmentsEntryId = ?.static List<SegmentsEntryRole>
findAll()
Returns all the segments entry roles.static List<SegmentsEntryRole>
findAll
(int start, int end) Returns a range of all the segments entry roles.static List<SegmentsEntryRole>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) Returns an ordered range of all the segments entry roles.static List<SegmentsEntryRole>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the segments entry roles.static SegmentsEntryRole
findByPrimaryKey
(long segmentsEntryRoleId) Returns the segments entry role with the primary key or throws aNoSuchEntryRoleException
if it could not be found.static List<SegmentsEntryRole>
findByRoleId
(long roleId) Returns all the segments entry roles where roleId = ?.static List<SegmentsEntryRole>
findByRoleId
(long roleId, int start, int end) Returns a range of all the segments entry roles where roleId = ?.static List<SegmentsEntryRole>
findByRoleId
(long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) Returns an ordered range of all the segments entry roles where roleId = ?.static List<SegmentsEntryRole>
findByRoleId
(long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the segments entry roles where roleId = ?.static SegmentsEntryRole
findByRoleId_First
(long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) Returns the first segments entry role in the ordered set where roleId = ?.static SegmentsEntryRole
findByRoleId_Last
(long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) Returns the last segments entry role in the ordered set where roleId = ?.static SegmentsEntryRole[]
findByRoleId_PrevAndNext
(long segmentsEntryRoleId, long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) Returns the segments entry roles before and after the current segments entry role in the ordered set where roleId = ?.static SegmentsEntryRole
findByS_R
(long segmentsEntryId, long roleId) Returns the segments entry role where segmentsEntryId = ? and roleId = ? or throws aNoSuchEntryRoleException
if it could not be found.static List<SegmentsEntryRole>
findBySegmentsEntryId
(long segmentsEntryId) Returns all the segments entry roles where segmentsEntryId = ?.static List<SegmentsEntryRole>
findBySegmentsEntryId
(long segmentsEntryId, int start, int end) Returns a range of all the segments entry roles where segmentsEntryId = ?.static List<SegmentsEntryRole>
findBySegmentsEntryId
(long segmentsEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) Returns an ordered range of all the segments entry roles where segmentsEntryId = ?.static List<SegmentsEntryRole>
findBySegmentsEntryId
(long segmentsEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the segments entry roles where segmentsEntryId = ?.static SegmentsEntryRole
findBySegmentsEntryId_First
(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) Returns the first segments entry role in the ordered set where segmentsEntryId = ?.static SegmentsEntryRole
findBySegmentsEntryId_Last
(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) Returns the last segments entry role in the ordered set where segmentsEntryId = ?.static SegmentsEntryRole[]
findBySegmentsEntryId_PrevAndNext
(long segmentsEntryRoleId, long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) Returns the segments entry roles before and after the current segments entry role in the ordered set where segmentsEntryId = ?.static List<SegmentsEntryRole>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<SegmentsEntryRole>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<SegmentsEntryRole>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) static SegmentsEntryRolePersistence
static SegmentsEntryRole
remove
(long segmentsEntryRoleId) Removes the segments entry role with the primary key from the database.static void
Removes all the segments entry roles from the database.static void
removeByRoleId
(long roleId) Removes all the segments entry roles where roleId = ? from the database.static SegmentsEntryRole
removeByS_R
(long segmentsEntryId, long roleId) Removes the segments entry role where segmentsEntryId = ? and roleId = ? from the database.static void
removeBySegmentsEntryId
(long segmentsEntryId) Removes all the segments entry roles where segmentsEntryId = ? from the database.static void
setPersistence
(SegmentsEntryRolePersistence persistence) static SegmentsEntryRole
update
(SegmentsEntryRole segmentsEntryRole) static SegmentsEntryRole
update
(SegmentsEntryRole segmentsEntryRole, com.liferay.portal.kernel.service.ServiceContext serviceContext) static SegmentsEntryRole
updateImpl
(SegmentsEntryRole segmentsEntryRole)
-
Constructor Details
-
SegmentsEntryRoleUtil
public SegmentsEntryRoleUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<SegmentsEntryRole> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<SegmentsEntryRole> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<SegmentsEntryRole> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static SegmentsEntryRole update(SegmentsEntryRole segmentsEntryRole, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findBySegmentsEntryId
Returns all the segments entry roles where segmentsEntryId = ?.- Parameters:
segmentsEntryId
- the segments entry ID- Returns:
- the matching segments entry roles
-
findBySegmentsEntryId
public static List<SegmentsEntryRole> findBySegmentsEntryId(long segmentsEntryId, int start, int end) Returns a range of all the segments entry roles where segmentsEntryId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRoleModelImpl
.- Parameters:
segmentsEntryId
- the segments entry IDstart
- the lower bound of the range of segments entry rolesend
- the upper bound of the range of segments entry roles (not inclusive)- Returns:
- the range of matching segments entry roles
-
findBySegmentsEntryId
public static List<SegmentsEntryRole> findBySegmentsEntryId(long segmentsEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) Returns an ordered range of all the segments entry roles where segmentsEntryId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRoleModelImpl
.- Parameters:
segmentsEntryId
- the segments entry IDstart
- the lower bound of the range of segments entry rolesend
- the upper bound of the range of segments entry roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching segments entry roles
-
findBySegmentsEntryId
public static List<SegmentsEntryRole> findBySegmentsEntryId(long segmentsEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the segments entry roles where segmentsEntryId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRoleModelImpl
.- Parameters:
segmentsEntryId
- the segments entry IDstart
- the lower bound of the range of segments entry rolesend
- the upper bound of the range of segments entry roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching segments entry roles
-
findBySegmentsEntryId_First
public static SegmentsEntryRole findBySegmentsEntryId_First(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) throws NoSuchEntryRoleException Returns the first segments entry role in the ordered set where segmentsEntryId = ?.- Parameters:
segmentsEntryId
- the segments entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching segments entry role
- Throws:
NoSuchEntryRoleException
- if a matching segments entry role could not be foundNoSuchEntryRoleException
-
fetchBySegmentsEntryId_First
public static SegmentsEntryRole fetchBySegmentsEntryId_First(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) Returns the first segments entry role in the ordered set where segmentsEntryId = ?.- Parameters:
segmentsEntryId
- the segments entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching segments entry role, or
null
if a matching segments entry role could not be found
-
findBySegmentsEntryId_Last
public static SegmentsEntryRole findBySegmentsEntryId_Last(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) throws NoSuchEntryRoleException Returns the last segments entry role in the ordered set where segmentsEntryId = ?.- Parameters:
segmentsEntryId
- the segments entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching segments entry role
- Throws:
NoSuchEntryRoleException
- if a matching segments entry role could not be foundNoSuchEntryRoleException
-
fetchBySegmentsEntryId_Last
public static SegmentsEntryRole fetchBySegmentsEntryId_Last(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) Returns the last segments entry role in the ordered set where segmentsEntryId = ?.- Parameters:
segmentsEntryId
- the segments entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching segments entry role, or
null
if a matching segments entry role could not be found
-
findBySegmentsEntryId_PrevAndNext
public static SegmentsEntryRole[] findBySegmentsEntryId_PrevAndNext(long segmentsEntryRoleId, long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) throws NoSuchEntryRoleException Returns the segments entry roles before and after the current segments entry role in the ordered set where segmentsEntryId = ?.- Parameters:
segmentsEntryRoleId
- the primary key of the current segments entry rolesegmentsEntryId
- the segments entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next segments entry role
- Throws:
NoSuchEntryRoleException
- if a segments entry role with the primary key could not be foundNoSuchEntryRoleException
-
removeBySegmentsEntryId
public static void removeBySegmentsEntryId(long segmentsEntryId) Removes all the segments entry roles where segmentsEntryId = ? from the database.- Parameters:
segmentsEntryId
- the segments entry ID
-
countBySegmentsEntryId
public static int countBySegmentsEntryId(long segmentsEntryId) Returns the number of segments entry roles where segmentsEntryId = ?.- Parameters:
segmentsEntryId
- the segments entry ID- Returns:
- the number of matching segments entry roles
-
findByRoleId
Returns all the segments entry roles where roleId = ?.- Parameters:
roleId
- the role ID- Returns:
- the matching segments entry roles
-
findByRoleId
Returns a range of all the segments entry roles where roleId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRoleModelImpl
.- Parameters:
roleId
- the role IDstart
- the lower bound of the range of segments entry rolesend
- the upper bound of the range of segments entry roles (not inclusive)- Returns:
- the range of matching segments entry roles
-
findByRoleId
public static List<SegmentsEntryRole> findByRoleId(long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) Returns an ordered range of all the segments entry roles where roleId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRoleModelImpl
.- Parameters:
roleId
- the role IDstart
- the lower bound of the range of segments entry rolesend
- the upper bound of the range of segments entry roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching segments entry roles
-
findByRoleId
public static List<SegmentsEntryRole> findByRoleId(long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the segments entry roles where roleId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRoleModelImpl
.- Parameters:
roleId
- the role IDstart
- the lower bound of the range of segments entry rolesend
- the upper bound of the range of segments entry roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching segments entry roles
-
findByRoleId_First
public static SegmentsEntryRole findByRoleId_First(long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) throws NoSuchEntryRoleException Returns the first segments entry role in the ordered set where roleId = ?.- Parameters:
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching segments entry role
- Throws:
NoSuchEntryRoleException
- if a matching segments entry role could not be foundNoSuchEntryRoleException
-
fetchByRoleId_First
public static SegmentsEntryRole fetchByRoleId_First(long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) Returns the first segments entry role in the ordered set where roleId = ?.- Parameters:
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching segments entry role, or
null
if a matching segments entry role could not be found
-
findByRoleId_Last
public static SegmentsEntryRole findByRoleId_Last(long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) throws NoSuchEntryRoleException Returns the last segments entry role in the ordered set where roleId = ?.- Parameters:
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching segments entry role
- Throws:
NoSuchEntryRoleException
- if a matching segments entry role could not be foundNoSuchEntryRoleException
-
fetchByRoleId_Last
public static SegmentsEntryRole fetchByRoleId_Last(long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) Returns the last segments entry role in the ordered set where roleId = ?.- Parameters:
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching segments entry role, or
null
if a matching segments entry role could not be found
-
findByRoleId_PrevAndNext
public static SegmentsEntryRole[] findByRoleId_PrevAndNext(long segmentsEntryRoleId, long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) throws NoSuchEntryRoleException Returns the segments entry roles before and after the current segments entry role in the ordered set where roleId = ?.- Parameters:
segmentsEntryRoleId
- the primary key of the current segments entry roleroleId
- the role IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next segments entry role
- Throws:
NoSuchEntryRoleException
- if a segments entry role with the primary key could not be foundNoSuchEntryRoleException
-
removeByRoleId
public static void removeByRoleId(long roleId) Removes all the segments entry roles where roleId = ? from the database.- Parameters:
roleId
- the role ID
-
countByRoleId
public static int countByRoleId(long roleId) Returns the number of segments entry roles where roleId = ?.- Parameters:
roleId
- the role ID- Returns:
- the number of matching segments entry roles
-
findByS_R
public static SegmentsEntryRole findByS_R(long segmentsEntryId, long roleId) throws NoSuchEntryRoleException Returns the segments entry role where segmentsEntryId = ? and roleId = ? or throws aNoSuchEntryRoleException
if it could not be found.- Parameters:
segmentsEntryId
- the segments entry IDroleId
- the role ID- Returns:
- the matching segments entry role
- Throws:
NoSuchEntryRoleException
- if a matching segments entry role could not be foundNoSuchEntryRoleException
-
fetchByS_R
Returns the segments entry role where segmentsEntryId = ? and roleId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
segmentsEntryId
- the segments entry IDroleId
- the role ID- Returns:
- the matching segments entry role, or
null
if a matching segments entry role could not be found
-
fetchByS_R
public static SegmentsEntryRole fetchByS_R(long segmentsEntryId, long roleId, boolean useFinderCache) Returns the segments entry role where segmentsEntryId = ? and roleId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
segmentsEntryId
- the segments entry IDroleId
- the role IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching segments entry role, or
null
if a matching segments entry role could not be found
-
removeByS_R
public static SegmentsEntryRole removeByS_R(long segmentsEntryId, long roleId) throws NoSuchEntryRoleException Removes the segments entry role where segmentsEntryId = ? and roleId = ? from the database.- Parameters:
segmentsEntryId
- the segments entry IDroleId
- the role ID- Returns:
- the segments entry role that was removed
- Throws:
NoSuchEntryRoleException
-
countByS_R
public static int countByS_R(long segmentsEntryId, long roleId) Returns the number of segments entry roles where segmentsEntryId = ? and roleId = ?.- Parameters:
segmentsEntryId
- the segments entry IDroleId
- the role ID- Returns:
- the number of matching segments entry roles
-
cacheResult
Caches the segments entry role in the entity cache if it is enabled.- Parameters:
segmentsEntryRole
- the segments entry role
-
cacheResult
Caches the segments entry roles in the entity cache if it is enabled.- Parameters:
segmentsEntryRoles
- the segments entry roles
-
create
Creates a new segments entry role with the primary key. Does not add the segments entry role to the database.- Parameters:
segmentsEntryRoleId
- the primary key for the new segments entry role- Returns:
- the new segments entry role
-
remove
Removes the segments entry role with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
segmentsEntryRoleId
- the primary key of the segments entry role- Returns:
- the segments entry role that was removed
- Throws:
NoSuchEntryRoleException
- if a segments entry role with the primary key could not be foundNoSuchEntryRoleException
-
updateImpl
-
findByPrimaryKey
public static SegmentsEntryRole findByPrimaryKey(long segmentsEntryRoleId) throws NoSuchEntryRoleException Returns the segments entry role with the primary key or throws aNoSuchEntryRoleException
if it could not be found.- Parameters:
segmentsEntryRoleId
- the primary key of the segments entry role- Returns:
- the segments entry role
- Throws:
NoSuchEntryRoleException
- if a segments entry role with the primary key could not be foundNoSuchEntryRoleException
-
fetchByPrimaryKey
Returns the segments entry role with the primary key or returnsnull
if it could not be found.- Parameters:
segmentsEntryRoleId
- the primary key of the segments entry role- Returns:
- the segments entry role, or
null
if a segments entry role with the primary key could not be found
-
findAll
Returns all the segments entry roles.- Returns:
- the segments entry roles
-
findAll
Returns a range of all the segments entry roles.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRoleModelImpl
.- Parameters:
start
- the lower bound of the range of segments entry rolesend
- the upper bound of the range of segments entry roles (not inclusive)- Returns:
- the range of segments entry roles
-
findAll
public static List<SegmentsEntryRole> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) Returns an ordered range of all the segments entry roles.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRoleModelImpl
.- Parameters:
start
- the lower bound of the range of segments entry rolesend
- the upper bound of the range of segments entry roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of segments entry roles
-
findAll
public static List<SegmentsEntryRole> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the segments entry roles.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSegmentsEntryRoleModelImpl
.- Parameters:
start
- the lower bound of the range of segments entry rolesend
- the upper bound of the range of segments entry roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of segments entry roles
-
removeAll
public static void removeAll()Removes all the segments entry roles from the database. -
countAll
public static int countAll()Returns the number of segments entry roles.- Returns:
- the number of segments entry roles
-
getPersistence
-
setPersistence
-