public class TeamPersistenceImpl
extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
implements com.liferay.portal.kernel.service.persistence.TeamPersistence
Caching information and settings can be found in portal.properties
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FINDER_CLASS_NAME_ENTITY |
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITH_PAGINATION |
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION |
protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.Team,com.liferay.portal.kernel.model.UserGroup> |
teamToUserGroupTableMapper |
protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.Team,com.liferay.portal.kernel.model.User> |
teamToUserTableMapper |
protected com.liferay.portal.kernel.service.persistence.UserGroupPersistence |
userGroupPersistence |
protected com.liferay.portal.kernel.service.persistence.UserPersistence |
userPersistence |
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, dbColumnNames, entityCacheEnabled, FINDER_ARGS_EMPTY, finderCacheEnabled, NULL_SAFE_STRING_COMPARATOR, nullModel, 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 and Description |
---|
TeamPersistenceImpl() |
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,
com.liferay.portal.kernel.model.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,
com.liferay.portal.kernel.model.UserGroup userGroup)
Adds an association between the team and the user group.
|
void |
addUserGroups(long pk,
java.util.List<com.liferay.portal.kernel.model.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,
java.util.List<com.liferay.portal.kernel.model.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(java.util.List<com.liferay.portal.kernel.model.Team> teams)
Caches the teams in the entity cache if it is enabled.
|
void |
cacheResult(com.liferay.portal.kernel.model.Team team)
Caches the team in the entity cache if it is enabled.
|
protected void |
cacheUniqueFindersCache(TeamModelImpl teamModelImpl) |
void |
clearCache()
Clears the cache for all teams.
|
void |
clearCache(java.util.List<com.liferay.portal.kernel.model.Team> teams) |
void |
clearCache(java.util.Set<java.io.Serializable> primaryKeys) |
void |
clearCache(com.liferay.portal.kernel.model.Team team)
Clears the cache for the 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,
java.lang.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(java.lang.String uuid,
long companyId)
Returns the number of teams where uuid = ? and companyId = ?.
|
int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of teams where uuid = ? and groupId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of teams where uuid = ?.
|
com.liferay.portal.kernel.model.Team |
create(long teamId)
Creates a new team with the primary key.
|
void |
destroy() |
com.liferay.portal.kernel.model.Team |
fetchByG_N(long groupId,
java.lang.String name)
Returns the team where groupId = ? and name = ? or returns
null if it could not be found. |
com.liferay.portal.kernel.model.Team |
fetchByG_N(long groupId,
java.lang.String name,
boolean useFinderCache)
Returns the team where groupId = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
com.liferay.portal.kernel.model.Team |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
Returns the first team in the ordered set where groupId = ?.
|
com.liferay.portal.kernel.model.Team |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
Returns the last team in the ordered set where groupId = ?.
|
com.liferay.portal.kernel.model.Team |
fetchByPrimaryKey(long teamId)
Returns the team with the primary key or returns
null if it could not be found. |
com.liferay.portal.kernel.model.Team |
fetchByPrimaryKey(java.io.Serializable primaryKey)
Returns the team with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,com.liferay.portal.kernel.model.Team> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
com.liferay.portal.kernel.model.Team |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
Returns the first team in the ordered set where uuid = ? and companyId = ?.
|
com.liferay.portal.kernel.model.Team |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
Returns the last team in the ordered set where uuid = ? and companyId = ?.
|
com.liferay.portal.kernel.model.Team |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
Returns the first team in the ordered set where uuid = ?.
|
com.liferay.portal.kernel.model.Team |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the team where uuid = ? and groupId = ? or returns
null if it could not be found. |
com.liferay.portal.kernel.model.Team |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the team where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
com.liferay.portal.kernel.model.Team |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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 = ?.
|
com.liferay.portal.kernel.model.Team[] |
filterFindByGroupId_PrevAndNext(long teamId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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 = ?.
|
java.util.List<com.liferay.portal.kernel.model.Team> |
filterFindByGroupId(long groupId)
Returns all the teams that the user has permission to view where groupId = ?.
|
java.util.List<com.liferay.portal.kernel.model.Team> |
filterFindByGroupId(long groupId,
int start,
int end)
Returns a range of all the teams that the user has permission to view where groupId = ?.
|
java.util.List<com.liferay.portal.kernel.model.Team> |
filterFindByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
Returns an ordered range of all the teams that the user has permissions to view where groupId = ?.
|
protected com.liferay.portal.kernel.model.Team |
filterGetByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.kernel.model.Team team,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator,
boolean previous) |
java.util.List<com.liferay.portal.kernel.model.Team> |
findAll()
Returns all the teams.
|
java.util.List<com.liferay.portal.kernel.model.Team> |
findAll(int start,
int end)
Returns a range of all the teams.
|
java.util.List<com.liferay.portal.kernel.model.Team> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
Returns an ordered range of all the teams.
|
java.util.List<com.liferay.portal.kernel.model.Team> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the teams.
|
com.liferay.portal.kernel.model.Team |
findByG_N(long groupId,
java.lang.String name)
Returns the team where groupId = ? and name = ? or throws a
NoSuchTeamException if it could not be found. |
com.liferay.portal.kernel.model.Team |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
Returns the first team in the ordered set where groupId = ?.
|
com.liferay.portal.kernel.model.Team |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
Returns the last team in the ordered set where groupId = ?.
|
com.liferay.portal.kernel.model.Team[] |
findByGroupId_PrevAndNext(long teamId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
Returns the teams before and after the current team in the ordered set where groupId = ?.
|
java.util.List<com.liferay.portal.kernel.model.Team> |
findByGroupId(long groupId)
Returns all the teams where groupId = ?.
|
java.util.List<com.liferay.portal.kernel.model.Team> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the teams where groupId = ?.
|
java.util.List<com.liferay.portal.kernel.model.Team> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
Returns an ordered range of all the teams where groupId = ?.
|
java.util.List<com.liferay.portal.kernel.model.Team> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the teams where groupId = ?.
|
com.liferay.portal.kernel.model.Team |
findByPrimaryKey(long teamId)
Returns the team with the primary key or throws a
NoSuchTeamException if it could not be found. |
com.liferay.portal.kernel.model.Team |
findByPrimaryKey(java.io.Serializable primaryKey)
Returns the team with the primary key or throws a
com.liferay.portal.kernel.exception.NoSuchModelException if it could not be found. |
com.liferay.portal.kernel.model.Team |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
Returns the first team in the ordered set where uuid = ? and companyId = ?.
|
com.liferay.portal.kernel.model.Team |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
Returns the last team in the ordered set where uuid = ? and companyId = ?.
|
com.liferay.portal.kernel.model.Team[] |
findByUuid_C_PrevAndNext(long teamId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
Returns the teams before and after the current team in the ordered set where uuid = ? and companyId = ?.
|
java.util.List<com.liferay.portal.kernel.model.Team> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the teams where uuid = ? and companyId = ?.
|
java.util.List<com.liferay.portal.kernel.model.Team> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the teams where uuid = ? and companyId = ?.
|
java.util.List<com.liferay.portal.kernel.model.Team> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
Returns an ordered range of all the teams where uuid = ? and companyId = ?.
|
java.util.List<com.liferay.portal.kernel.model.Team> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the teams where uuid = ? and companyId = ?.
|
com.liferay.portal.kernel.model.Team |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
Returns the first team in the ordered set where uuid = ?.
|
com.liferay.portal.kernel.model.Team |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the team where uuid = ? and groupId = ? or throws a
NoSuchTeamException if it could not be found. |
com.liferay.portal.kernel.model.Team |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
Returns the last team in the ordered set where uuid = ?.
|
com.liferay.portal.kernel.model.Team[] |
findByUuid_PrevAndNext(long teamId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
Returns the teams before and after the current team in the ordered set where uuid = ?.
|
java.util.List<com.liferay.portal.kernel.model.Team> |
findByUuid(java.lang.String uuid)
Returns all the teams where uuid = ?.
|
java.util.List<com.liferay.portal.kernel.model.Team> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the teams where uuid = ?.
|
java.util.List<com.liferay.portal.kernel.model.Team> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
Returns an ordered range of all the teams where uuid = ?.
|
java.util.List<com.liferay.portal.kernel.model.Team> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the teams where uuid = ?.
|
java.util.Set<java.lang.String> |
getBadColumnNames() |
protected com.liferay.portal.kernel.model.Team |
getByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.kernel.model.Team team,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator,
boolean previous) |
protected com.liferay.portal.kernel.model.Team |
getByUuid_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.kernel.model.Team team,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator,
boolean previous) |
protected com.liferay.portal.kernel.model.Team |
getByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.kernel.model.Team team,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator,
boolean previous) |
java.util.Set<java.lang.String> |
getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) |
protected com.liferay.portal.kernel.dao.orm.EntityCache |
getEntityCache() |
java.util.List<java.lang.String> |
getMappingTableNames() |
protected java.lang.String |
getPKDBName() |
protected java.lang.String |
getSelectSQL() |
java.util.Map<java.lang.String,java.lang.Integer> |
getTableColumnsMap() |
java.lang.String |
getTableName() |
java.util.List<java.lang.String[]> |
getUniqueIndexColumnNames() |
long[] |
getUserGroupPrimaryKeys(long pk)
Returns the primaryKeys of user groups associated with the team.
|
java.util.List<com.liferay.portal.kernel.model.UserGroup> |
getUserGroups(long pk)
Returns all the user groups associated with the team.
|
java.util.List<com.liferay.portal.kernel.model.UserGroup> |
getUserGroups(long pk,
int start,
int end)
Returns a range of all the user groups associated with the team.
|
java.util.List<com.liferay.portal.kernel.model.UserGroup> |
getUserGroups(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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.
|
java.util.List<com.liferay.portal.kernel.model.User> |
getUsers(long pk)
Returns all the users associated with the team.
|
java.util.List<com.liferay.portal.kernel.model.User> |
getUsers(long pk,
int start,
int end)
Returns a range of all the users associated with the team.
|
java.util.List<com.liferay.portal.kernel.model.User> |
getUsers(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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.
|
com.liferay.portal.kernel.model.Team |
remove(long teamId)
Removes the team with the primary key from the database.
|
com.liferay.portal.kernel.model.Team |
remove(java.io.Serializable primaryKey)
Removes the team with the primary key from the database.
|
void |
removeAll()
Removes all the teams from the database.
|
com.liferay.portal.kernel.model.Team |
removeByG_N(long groupId,
java.lang.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(java.lang.String uuid,
long companyId)
Removes all the teams where uuid = ? and companyId = ? from the database.
|
com.liferay.portal.kernel.model.Team |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the team where uuid = ? and groupId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the teams where uuid = ? from the database.
|
protected com.liferay.portal.kernel.model.Team |
removeImpl(com.liferay.portal.kernel.model.Team team) |
void |
removeUser(long pk,
long userPK)
Removes the association between the team and the user.
|
void |
removeUser(long pk,
com.liferay.portal.kernel.model.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,
com.liferay.portal.kernel.model.UserGroup userGroup)
Removes the association between the team and the user group.
|
void |
removeUserGroups(long pk,
java.util.List<com.liferay.portal.kernel.model.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,
java.util.List<com.liferay.portal.kernel.model.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,
java.util.List<com.liferay.portal.kernel.model.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,
java.util.List<com.liferay.portal.kernel.model.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.
|
com.liferay.portal.kernel.model.Team |
updateImpl(com.liferay.portal.kernel.model.Team team) |
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, unregisterListener, update, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update
public static final java.lang.String FINDER_CLASS_NAME_ENTITY
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence
protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.Team,com.liferay.portal.kernel.model.User> teamToUserTableMapper
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserGroupPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserGroupPersistence userGroupPersistence
protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.Team,com.liferay.portal.kernel.model.UserGroup> teamToUserGroupTableMapper
public java.util.List<com.liferay.portal.kernel.model.Team> findByUuid(java.lang.String uuid)
findByUuid
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidpublic java.util.List<com.liferay.portal.kernel.model.Team> findByUuid(java.lang.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, then the query will include the default ORDER BY logic from TeamModelImpl
.
findByUuid
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)public java.util.List<com.liferay.portal.kernel.model.Team> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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, then the query will include the default ORDER BY logic from TeamModelImpl
.
findByUuid
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
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
)public java.util.List<com.liferay.portal.kernel.model.Team> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> 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 TeamModelImpl
.
findByUuid
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
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
)useFinderCache
- whether to use the finder cachepublic com.liferay.portal.kernel.model.Team findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
findByUuid_First
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)com.liferay.portal.kernel.exception.NoSuchTeamException
- if a matching team could not be foundpublic com.liferay.portal.kernel.model.Team fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
fetchByUuid_First
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching team could not be foundpublic com.liferay.portal.kernel.model.Team findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
findByUuid_Last
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)com.liferay.portal.kernel.exception.NoSuchTeamException
- if a matching team could not be foundpublic com.liferay.portal.kernel.model.Team fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
fetchByUuid_Last
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching team could not be foundpublic com.liferay.portal.kernel.model.Team[] findByUuid_PrevAndNext(long teamId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
findByUuid_PrevAndNext
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
teamId
- the primary key of the current teamuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)com.liferay.portal.kernel.exception.NoSuchTeamException
- if a team with the primary key could not be foundprotected com.liferay.portal.kernel.model.Team getByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous)
public void removeByUuid(java.lang.String uuid)
removeByUuid
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidpublic int countByUuid(java.lang.String uuid)
countByUuid
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidpublic com.liferay.portal.kernel.model.Team findByUUID_G(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.NoSuchTeamException
NoSuchTeamException
if it could not be found.findByUUID_G
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidgroupId
- the group IDcom.liferay.portal.kernel.exception.NoSuchTeamException
- if a matching team could not be foundpublic com.liferay.portal.kernel.model.Team fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.fetchByUUID_G
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidgroupId
- the group IDnull
if a matching team could not be foundpublic com.liferay.portal.kernel.model.Team fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.fetchByUUID_G
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching team could not be foundpublic com.liferay.portal.kernel.model.Team removeByUUID_G(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.NoSuchTeamException
removeByUUID_G
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidgroupId
- the group IDcom.liferay.portal.kernel.exception.NoSuchTeamException
public int countByUUID_G(java.lang.String uuid, long groupId)
countByUUID_G
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidgroupId
- the group IDpublic java.util.List<com.liferay.portal.kernel.model.Team> findByUuid_C(java.lang.String uuid, long companyId)
findByUuid_C
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidcompanyId
- the company IDpublic java.util.List<com.liferay.portal.kernel.model.Team> findByUuid_C(java.lang.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, then the query will include the default ORDER BY logic from TeamModelImpl
.
findByUuid_C
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)public java.util.List<com.liferay.portal.kernel.model.Team> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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, then the query will include the default ORDER BY logic from TeamModelImpl
.
findByUuid_C
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
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
)public java.util.List<com.liferay.portal.kernel.model.Team> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> 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 TeamModelImpl
.
findByUuid_C
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
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
)useFinderCache
- whether to use the finder cachepublic com.liferay.portal.kernel.model.Team findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
findByUuid_C_First
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)com.liferay.portal.kernel.exception.NoSuchTeamException
- if a matching team could not be foundpublic com.liferay.portal.kernel.model.Team fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
fetchByUuid_C_First
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching team could not be foundpublic com.liferay.portal.kernel.model.Team findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
findByUuid_C_Last
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)com.liferay.portal.kernel.exception.NoSuchTeamException
- if a matching team could not be foundpublic com.liferay.portal.kernel.model.Team fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
fetchByUuid_C_Last
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching team could not be foundpublic com.liferay.portal.kernel.model.Team[] findByUuid_C_PrevAndNext(long teamId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
findByUuid_C_PrevAndNext
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
teamId
- the primary key of the current teamuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)com.liferay.portal.kernel.exception.NoSuchTeamException
- if a team with the primary key could not be foundprotected com.liferay.portal.kernel.model.Team getByUuid_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous)
public void removeByUuid_C(java.lang.String uuid, long companyId)
removeByUuid_C
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidcompanyId
- the company IDpublic int countByUuid_C(java.lang.String uuid, long companyId)
countByUuid_C
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
uuid
- the uuidcompanyId
- the company IDpublic java.util.List<com.liferay.portal.kernel.model.Team> findByGroupId(long groupId)
findByGroupId
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
groupId
- the group IDpublic java.util.List<com.liferay.portal.kernel.model.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, then the query will include the default ORDER BY logic from TeamModelImpl
.
findByGroupId
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
groupId
- the group IDstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)public java.util.List<com.liferay.portal.kernel.model.Team> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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, then the query will include the default ORDER BY logic from TeamModelImpl
.
findByGroupId
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
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
)public java.util.List<com.liferay.portal.kernel.model.Team> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> 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 TeamModelImpl
.
findByGroupId
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
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
)useFinderCache
- whether to use the finder cachepublic com.liferay.portal.kernel.model.Team findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
findByGroupId_First
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)com.liferay.portal.kernel.exception.NoSuchTeamException
- if a matching team could not be foundpublic com.liferay.portal.kernel.model.Team fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
fetchByGroupId_First
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching team could not be foundpublic com.liferay.portal.kernel.model.Team findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
findByGroupId_Last
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)com.liferay.portal.kernel.exception.NoSuchTeamException
- if a matching team could not be foundpublic com.liferay.portal.kernel.model.Team fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
fetchByGroupId_Last
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching team could not be foundpublic com.liferay.portal.kernel.model.Team[] findByGroupId_PrevAndNext(long teamId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
findByGroupId_PrevAndNext
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
teamId
- the primary key of the current teamgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)com.liferay.portal.kernel.exception.NoSuchTeamException
- if a team with the primary key could not be foundprotected com.liferay.portal.kernel.model.Team getByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous)
public java.util.List<com.liferay.portal.kernel.model.Team> filterFindByGroupId(long groupId)
filterFindByGroupId
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
groupId
- the group IDpublic java.util.List<com.liferay.portal.kernel.model.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, then the query will include the default ORDER BY logic from TeamModelImpl
.
filterFindByGroupId
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
groupId
- the group IDstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)public java.util.List<com.liferay.portal.kernel.model.Team> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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, then the query will include the default ORDER BY logic from TeamModelImpl
.
filterFindByGroupId
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
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
)public com.liferay.portal.kernel.model.Team[] filterFindByGroupId_PrevAndNext(long teamId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
filterFindByGroupId_PrevAndNext
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
teamId
- the primary key of the current teamgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)com.liferay.portal.kernel.exception.NoSuchTeamException
- if a team with the primary key could not be foundprotected com.liferay.portal.kernel.model.Team filterGetByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous)
public void removeByGroupId(long groupId)
removeByGroupId
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
groupId
- the group IDpublic int countByGroupId(long groupId)
countByGroupId
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
groupId
- the group IDpublic int filterCountByGroupId(long groupId)
filterCountByGroupId
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
groupId
- the group IDpublic com.liferay.portal.kernel.model.Team findByG_N(long groupId, java.lang.String name) throws com.liferay.portal.kernel.exception.NoSuchTeamException
NoSuchTeamException
if it could not be found.findByG_N
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
groupId
- the group IDname
- the namecom.liferay.portal.kernel.exception.NoSuchTeamException
- if a matching team could not be foundpublic com.liferay.portal.kernel.model.Team fetchByG_N(long groupId, java.lang.String name)
null
if it could not be found. Uses the finder cache.fetchByG_N
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
groupId
- the group IDname
- the namenull
if a matching team could not be foundpublic com.liferay.portal.kernel.model.Team fetchByG_N(long groupId, java.lang.String name, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.fetchByG_N
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
groupId
- the group IDname
- the nameuseFinderCache
- whether to use the finder cachenull
if a matching team could not be foundpublic com.liferay.portal.kernel.model.Team removeByG_N(long groupId, java.lang.String name) throws com.liferay.portal.kernel.exception.NoSuchTeamException
removeByG_N
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
groupId
- the group IDname
- the namecom.liferay.portal.kernel.exception.NoSuchTeamException
public int countByG_N(long groupId, java.lang.String name)
countByG_N
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
groupId
- the group IDname
- the namepublic void cacheResult(com.liferay.portal.kernel.model.Team team)
cacheResult
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
cacheResult
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
team
- the teampublic void cacheResult(java.util.List<com.liferay.portal.kernel.model.Team> teams)
cacheResult
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
teams
- the teamspublic void clearCache()
The EntityCache
and com.liferay.portal.kernel.dao.orm.FinderCache
are both cleared by this method.
clearCache
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
clearCache
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
public void clearCache(com.liferay.portal.kernel.model.Team team)
The EntityCache
and com.liferay.portal.kernel.dao.orm.FinderCache
are both cleared by this method.
clearCache
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
clearCache
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
public void clearCache(java.util.List<com.liferay.portal.kernel.model.Team> teams)
clearCache
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
clearCache
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
public void clearCache(java.util.Set<java.io.Serializable> primaryKeys)
clearCache
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
protected void cacheUniqueFindersCache(TeamModelImpl teamModelImpl)
public com.liferay.portal.kernel.model.Team create(long teamId)
create
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
teamId
- the primary key for the new teampublic com.liferay.portal.kernel.model.Team remove(long teamId) throws com.liferay.portal.kernel.exception.NoSuchTeamException
remove
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
teamId
- the primary key of the teamcom.liferay.portal.kernel.exception.NoSuchTeamException
- if a team with the primary key could not be foundpublic com.liferay.portal.kernel.model.Team remove(java.io.Serializable primaryKey) throws com.liferay.portal.kernel.exception.NoSuchTeamException
remove
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
remove
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
primaryKey
- the primary key of the teamcom.liferay.portal.kernel.exception.NoSuchTeamException
- if a team with the primary key could not be foundprotected com.liferay.portal.kernel.model.Team removeImpl(com.liferay.portal.kernel.model.Team team)
removeImpl
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
public com.liferay.portal.kernel.model.Team updateImpl(com.liferay.portal.kernel.model.Team team)
updateImpl
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
updateImpl
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
public com.liferay.portal.kernel.model.Team findByPrimaryKey(java.io.Serializable primaryKey) throws com.liferay.portal.kernel.exception.NoSuchTeamException
com.liferay.portal.kernel.exception.NoSuchModelException
if it could not be found.findByPrimaryKey
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
findByPrimaryKey
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
primaryKey
- the primary key of the teamcom.liferay.portal.kernel.exception.NoSuchTeamException
- if a team with the primary key could not be foundpublic com.liferay.portal.kernel.model.Team findByPrimaryKey(long teamId) throws com.liferay.portal.kernel.exception.NoSuchTeamException
NoSuchTeamException
if it could not be found.findByPrimaryKey
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
teamId
- the primary key of the teamcom.liferay.portal.kernel.exception.NoSuchTeamException
- if a team with the primary key could not be foundpublic com.liferay.portal.kernel.model.Team fetchByPrimaryKey(java.io.Serializable primaryKey)
null
if it could not be found.fetchByPrimaryKey
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
fetchByPrimaryKey
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
primaryKey
- the primary key of the teamnull
if a team with the primary key could not be foundpublic com.liferay.portal.kernel.model.Team fetchByPrimaryKey(long teamId)
null
if it could not be found.fetchByPrimaryKey
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
teamId
- the primary key of the teamnull
if a team with the primary key could not be foundpublic java.util.Map<java.io.Serializable,com.liferay.portal.kernel.model.Team> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
fetchByPrimaryKeys
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
public java.util.List<com.liferay.portal.kernel.model.Team> findAll()
findAll
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
public java.util.List<com.liferay.portal.kernel.model.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, then the query will include the default ORDER BY logic from TeamModelImpl
.
findAll
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
start
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)public java.util.List<com.liferay.portal.kernel.model.Team> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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, then the query will include the default ORDER BY logic from TeamModelImpl
.
findAll
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
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
)public java.util.List<com.liferay.portal.kernel.model.Team> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> 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 TeamModelImpl
.
findAll
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
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
)useFinderCache
- whether to use the finder cachepublic void removeAll()
removeAll
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
public int countAll()
countAll
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
public long[] getUserPrimaryKeys(long pk)
getUserPrimaryKeys
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teampublic java.util.List<com.liferay.portal.kernel.model.User> getUsers(long pk)
getUsers
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teampublic java.util.List<com.liferay.portal.kernel.model.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, then the query will include the default ORDER BY logic from TeamModelImpl
.
getUsers
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
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)public java.util.List<com.liferay.portal.kernel.model.User> getUsers(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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, then the query will include the default ORDER BY logic from TeamModelImpl
.
getUsers
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
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
)public int getUsersSize(long pk)
getUsersSize
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teampublic boolean containsUser(long pk, long userPK)
true
if the user is associated with the team.containsUser
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamuserPK
- the primary key of the usertrue
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 com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the team to check for associations with userstrue
if the team has any users associated with it; false
otherwisepublic void addUser(long pk, long userPK)
addUser
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamuserPK
- the primary key of the userpublic void addUser(long pk, com.liferay.portal.kernel.model.User user)
addUser
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamuser
- the userpublic void addUsers(long pk, long[] userPKs)
addUsers
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamuserPKs
- the primary keys of the userspublic void addUsers(long pk, java.util.List<com.liferay.portal.kernel.model.User> users)
addUsers
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamusers
- the userspublic void clearUsers(long pk)
clearUsers
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the team to clear the associated users frompublic void removeUser(long pk, long userPK)
removeUser
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamuserPK
- the primary key of the userpublic void removeUser(long pk, com.liferay.portal.kernel.model.User user)
removeUser
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamuser
- the userpublic void removeUsers(long pk, long[] userPKs)
removeUsers
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamuserPKs
- the primary keys of the userspublic void removeUsers(long pk, java.util.List<com.liferay.portal.kernel.model.User> users)
removeUsers
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamusers
- the userspublic void setUsers(long pk, long[] userPKs)
setUsers
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamuserPKs
- the primary keys of the users to be associated with the teampublic void setUsers(long pk, java.util.List<com.liferay.portal.kernel.model.User> users)
setUsers
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamusers
- the users to be associated with the teampublic long[] getUserGroupPrimaryKeys(long pk)
getUserGroupPrimaryKeys
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teampublic java.util.List<com.liferay.portal.kernel.model.UserGroup> getUserGroups(long pk)
getUserGroups
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teampublic java.util.List<com.liferay.portal.kernel.model.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, then the query will include the default ORDER BY logic from TeamModelImpl
.
getUserGroups
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
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)public java.util.List<com.liferay.portal.kernel.model.UserGroup> getUserGroups(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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, then the query will include the default ORDER BY logic from TeamModelImpl
.
getUserGroups
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
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
)public int getUserGroupsSize(long pk)
getUserGroupsSize
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teampublic boolean containsUserGroup(long pk, long userGroupPK)
true
if the user group is associated with the team.containsUserGroup
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamuserGroupPK
- the primary key of the user grouptrue
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 com.liferay.portal.kernel.service.persistence.TeamPersistence
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
otherwisepublic void addUserGroup(long pk, long userGroupPK)
addUserGroup
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamuserGroupPK
- the primary key of the user grouppublic void addUserGroup(long pk, com.liferay.portal.kernel.model.UserGroup userGroup)
addUserGroup
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamuserGroup
- the user grouppublic void addUserGroups(long pk, long[] userGroupPKs)
addUserGroups
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamuserGroupPKs
- the primary keys of the user groupspublic void addUserGroups(long pk, java.util.List<com.liferay.portal.kernel.model.UserGroup> userGroups)
addUserGroups
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamuserGroups
- the user groupspublic void clearUserGroups(long pk)
clearUserGroups
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the team to clear the associated user groups frompublic void removeUserGroup(long pk, long userGroupPK)
removeUserGroup
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamuserGroupPK
- the primary key of the user grouppublic void removeUserGroup(long pk, com.liferay.portal.kernel.model.UserGroup userGroup)
removeUserGroup
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamuserGroup
- the user grouppublic void removeUserGroups(long pk, long[] userGroupPKs)
removeUserGroups
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamuserGroupPKs
- the primary keys of the user groupspublic void removeUserGroups(long pk, java.util.List<com.liferay.portal.kernel.model.UserGroup> userGroups)
removeUserGroups
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamuserGroups
- the user groupspublic void setUserGroups(long pk, long[] userGroupPKs)
setUserGroups
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamuserGroupPKs
- the primary keys of the user groups to be associated with the teampublic void setUserGroups(long pk, java.util.List<com.liferay.portal.kernel.model.UserGroup> userGroups)
setUserGroups
in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
pk
- the primary key of the teamuserGroups
- the user groups to be associated with the teampublic java.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
getBadColumnNames
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()
getEntityCache
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
protected java.lang.String getPKDBName()
getPKDBName
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
protected java.lang.String getSelectSQL()
getSelectSQL
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
public java.util.Set<java.lang.String> getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType)
getCTColumnNames
in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>
public java.util.List<java.lang.String> getMappingTableNames()
getMappingTableNames
in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>
public java.util.Map<java.lang.String,java.lang.Integer> getTableColumnsMap()
getTableColumnsMap
in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>
getTableColumnsMap
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
public java.lang.String getTableName()
getTableName
in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>
public java.util.List<java.lang.String[]> getUniqueIndexColumnNames()
getUniqueIndexColumnNames
in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>
public void afterPropertiesSet()
public void destroy()