@ProviderType public interface TeamPersistence extends BasePersistence<Team>
Caching information and settings can be found in portal.properties
TeamPersistenceImpl
,
TeamUtil
Modifier and Type | Method and Description |
---|---|
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 |
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.
|
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 = ?.
|
int |
countByUuid_C(String uuid,
long companyId)
Returns the number of teams where uuid = ? and companyId = ?.
|
int |
countByUUID_G(String uuid,
long groupId)
Returns the number of teams where uuid = ? and groupId = ?.
|
int |
countByUuid(String uuid)
Returns the number of teams where uuid = ?.
|
Team |
create(long teamId)
Creates a new team with the primary key.
|
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. |
Map<Serializable,Team> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
Team |
fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator<Team> orderByComparator)
Returns the first team in the ordered set where uuid = ? and companyId = ?.
|
Team |
fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<Team> orderByComparator)
Returns the last team in the ordered set where uuid = ? and companyId = ?.
|
Team |
fetchByUuid_First(String uuid,
OrderByComparator<Team> orderByComparator)
Returns the first team in the ordered set where uuid = ?.
|
Team |
fetchByUUID_G(String uuid,
long groupId)
Returns the team where uuid = ? and groupId = ? or returns
null if it could not be found. |
Team |
fetchByUUID_G(String uuid,
long groupId,
boolean retrieveFromCache)
Returns the team where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
Team |
fetchByUuid_Last(String uuid,
OrderByComparator<Team> orderByComparator)
Returns the last team in the ordered set where uuid = ?.
|
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 = ?.
|
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.
|
List<Team> |
findAll(int start,
int end,
OrderByComparator<Team> orderByComparator,
boolean retrieveFromCache)
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 = ?.
|
List<Team> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<Team> orderByComparator,
boolean retrieveFromCache)
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 |
findByUuid_C_First(String uuid,
long companyId,
OrderByComparator<Team> orderByComparator)
Returns the first team in the ordered set where uuid = ? and companyId = ?.
|
Team |
findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<Team> orderByComparator)
Returns the last team in the ordered set where uuid = ? and companyId = ?.
|
Team[] |
findByUuid_C_PrevAndNext(long teamId,
String uuid,
long companyId,
OrderByComparator<Team> orderByComparator)
Returns the teams before and after the current team in the ordered set where uuid = ? and companyId = ?.
|
List<Team> |
findByUuid_C(String uuid,
long companyId)
Returns all the teams where uuid = ? and companyId = ?.
|
List<Team> |
findByUuid_C(String uuid,
long companyId,
int start,
int end)
Returns a range of all the teams where uuid = ? and companyId = ?.
|
List<Team> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<Team> orderByComparator)
Returns an ordered range of all the teams where uuid = ? and companyId = ?.
|
List<Team> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<Team> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the teams where uuid = ? and companyId = ?.
|
Team |
findByUuid_First(String uuid,
OrderByComparator<Team> orderByComparator)
Returns the first team in the ordered set where uuid = ?.
|
Team |
findByUUID_G(String uuid,
long groupId)
Returns the team where uuid = ? and groupId = ? or throws a
NoSuchTeamException if it could not be found. |
Team |
findByUuid_Last(String uuid,
OrderByComparator<Team> orderByComparator)
Returns the last team in the ordered set where uuid = ?.
|
Team[] |
findByUuid_PrevAndNext(long teamId,
String uuid,
OrderByComparator<Team> orderByComparator)
Returns the teams before and after the current team in the ordered set where uuid = ?.
|
List<Team> |
findByUuid(String uuid)
Returns all the teams where uuid = ?.
|
List<Team> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the teams where uuid = ?.
|
List<Team> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator<Team> orderByComparator)
Returns an ordered range of all the teams where uuid = ?.
|
List<Team> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator<Team> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the teams where uuid = ?.
|
Set<String> |
getBadColumnNames() |
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.
|
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.
|
void |
removeByUuid_C(String uuid,
long companyId)
Removes all the teams where uuid = ? and companyId = ? from the database.
|
Team |
removeByUUID_G(String uuid,
long groupId)
Removes the team where uuid = ? and groupId = ? from the database.
|
void |
removeByUuid(String uuid)
Removes all the teams where uuid = ? 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.
|
Team |
updateImpl(Team team) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
List<Team> findByUuid(String uuid)
uuid
- the uuidList<Team> findByUuid(String uuid, 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.
uuid
- the uuidstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)List<Team> findByUuid(String uuid, 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.
uuid
- the uuidstart
- 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
)List<Team> findByUuid(String uuid, int start, int end, OrderByComparator<Team> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from 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.
uuid
- the uuidstart
- 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
)retrieveFromCache
- whether to retrieve from the finder cacheTeam findByUuid_First(String uuid, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTeamException
- if a matching team could not be foundTeam fetchByUuid_First(String uuid, OrderByComparator<Team> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching team could not be foundTeam findByUuid_Last(String uuid, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTeamException
- if a matching team could not be foundTeam fetchByUuid_Last(String uuid, OrderByComparator<Team> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching team could not be foundTeam[] findByUuid_PrevAndNext(long teamId, String uuid, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException
teamId
- the primary key of the current teamuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTeamException
- if a team with the primary key could not be foundvoid removeByUuid(String uuid)
uuid
- the uuidint countByUuid(String uuid)
uuid
- the uuidTeam findByUUID_G(String uuid, long groupId) throws NoSuchTeamException
NoSuchTeamException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchTeamException
- if a matching team could not be foundTeam fetchByUUID_G(String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching team could not be foundTeam fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching team could not be foundTeam removeByUUID_G(String uuid, long groupId) throws NoSuchTeamException
uuid
- the uuidgroupId
- the group IDNoSuchTeamException
int countByUUID_G(String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDList<Team> findByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDList<Team> findByUuid_C(String uuid, long companyId, 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.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)List<Team> findByUuid_C(String uuid, long companyId, 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.
uuid
- the uuidcompanyId
- the company 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
)List<Team> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<Team> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from 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.
uuid
- the uuidcompanyId
- the company 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
)retrieveFromCache
- whether to retrieve from the finder cacheTeam findByUuid_C_First(String uuid, long companyId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTeamException
- if a matching team could not be foundTeam fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<Team> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching team could not be foundTeam findByUuid_C_Last(String uuid, long companyId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTeamException
- if a matching team could not be foundTeam fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<Team> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching team could not be foundTeam[] findByUuid_C_PrevAndNext(long teamId, String uuid, long companyId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException
teamId
- the primary key of the current teamuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTeamException
- if a team with the primary key could not be foundvoid removeByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDint countByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDList<Team> findByGroupId(long groupId)
groupId
- the group IDList<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.
groupId
- the group IDstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)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.
groupId
- 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
)List<Team> findByGroupId(long groupId, int start, int end, OrderByComparator<Team> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from 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.
groupId
- 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
)retrieveFromCache
- whether to retrieve from the finder cacheTeam findByGroupId_First(long groupId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTeamException
- if a matching team could not be foundTeam fetchByGroupId_First(long groupId, OrderByComparator<Team> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching team could not be foundTeam findByGroupId_Last(long groupId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTeamException
- if a matching team could not be foundTeam fetchByGroupId_Last(long groupId, OrderByComparator<Team> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching team could not be foundTeam[] findByGroupId_PrevAndNext(long teamId, long groupId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException
teamId
- 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 foundList<Team> filterFindByGroupId(long groupId)
groupId
- the group IDList<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.
groupId
- the group IDstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)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.
groupId
- 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
)Team[] filterFindByGroupId_PrevAndNext(long teamId, long groupId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException
teamId
- 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 foundvoid removeByGroupId(long groupId)
groupId
- the group IDint countByGroupId(long groupId)
groupId
- the group IDint filterCountByGroupId(long groupId)
groupId
- the group IDTeam findByG_N(long groupId, String name) throws NoSuchTeamException
NoSuchTeamException
if it could not be found.groupId
- the group IDname
- the nameNoSuchTeamException
- if a matching team could not be foundTeam fetchByG_N(long groupId, String name)
null
if it could not be found. Uses the finder cache.groupId
- the group IDname
- the namenull
if a matching team could not be foundTeam fetchByG_N(long groupId, String name, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.groupId
- the group IDname
- the nameretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching team could not be foundTeam removeByG_N(long groupId, String name) throws NoSuchTeamException
groupId
- the group IDname
- the nameNoSuchTeamException
int countByG_N(long groupId, String name)
groupId
- the group IDname
- the namevoid cacheResult(Team team)
team
- the teamvoid cacheResult(List<Team> teams)
teams
- the teamsTeam create(long teamId)
teamId
- the primary key for the new teamTeam remove(long teamId) throws NoSuchTeamException
teamId
- the primary key of the teamNoSuchTeamException
- if a team with the primary key could not be foundTeam findByPrimaryKey(long teamId) throws NoSuchTeamException
NoSuchTeamException
if it could not be found.teamId
- the primary key of the teamNoSuchTeamException
- if a team with the primary key could not be foundTeam fetchByPrimaryKey(long teamId)
null
if it could not be found.teamId
- the primary key of the teamnull
if a team with the primary key could not be foundMap<Serializable,Team> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys
in interface BasePersistence<Team>
List<Team> findAll()
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.
start
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)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.
start
- 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
)List<Team> findAll(int start, int end, OrderByComparator<Team> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from 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.
start
- 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
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()
long[] getUserPrimaryKeys(long pk)
pk
- the primary key of the teamList<User> getUsers(long pk)
pk
- the primary key of the teamList<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.
pk
- the primary key of the teamstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)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.
pk
- 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
)int getUsersSize(long pk)
pk
- the primary key of the teamboolean containsUser(long pk, long userPK)
true
if the user is associated with the team.pk
- the primary key of the teamuserPK
- the primary key of the usertrue
if the user is associated with the team; false
otherwiseboolean containsUsers(long pk)
true
if the team has any users associated with it.pk
- the primary key of the team to check for associations with userstrue
if the team has any users associated with it; false
otherwisevoid addUser(long pk, long userPK)
pk
- the primary key of the teamuserPK
- the primary key of the uservoid addUser(long pk, User user)
pk
- the primary key of the teamuser
- the uservoid addUsers(long pk, long[] userPKs)
pk
- the primary key of the teamuserPKs
- the primary keys of the usersvoid addUsers(long pk, List<User> users)
pk
- the primary key of the teamusers
- the usersvoid clearUsers(long pk)
pk
- the primary key of the team to clear the associated users fromvoid removeUser(long pk, long userPK)
pk
- the primary key of the teamuserPK
- the primary key of the uservoid removeUser(long pk, User user)
pk
- the primary key of the teamuser
- the uservoid removeUsers(long pk, long[] userPKs)
pk
- the primary key of the teamuserPKs
- the primary keys of the usersvoid removeUsers(long pk, List<User> users)
pk
- the primary key of the teamusers
- the usersvoid setUsers(long pk, long[] userPKs)
pk
- the primary key of the teamuserPKs
- the primary keys of the users to be associated with the teamvoid setUsers(long pk, List<User> users)
pk
- the primary key of the teamusers
- the users to be associated with the teamlong[] getUserGroupPrimaryKeys(long pk)
pk
- the primary key of the teamList<UserGroup> getUserGroups(long pk)
pk
- the primary key of the teamList<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.
pk
- the primary key of the teamstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)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.
pk
- 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
)int getUserGroupsSize(long pk)
pk
- the primary key of the teamboolean containsUserGroup(long pk, long userGroupPK)
true
if the user group is associated with the team.pk
- the primary key of the teamuserGroupPK
- the primary key of the user grouptrue
if the user group is associated with the team; false
otherwiseboolean containsUserGroups(long pk)
true
if the team has any user groups associated with it.pk
- the primary key of the team to check for associations with user groupstrue
if the team has any user groups associated with it; false
otherwisevoid addUserGroup(long pk, long userGroupPK)
pk
- the primary key of the teamuserGroupPK
- the primary key of the user groupvoid addUserGroup(long pk, UserGroup userGroup)
pk
- the primary key of the teamuserGroup
- the user groupvoid addUserGroups(long pk, long[] userGroupPKs)
pk
- the primary key of the teamuserGroupPKs
- the primary keys of the user groupsvoid addUserGroups(long pk, List<UserGroup> userGroups)
pk
- the primary key of the teamuserGroups
- the user groupsvoid clearUserGroups(long pk)
pk
- the primary key of the team to clear the associated user groups fromvoid removeUserGroup(long pk, long userGroupPK)
pk
- the primary key of the teamuserGroupPK
- the primary key of the user groupvoid removeUserGroup(long pk, UserGroup userGroup)
pk
- the primary key of the teamuserGroup
- the user groupvoid removeUserGroups(long pk, long[] userGroupPKs)
pk
- the primary key of the teamuserGroupPKs
- the primary keys of the user groupsvoid removeUserGroups(long pk, List<UserGroup> userGroups)
pk
- the primary key of the teamuserGroups
- the user groupsvoid setUserGroups(long pk, long[] userGroupPKs)
pk
- the primary key of the teamuserGroupPKs
- the primary keys of the user groups to be associated with the teamvoid setUserGroups(long pk, List<UserGroup> userGroups)
pk
- the primary key of the teamuserGroups
- the user groups to be associated with the teamSet<String> getBadColumnNames()
getBadColumnNames
in interface BasePersistence<Team>