|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<Team>
com.liferay.portal.service.persistence.impl.TeamPersistenceImpl
@ProviderType public class TeamPersistenceImpl
The persistence implementation for the team service.
Caching information and settings can be found in portal.properties
TeamPersistence,
TeamUtil| Field Summary | |
|---|---|
static String |
FINDER_CLASS_NAME_ENTITY
|
static String |
FINDER_CLASS_NAME_LIST_WITH_PAGINATION
|
static String |
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
|
static FinderPath |
FINDER_PATH_COUNT_ALL
|
static FinderPath |
FINDER_PATH_COUNT_BY_G_N
|
static FinderPath |
FINDER_PATH_COUNT_BY_GROUPID
|
static FinderPath |
FINDER_PATH_FETCH_BY_G_N
|
static FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_ALL
|
static FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
|
static FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
|
static FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
|
protected TableMapper<Team,UserGroup> |
teamToUserGroupTableMapper
|
protected TableMapper<Team,User> |
teamToUserTableMapper
|
protected UserGroupPersistence |
userGroupPersistence
|
protected UserPersistence |
userPersistence
|
| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
| Constructor Summary | |
|---|---|
TeamPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
addUser(long pk,
long userPK)
Adds an association between the team and the user. |
void |
addUser(long pk,
User user)
Adds an association between the team and the user. |
void |
addUserGroup(long pk,
long userGroupPK)
Adds an association between the team and the user group. |
void |
addUserGroup(long pk,
UserGroup userGroup)
Adds an association between the team and the user group. |
void |
addUserGroups(long pk,
List<UserGroup> userGroups)
Adds an association between the team and the user groups. |
void |
addUserGroups(long pk,
long[] userGroupPKs)
Adds an association between the team and the user groups. |
void |
addUsers(long pk,
List<User> users)
Adds an association between the team and the users. |
void |
addUsers(long pk,
long[] userPKs)
Adds an association between the team and the users. |
void |
afterPropertiesSet()
Initializes the team persistence. |
void |
cacheResult(List<Team> teams)
Caches the teams in the entity cache if it is enabled. |
void |
cacheResult(Team team)
Caches the team in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(Team team)
|
void |
clearCache()
Clears the cache for all teams. |
void |
clearCache(List<Team> teams)
Clears the cache for a List instances of this model. |
void |
clearCache(Team team)
Clears the cache for the team. |
protected void |
clearUniqueFindersCache(Team team)
|
void |
clearUserGroups(long pk)
Clears all associations between the team and its user groups. |
void |
clearUsers(long pk)
Clears all associations between the team and its users. |
boolean |
containsUser(long pk,
long userPK)
Returns true if the user is associated with the team. |
boolean |
containsUserGroup(long pk,
long userGroupPK)
Returns true if the user group is associated with the team. |
boolean |
containsUserGroups(long pk)
Returns true if the team has any user groups associated with it. |
boolean |
containsUsers(long pk)
Returns true if the team has any users associated with it. |
int |
countAll()
Returns the number of teams. |
int |
countByG_N(long groupId,
String name)
Returns the number of teams where groupId = ? and name = ?. |
int |
countByGroupId(long groupId)
Returns the number of teams where groupId = ?. |
Team |
create(long teamId)
Creates a new team with the primary key. |
void |
destroy()
|
Team |
fetchByG_N(long groupId,
String name)
Returns the team where groupId = ? and name = ? or returns null if it could not be found. |
Team |
fetchByG_N(long groupId,
String name,
boolean retrieveFromCache)
Returns the team where groupId = ? and name = ? or returns null if it could not be found, optionally using the finder cache. |
Team |
fetchByGroupId_First(long groupId,
OrderByComparator<Team> orderByComparator)
Returns the first team in the ordered set where groupId = ?. |
Team |
fetchByGroupId_Last(long groupId,
OrderByComparator<Team> orderByComparator)
Returns the last team in the ordered set where groupId = ?. |
Team |
fetchByPrimaryKey(long teamId)
Returns the team with the primary key or returns null if it could not be found. |
Team |
fetchByPrimaryKey(Serializable primaryKey)
Returns the team with the primary key or returns null if it could not be found. |
Map<Serializable,Team> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
int |
filterCountByGroupId(long groupId)
Returns the number of teams that the user has permission to view where groupId = ?. |
Team[] |
filterFindByGroupId_PrevAndNext(long teamId,
long groupId,
OrderByComparator<Team> orderByComparator)
Returns the teams before and after the current team in the ordered set of teams that the user has permission to view where groupId = ?. |
List<Team> |
filterFindByGroupId(long groupId)
Returns all the teams that the user has permission to view where groupId = ?. |
List<Team> |
filterFindByGroupId(long groupId,
int start,
int end)
Returns a range of all the teams that the user has permission to view where groupId = ?. |
List<Team> |
filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator<Team> orderByComparator)
Returns an ordered range of all the teams that the user has permissions to view where groupId = ?. |
protected Team |
filterGetByGroupId_PrevAndNext(Session session,
Team team,
long groupId,
OrderByComparator<Team> orderByComparator,
boolean previous)
|
List<Team> |
findAll()
Returns all the teams. |
List<Team> |
findAll(int start,
int end)
Returns a range of all the teams. |
List<Team> |
findAll(int start,
int end,
OrderByComparator<Team> orderByComparator)
Returns an ordered range of all the teams. |
Team |
findByG_N(long groupId,
String name)
Returns the team where groupId = ? and name = ? or throws a NoSuchTeamException if it could not be found. |
Team |
findByGroupId_First(long groupId,
OrderByComparator<Team> orderByComparator)
Returns the first team in the ordered set where groupId = ?. |
Team |
findByGroupId_Last(long groupId,
OrderByComparator<Team> orderByComparator)
Returns the last team in the ordered set where groupId = ?. |
Team[] |
findByGroupId_PrevAndNext(long teamId,
long groupId,
OrderByComparator<Team> orderByComparator)
Returns the teams before and after the current team in the ordered set where groupId = ?. |
List<Team> |
findByGroupId(long groupId)
Returns all the teams where groupId = ?. |
List<Team> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the teams where groupId = ?. |
List<Team> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<Team> orderByComparator)
Returns an ordered range of all the teams where groupId = ?. |
Team |
findByPrimaryKey(long teamId)
Returns the team with the primary key or throws a NoSuchTeamException if it could not be found. |
Team |
findByPrimaryKey(Serializable primaryKey)
Returns the team with the primary key or throws a NoSuchModelException if it could not be found. |
protected Team |
getByGroupId_PrevAndNext(Session session,
Team team,
long groupId,
OrderByComparator<Team> orderByComparator,
boolean previous)
|
long[] |
getUserGroupPrimaryKeys(long pk)
Returns the primaryKeys of user groups associated with the team. |
List<UserGroup> |
getUserGroups(long pk)
Returns all the user groups associated with the team. |
List<UserGroup> |
getUserGroups(long pk,
int start,
int end)
Returns a range of all the user groups associated with the team. |
List<UserGroup> |
getUserGroups(long pk,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator)
Returns an ordered range of all the user groups associated with the team. |
int |
getUserGroupsSize(long pk)
Returns the number of user groups associated with the team. |
long[] |
getUserPrimaryKeys(long pk)
Returns the primaryKeys of users associated with the team. |
List<User> |
getUsers(long pk)
Returns all the users associated with the team. |
List<User> |
getUsers(long pk,
int start,
int end)
Returns a range of all the users associated with the team. |
List<User> |
getUsers(long pk,
int start,
int end,
OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users associated with the team. |
int |
getUsersSize(long pk)
Returns the number of users associated with the team. |
Team |
remove(long teamId)
Removes the team with the primary key from the database. |
Team |
remove(Serializable primaryKey)
Removes the team with the primary key from the database. |
void |
removeAll()
Removes all the teams from the database. |
Team |
removeByG_N(long groupId,
String name)
Removes the team where groupId = ? and name = ? from the database. |
void |
removeByGroupId(long groupId)
Removes all the teams where groupId = ? from the database. |
protected Team |
removeImpl(Team team)
Removes the model instance from the database. |
void |
removeUser(long pk,
long userPK)
Removes the association between the team and the user. |
void |
removeUser(long pk,
User user)
Removes the association between the team and the user. |
void |
removeUserGroup(long pk,
long userGroupPK)
Removes the association between the team and the user group. |
void |
removeUserGroup(long pk,
UserGroup userGroup)
Removes the association between the team and the user group. |
void |
removeUserGroups(long pk,
List<UserGroup> userGroups)
Removes the association between the team and the user groups. |
void |
removeUserGroups(long pk,
long[] userGroupPKs)
Removes the association between the team and the user groups. |
void |
removeUsers(long pk,
List<User> users)
Removes the association between the team and the users. |
void |
removeUsers(long pk,
long[] userPKs)
Removes the association between the team and the users. |
void |
setUserGroups(long pk,
List<UserGroup> userGroups)
Sets the user groups associated with the team, removing and adding associations as necessary. |
void |
setUserGroups(long pk,
long[] userGroupPKs)
Sets the user groups associated with the team, removing and adding associations as necessary. |
void |
setUsers(long pk,
List<User> users)
Sets the users associated with the team, removing and adding associations as necessary. |
void |
setUsers(long pk,
long[] userPKs)
Sets the users associated with the team, removing and adding associations as necessary. |
protected Team |
toUnwrappedModel(Team team)
|
Team |
updateImpl(Team team)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID
public static final FinderPath FINDER_PATH_FETCH_BY_G_N
public static final FinderPath FINDER_PATH_COUNT_BY_G_N
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
protected TableMapper<Team,User> teamToUserTableMapper
@BeanReference(type=UserGroupPersistence.class) protected UserGroupPersistence userGroupPersistence
protected TableMapper<Team,UserGroup> teamToUserGroupTableMapper
| Constructor Detail |
|---|
public TeamPersistenceImpl()
| Method Detail |
|---|
public List<Team> findByGroupId(long groupId)
findByGroupId in interface TeamPersistencegroupId - the group ID
public List<Team> 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 TeamModelImpl. 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.
findByGroupId in interface TeamPersistencegroupId - the group IDstart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)
public List<Team> findByGroupId(long groupId,
int start,
int end,
OrderByComparator<Team> 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 TeamModelImpl. 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.
findByGroupId in interface TeamPersistencegroupId - the group IDstart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public Team findByGroupId_First(long groupId,
OrderByComparator<Team> orderByComparator)
throws NoSuchTeamException
findByGroupId_First in interface TeamPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTeamException - if a matching team could not be found
public Team fetchByGroupId_First(long groupId,
OrderByComparator<Team> orderByComparator)
fetchByGroupId_First in interface TeamPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching team could not be found
public Team findByGroupId_Last(long groupId,
OrderByComparator<Team> orderByComparator)
throws NoSuchTeamException
findByGroupId_Last in interface TeamPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTeamException - if a matching team could not be found
public Team fetchByGroupId_Last(long groupId,
OrderByComparator<Team> orderByComparator)
fetchByGroupId_Last in interface TeamPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching team could not be found
public Team[] findByGroupId_PrevAndNext(long teamId,
long groupId,
OrderByComparator<Team> orderByComparator)
throws NoSuchTeamException
findByGroupId_PrevAndNext in interface TeamPersistenceteamId - the primary key of the current teamgroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTeamException - if a team with the primary key could not be found
protected Team getByGroupId_PrevAndNext(Session session,
Team team,
long groupId,
OrderByComparator<Team> orderByComparator,
boolean previous)
public List<Team> filterFindByGroupId(long groupId)
filterFindByGroupId in interface TeamPersistencegroupId - the group ID
public List<Team> filterFindByGroupId(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 TeamModelImpl. 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.
filterFindByGroupId in interface TeamPersistencegroupId - the group IDstart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)
public List<Team> filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator<Team> 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 TeamModelImpl. 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.
filterFindByGroupId in interface TeamPersistencegroupId - the group IDstart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public Team[] filterFindByGroupId_PrevAndNext(long teamId,
long groupId,
OrderByComparator<Team> orderByComparator)
throws NoSuchTeamException
filterFindByGroupId_PrevAndNext in interface TeamPersistenceteamId - the primary key of the current teamgroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTeamException - if a team with the primary key could not be found
protected Team filterGetByGroupId_PrevAndNext(Session session,
Team team,
long groupId,
OrderByComparator<Team> orderByComparator,
boolean previous)
public void removeByGroupId(long groupId)
removeByGroupId in interface TeamPersistencegroupId - the group IDpublic int countByGroupId(long groupId)
countByGroupId in interface TeamPersistencegroupId - the group ID
public int filterCountByGroupId(long groupId)
filterCountByGroupId in interface TeamPersistencegroupId - the group ID
public Team findByG_N(long groupId,
String name)
throws NoSuchTeamException
NoSuchTeamException if it could not be found.
findByG_N in interface TeamPersistencegroupId - the group IDname - the name
NoSuchTeamException - if a matching team could not be found
public Team fetchByG_N(long groupId,
String name)
null if it could not be found. Uses the finder cache.
fetchByG_N in interface TeamPersistencegroupId - the group IDname - the name
null if a matching team could not be found
public Team fetchByG_N(long groupId,
String name,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByG_N in interface TeamPersistencegroupId - the group IDname - the nameretrieveFromCache - whether to use the finder cache
null if a matching team could not be found
public Team removeByG_N(long groupId,
String name)
throws NoSuchTeamException
removeByG_N in interface TeamPersistencegroupId - the group IDname - the name
NoSuchTeamException
public int countByG_N(long groupId,
String name)
countByG_N in interface TeamPersistencegroupId - the group IDname - the name
public void cacheResult(Team team)
cacheResult in interface TeamPersistenceteam - the teampublic void cacheResult(List<Team> teams)
cacheResult in interface TeamPersistenceteams - the teamspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<Team>clearCache in class BasePersistenceImpl<Team>public void clearCache(Team team)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<Team>clearCache in class BasePersistenceImpl<Team>team - the instance of this model to clear the cache forpublic void clearCache(List<Team> teams)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<Team>clearCache in class BasePersistenceImpl<Team>teams - the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(Team team)
protected void clearUniqueFindersCache(Team team)
public Team create(long teamId)
create in interface TeamPersistenceteamId - the primary key for the new team
public Team remove(long teamId)
throws NoSuchTeamException
remove in interface TeamPersistenceteamId - the primary key of the team
NoSuchTeamException - if a team with the primary key could not be found
public Team remove(Serializable primaryKey)
throws NoSuchTeamException
remove in interface BasePersistence<Team>remove in class BasePersistenceImpl<Team>primaryKey - the primary key of the team
NoSuchTeamException - if a team with the primary key could not be foundprotected Team removeImpl(Team team)
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<Team>team - the model instance to remove
public Team updateImpl(Team team)
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface TeamPersistenceupdateImpl in class BasePersistenceImpl<Team>team - the model instance to update
protected Team toUnwrappedModel(Team team)
public Team findByPrimaryKey(Serializable primaryKey)
throws NoSuchTeamException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<Team>findByPrimaryKey in class BasePersistenceImpl<Team>primaryKey - the primary key of the team
NoSuchTeamException - if a team with the primary key could not be found
public Team findByPrimaryKey(long teamId)
throws NoSuchTeamException
NoSuchTeamException if it could not be found.
findByPrimaryKey in interface TeamPersistenceteamId - the primary key of the team
NoSuchTeamException - if a team with the primary key could not be foundpublic Team fetchByPrimaryKey(Serializable primaryKey)
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<Team>fetchByPrimaryKey in class BasePersistenceImpl<Team>primaryKey - the primary key of the team
null if a team with the primary key could not be foundpublic Team fetchByPrimaryKey(long teamId)
null if it could not be found.
fetchByPrimaryKey in interface TeamPersistenceteamId - the primary key of the team
null if a team with the primary key could not be foundpublic Map<Serializable,Team> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<Team>fetchByPrimaryKeys in interface TeamPersistencefetchByPrimaryKeys in class BasePersistenceImpl<Team>public List<Team> findAll()
findAll in interface TeamPersistence
public List<Team> 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 TeamModelImpl. 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.
findAll in interface TeamPersistencestart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)
public List<Team> findAll(int start,
int end,
OrderByComparator<Team> 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 TeamModelImpl. 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.
findAll in interface TeamPersistencestart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public void removeAll()
removeAll in interface TeamPersistencepublic int countAll()
countAll in interface TeamPersistencepublic long[] getUserPrimaryKeys(long pk)
getUserPrimaryKeys in interface TeamPersistencepk - the primary key of the team
public List<User> getUsers(long pk)
getUsers in interface TeamPersistencepk - the primary key of the team
public List<User> getUsers(long pk,
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 TeamModelImpl. 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.
getUsers in interface TeamPersistencepk - the primary key of the teamstart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)
public List<User> getUsers(long pk,
int start,
int end,
OrderByComparator<User> 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 TeamModelImpl. 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.
getUsers in interface TeamPersistencepk - the primary key of the teamstart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public int getUsersSize(long pk)
getUsersSize in interface TeamPersistencepk - the primary key of the team
public boolean containsUser(long pk,
long userPK)
true if the user is associated with the team.
containsUser in interface TeamPersistencepk - the primary key of the teamuserPK - the primary key of the user
true if the user is associated with the team; false otherwisepublic boolean containsUsers(long pk)
true if the team has any users associated with it.
containsUsers in interface TeamPersistencepk - the primary key of the team to check for associations with users
true if the team has any users associated with it; false otherwise
public void addUser(long pk,
long userPK)
addUser in interface TeamPersistencepk - the primary key of the teamuserPK - the primary key of the user
public void addUser(long pk,
User user)
addUser in interface TeamPersistencepk - the primary key of the teamuser - the user
public void addUsers(long pk,
long[] userPKs)
addUsers in interface TeamPersistencepk - the primary key of the teamuserPKs - the primary keys of the users
public void addUsers(long pk,
List<User> users)
addUsers in interface TeamPersistencepk - the primary key of the teamusers - the userspublic void clearUsers(long pk)
clearUsers in interface TeamPersistencepk - the primary key of the team to clear the associated users from
public void removeUser(long pk,
long userPK)
removeUser in interface TeamPersistencepk - the primary key of the teamuserPK - the primary key of the user
public void removeUser(long pk,
User user)
removeUser in interface TeamPersistencepk - the primary key of the teamuser - the user
public void removeUsers(long pk,
long[] userPKs)
removeUsers in interface TeamPersistencepk - the primary key of the teamuserPKs - the primary keys of the users
public void removeUsers(long pk,
List<User> users)
removeUsers in interface TeamPersistencepk - the primary key of the teamusers - the users
public void setUsers(long pk,
long[] userPKs)
setUsers in interface TeamPersistencepk - the primary key of the teamuserPKs - the primary keys of the users to be associated with the team
public void setUsers(long pk,
List<User> users)
setUsers in interface TeamPersistencepk - the primary key of the teamusers - the users to be associated with the teampublic long[] getUserGroupPrimaryKeys(long pk)
getUserGroupPrimaryKeys in interface TeamPersistencepk - the primary key of the team
public List<UserGroup> getUserGroups(long pk)
getUserGroups in interface TeamPersistencepk - the primary key of the team
public List<UserGroup> getUserGroups(long pk,
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 TeamModelImpl. 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.
getUserGroups in interface TeamPersistencepk - the primary key of the teamstart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)
public List<UserGroup> getUserGroups(long pk,
int start,
int end,
OrderByComparator<UserGroup> 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 TeamModelImpl. 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.
getUserGroups in interface TeamPersistencepk - the primary key of the teamstart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public int getUserGroupsSize(long pk)
getUserGroupsSize in interface TeamPersistencepk - the primary key of the team
public boolean containsUserGroup(long pk,
long userGroupPK)
true if the user group is associated with the team.
containsUserGroup in interface TeamPersistencepk - the primary key of the teamuserGroupPK - the primary key of the user group
true if the user group is associated with the team; false otherwisepublic boolean containsUserGroups(long pk)
true if the team has any user groups associated with it.
containsUserGroups in interface TeamPersistencepk - the primary key of the team to check for associations with user groups
true if the team has any user groups associated with it; false otherwise
public void addUserGroup(long pk,
long userGroupPK)
addUserGroup in interface TeamPersistencepk - the primary key of the teamuserGroupPK - the primary key of the user group
public void addUserGroup(long pk,
UserGroup userGroup)
addUserGroup in interface TeamPersistencepk - the primary key of the teamuserGroup - the user group
public void addUserGroups(long pk,
long[] userGroupPKs)
addUserGroups in interface TeamPersistencepk - the primary key of the teamuserGroupPKs - the primary keys of the user groups
public void addUserGroups(long pk,
List<UserGroup> userGroups)
addUserGroups in interface TeamPersistencepk - the primary key of the teamuserGroups - the user groupspublic void clearUserGroups(long pk)
clearUserGroups in interface TeamPersistencepk - the primary key of the team to clear the associated user groups from
public void removeUserGroup(long pk,
long userGroupPK)
removeUserGroup in interface TeamPersistencepk - the primary key of the teamuserGroupPK - the primary key of the user group
public void removeUserGroup(long pk,
UserGroup userGroup)
removeUserGroup in interface TeamPersistencepk - the primary key of the teamuserGroup - the user group
public void removeUserGroups(long pk,
long[] userGroupPKs)
removeUserGroups in interface TeamPersistencepk - the primary key of the teamuserGroupPKs - the primary keys of the user groups
public void removeUserGroups(long pk,
List<UserGroup> userGroups)
removeUserGroups in interface TeamPersistencepk - the primary key of the teamuserGroups - the user groups
public void setUserGroups(long pk,
long[] userGroupPKs)
setUserGroups in interface TeamPersistencepk - the primary key of the teamuserGroupPKs - the primary keys of the user groups to be associated with the team
public void setUserGroups(long pk,
List<UserGroup> userGroups)
setUserGroups in interface TeamPersistencepk - the primary key of the teamuserGroups - the user groups to be associated with the teampublic void afterPropertiesSet()
public void destroy()
|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||