@ProviderType public interface SegmentsEntryRolePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<SegmentsEntryRole>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<SegmentsEntryRole>
Caching information and settings can be found in portal.properties
SegmentsEntryRoleUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(java.util.List<SegmentsEntryRole> segmentsEntryRoles)
Caches the segments entry roles in the entity cache if it is enabled.
|
void |
cacheResult(SegmentsEntryRole segmentsEntryRole)
Caches the segments entry role in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of segments entry roles.
|
int |
countByRoleId(long roleId)
Returns the number of segments entry roles where roleId = ?.
|
int |
countByS_R(long segmentsEntryId,
long roleId)
Returns the number of segments entry roles where segmentsEntryId = ? and roleId = ?.
|
int |
countBySegmentsEntryId(long segmentsEntryId)
Returns the number of segments entry roles where segmentsEntryId = ?.
|
SegmentsEntryRole |
create(long segmentsEntryRoleId)
Creates a new segments entry role with the primary key.
|
SegmentsEntryRole |
fetchByPrimaryKey(long segmentsEntryRoleId)
Returns the segments entry role with the primary key or returns
null if it could not be found. |
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 = ?.
|
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 = ?.
|
SegmentsEntryRole |
fetchByS_R(long segmentsEntryId,
long roleId)
Returns the segments entry role where segmentsEntryId = ? and roleId = ? or returns
null if it could not be found. |
SegmentsEntryRole |
fetchByS_R(long segmentsEntryId,
long roleId,
boolean useFinderCache)
Returns the segments entry role where segmentsEntryId = ? and roleId = ? or returns
null if it could not be found, optionally using the finder cache. |
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 = ?.
|
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 = ?.
|
java.util.List<SegmentsEntryRole> |
findAll()
Returns all the segments entry roles.
|
java.util.List<SegmentsEntryRole> |
findAll(int start,
int end)
Returns a range of all the segments entry roles.
|
java.util.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.
|
java.util.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.
|
SegmentsEntryRole |
findByPrimaryKey(long segmentsEntryRoleId)
Returns the segments entry role with the primary key or throws a
NoSuchEntryRoleException if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<SegmentsEntryRole> |
findByRoleId(long roleId)
Returns all the segments entry roles where roleId = ?.
|
java.util.List<SegmentsEntryRole> |
findByRoleId(long roleId,
int start,
int end)
Returns a range of all the segments entry roles where roleId = ?.
|
java.util.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 = ?.
|
java.util.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 = ?.
|
SegmentsEntryRole |
findByS_R(long segmentsEntryId,
long roleId)
Returns the segments entry role where segmentsEntryId = ? and roleId = ? or throws a
NoSuchEntryRoleException if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<SegmentsEntryRole> |
findBySegmentsEntryId(long segmentsEntryId)
Returns all the segments entry roles where segmentsEntryId = ?.
|
java.util.List<SegmentsEntryRole> |
findBySegmentsEntryId(long segmentsEntryId,
int start,
int end)
Returns a range of all the segments entry roles where segmentsEntryId = ?.
|
java.util.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 = ?.
|
java.util.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 = ?.
|
SegmentsEntryRole |
remove(long segmentsEntryRoleId)
Removes the segments entry role with the primary key from the database.
|
void |
removeAll()
Removes all the segments entry roles from the database.
|
void |
removeByRoleId(long roleId)
Removes all the segments entry roles where roleId = ? from the database.
|
SegmentsEntryRole |
removeByS_R(long segmentsEntryId,
long roleId)
Removes the segments entry role where segmentsEntryId = ? and roleId = ? from the database.
|
void |
removeBySegmentsEntryId(long segmentsEntryId)
Removes all the segments entry roles where segmentsEntryId = ? from the database.
|
SegmentsEntryRole |
updateImpl(SegmentsEntryRole segmentsEntryRole) |
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<SegmentsEntryRole> findBySegmentsEntryId(long segmentsEntryId)
segmentsEntryId
- the segments entry IDjava.util.List<SegmentsEntryRole> findBySegmentsEntryId(long segmentsEntryId, 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 SegmentsEntryRoleModelImpl
.
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)java.util.List<SegmentsEntryRole> findBySegmentsEntryId(long segmentsEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> 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 SegmentsEntryRoleModelImpl
.
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 (optionally null
)java.util.List<SegmentsEntryRole> findBySegmentsEntryId(long segmentsEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> 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 SegmentsEntryRoleModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheSegmentsEntryRole findBySegmentsEntryId_First(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) throws NoSuchEntryRoleException
segmentsEntryId
- the segments entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryRoleException
- if a matching segments entry role could not be foundSegmentsEntryRole fetchBySegmentsEntryId_First(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
segmentsEntryId
- the segments entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching segments entry role could not be foundSegmentsEntryRole findBySegmentsEntryId_Last(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) throws NoSuchEntryRoleException
segmentsEntryId
- the segments entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryRoleException
- if a matching segments entry role could not be foundSegmentsEntryRole fetchBySegmentsEntryId_Last(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
segmentsEntryId
- the segments entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching segments entry role could not be foundSegmentsEntryRole[] findBySegmentsEntryId_PrevAndNext(long segmentsEntryRoleId, long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) throws NoSuchEntryRoleException
segmentsEntryRoleId
- the primary key of the current segments entry rolesegmentsEntryId
- the segments entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryRoleException
- if a segments entry role with the primary key could not be foundvoid removeBySegmentsEntryId(long segmentsEntryId)
segmentsEntryId
- the segments entry IDint countBySegmentsEntryId(long segmentsEntryId)
segmentsEntryId
- the segments entry IDjava.util.List<SegmentsEntryRole> findByRoleId(long roleId)
roleId
- the role IDjava.util.List<SegmentsEntryRole> findByRoleId(long roleId, 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 SegmentsEntryRoleModelImpl
.
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)java.util.List<SegmentsEntryRole> findByRoleId(long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> 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 SegmentsEntryRoleModelImpl
.
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 (optionally null
)java.util.List<SegmentsEntryRole> findByRoleId(long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> 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 SegmentsEntryRoleModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheSegmentsEntryRole findByRoleId_First(long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) throws NoSuchEntryRoleException
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryRoleException
- if a matching segments entry role could not be foundSegmentsEntryRole fetchByRoleId_First(long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching segments entry role could not be foundSegmentsEntryRole findByRoleId_Last(long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) throws NoSuchEntryRoleException
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryRoleException
- if a matching segments entry role could not be foundSegmentsEntryRole fetchByRoleId_Last(long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching segments entry role could not be foundSegmentsEntryRole[] findByRoleId_PrevAndNext(long segmentsEntryRoleId, long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) throws NoSuchEntryRoleException
segmentsEntryRoleId
- the primary key of the current segments entry roleroleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryRoleException
- if a segments entry role with the primary key could not be foundvoid removeByRoleId(long roleId)
roleId
- the role IDint countByRoleId(long roleId)
roleId
- the role IDSegmentsEntryRole findByS_R(long segmentsEntryId, long roleId) throws NoSuchEntryRoleException
NoSuchEntryRoleException
if it could not be found.segmentsEntryId
- the segments entry IDroleId
- the role IDNoSuchEntryRoleException
- if a matching segments entry role could not be foundSegmentsEntryRole fetchByS_R(long segmentsEntryId, long roleId)
null
if it could not be found. Uses the finder cache.segmentsEntryId
- the segments entry IDroleId
- the role IDnull
if a matching segments entry role could not be foundSegmentsEntryRole fetchByS_R(long segmentsEntryId, long roleId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.segmentsEntryId
- the segments entry IDroleId
- the role IDuseFinderCache
- whether to use the finder cachenull
if a matching segments entry role could not be foundSegmentsEntryRole removeByS_R(long segmentsEntryId, long roleId) throws NoSuchEntryRoleException
segmentsEntryId
- the segments entry IDroleId
- the role IDNoSuchEntryRoleException
int countByS_R(long segmentsEntryId, long roleId)
segmentsEntryId
- the segments entry IDroleId
- the role IDvoid cacheResult(SegmentsEntryRole segmentsEntryRole)
segmentsEntryRole
- the segments entry rolevoid cacheResult(java.util.List<SegmentsEntryRole> segmentsEntryRoles)
segmentsEntryRoles
- the segments entry rolesSegmentsEntryRole create(long segmentsEntryRoleId)
segmentsEntryRoleId
- the primary key for the new segments entry roleSegmentsEntryRole remove(long segmentsEntryRoleId) throws NoSuchEntryRoleException
segmentsEntryRoleId
- the primary key of the segments entry roleNoSuchEntryRoleException
- if a segments entry role with the primary key could not be foundSegmentsEntryRole updateImpl(SegmentsEntryRole segmentsEntryRole)
SegmentsEntryRole findByPrimaryKey(long segmentsEntryRoleId) throws NoSuchEntryRoleException
NoSuchEntryRoleException
if it could not be found.segmentsEntryRoleId
- the primary key of the segments entry roleNoSuchEntryRoleException
- if a segments entry role with the primary key could not be foundSegmentsEntryRole fetchByPrimaryKey(long segmentsEntryRoleId)
null
if it could not be found.segmentsEntryRoleId
- the primary key of the segments entry rolenull
if a segments entry role with the primary key could not be foundjava.util.List<SegmentsEntryRole> findAll()
java.util.List<SegmentsEntryRole> 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 SegmentsEntryRoleModelImpl
.
start
- the lower bound of the range of segments entry rolesend
- the upper bound of the range of segments entry roles (not inclusive)java.util.List<SegmentsEntryRole> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> 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 SegmentsEntryRoleModelImpl
.
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 (optionally null
)java.util.List<SegmentsEntryRole> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> 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 SegmentsEntryRoleModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()