|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<Organization>
com.liferay.portal.service.persistence.impl.OrganizationPersistenceImpl
@ProviderType public class OrganizationPersistenceImpl
The persistence implementation for the organization service.
Caching information and settings can be found in portal.properties
OrganizationPersistence,
OrganizationUtil| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
| Constructor Summary | |
|---|---|
OrganizationPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
addGroup(long pk,
Group group)
Adds an association between the organization and the group. |
void |
addGroup(long pk,
long groupPK)
Adds an association between the organization and the group. |
void |
addGroups(long pk,
List<Group> groups)
Adds an association between the organization and the groups. |
void |
addGroups(long pk,
long[] groupPKs)
Adds an association between the organization and the groups. |
void |
addUser(long pk,
long userPK)
Adds an association between the organization and the user. |
void |
addUser(long pk,
User user)
Adds an association between the organization and the user. |
void |
addUsers(long pk,
List<User> users)
Adds an association between the organization and the users. |
void |
addUsers(long pk,
long[] userPKs)
Adds an association between the organization and the users. |
void |
afterPropertiesSet()
Initializes the organization persistence. |
void |
cacheResult(List<Organization> organizations)
Caches the organizations in the entity cache if it is enabled. |
void |
cacheResult(Organization organization)
Caches the organization in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(OrganizationModelImpl organizationModelImpl,
boolean isNew)
|
void |
clearCache()
Clears the cache for all organizations. |
void |
clearCache(List<Organization> organizations)
Clears the cache for a List instances of this model. |
void |
clearCache(Organization organization)
Clears the cache for the organization. |
void |
clearGroups(long pk)
Clears all associations between the organization and its groups. |
protected void |
clearUniqueFindersCache(OrganizationModelImpl organizationModelImpl)
|
void |
clearUsers(long pk)
Clears all associations between the organization and its users. |
boolean |
containsGroup(long pk,
long groupPK)
Returns true if the group is associated with the organization. |
boolean |
containsGroups(long pk)
Returns true if the organization has any groups associated with it. |
boolean |
containsUser(long pk,
long userPK)
Returns true if the user is associated with the organization. |
boolean |
containsUsers(long pk)
Returns true if the organization has any users associated with it. |
int |
countAll()
Returns the number of organizations. |
int |
countByC_N(long companyId,
String name)
Returns the number of organizations where companyId = ? and name = ?. |
int |
countByC_P(long companyId,
long parentOrganizationId)
Returns the number of organizations where companyId = ? and parentOrganizationId = ?. |
int |
countByC_T(long companyId,
String treePath)
Returns the number of organizations where companyId = ? and treePath LIKE ?. |
int |
countByCompanyId(long companyId)
Returns the number of organizations where companyId = ?. |
int |
countByLocations(long companyId)
Returns the number of organizations where companyId = ?. |
int |
countByO_C_P(long organizationId,
long companyId,
long parentOrganizationId)
Returns the number of organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?. |
int |
countByUuid_C(String uuid,
long companyId)
Returns the number of organizations where uuid = ? and companyId = ?. |
int |
countByUuid(String uuid)
Returns the number of organizations where uuid = ?. |
Organization |
create(long organizationId)
Creates a new organization with the primary key. |
void |
destroy()
|
Organization |
fetchByC_N(long companyId,
String name)
Returns the organization where companyId = ? and name = ? or returns null if it could not be found. |
Organization |
fetchByC_N(long companyId,
String name,
boolean retrieveFromCache)
Returns the organization where companyId = ? and name = ? or returns null if it could not be found, optionally using the finder cache. |
Organization |
fetchByC_P_First(long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator)
Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?. |
Organization |
fetchByC_P_Last(long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator)
Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ?. |
Organization |
fetchByC_T_First(long companyId,
String treePath,
OrderByComparator<Organization> orderByComparator)
Returns the first organization in the ordered set where companyId = ? and treePath LIKE ?. |
Organization |
fetchByC_T_Last(long companyId,
String treePath,
OrderByComparator<Organization> orderByComparator)
Returns the last organization in the ordered set where companyId = ? and treePath LIKE ?. |
Organization |
fetchByCompanyId_First(long companyId,
OrderByComparator<Organization> orderByComparator)
Returns the first organization in the ordered set where companyId = ?. |
Organization |
fetchByCompanyId_Last(long companyId,
OrderByComparator<Organization> orderByComparator)
Returns the last organization in the ordered set where companyId = ?. |
Organization |
fetchByLocations_First(long companyId,
OrderByComparator<Organization> orderByComparator)
Returns the first organization in the ordered set where companyId = ?. |
Organization |
fetchByLocations_Last(long companyId,
OrderByComparator<Organization> orderByComparator)
Returns the last organization in the ordered set where companyId = ?. |
Organization |
fetchByO_C_P_First(long organizationId,
long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator)
Returns the first organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?. |
Organization |
fetchByO_C_P_Last(long organizationId,
long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator)
Returns the last organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?. |
Organization |
fetchByPrimaryKey(long organizationId)
Returns the organization with the primary key or returns null if it could not be found. |
Organization |
fetchByPrimaryKey(Serializable primaryKey)
Returns the organization with the primary key or returns null if it could not be found. |
Map<Serializable,Organization> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
Organization |
fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator<Organization> orderByComparator)
Returns the first organization in the ordered set where uuid = ? and companyId = ?. |
Organization |
fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<Organization> orderByComparator)
Returns the last organization in the ordered set where uuid = ? and companyId = ?. |
Organization |
fetchByUuid_First(String uuid,
OrderByComparator<Organization> orderByComparator)
Returns the first organization in the ordered set where uuid = ?. |
Organization |
fetchByUuid_Last(String uuid,
OrderByComparator<Organization> orderByComparator)
Returns the last organization in the ordered set where uuid = ?. |
int |
filterCountByC_P(long companyId,
long parentOrganizationId)
Returns the number of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?. |
int |
filterCountByC_T(long companyId,
String treePath)
Returns the number of organizations that the user has permission to view where companyId = ? and treePath LIKE ?. |
int |
filterCountByCompanyId(long companyId)
Returns the number of organizations that the user has permission to view where companyId = ?. |
int |
filterCountByLocations(long companyId)
Returns the number of organizations that the user has permission to view where companyId = ?. |
int |
filterCountByO_C_P(long organizationId,
long companyId,
long parentOrganizationId)
Returns the number of organizations that the user has permission to view where organizationId > ? and companyId = ? and parentOrganizationId = ?. |
int |
filterCountByUuid_C(String uuid,
long companyId)
Returns the number of organizations that the user has permission to view where uuid = ? and companyId = ?. |
int |
filterCountByUuid(String uuid)
Returns the number of organizations that the user has permission to view where uuid = ?. |
Organization[] |
filterFindByC_P_PrevAndNext(long organizationId,
long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator)
Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?. |
List<Organization> |
filterFindByC_P(long companyId,
long parentOrganizationId)
Returns all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?. |
List<Organization> |
filterFindByC_P(long companyId,
long parentOrganizationId,
int start,
int end)
Returns a range of all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?. |
List<Organization> |
filterFindByC_P(long companyId,
long parentOrganizationId,
int start,
int end,
OrderByComparator<Organization> orderByComparator)
Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and parentOrganizationId = ?. |
Organization[] |
filterFindByC_T_PrevAndNext(long organizationId,
long companyId,
String treePath,
OrderByComparator<Organization> orderByComparator)
Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ? and treePath LIKE ?. |
List<Organization> |
filterFindByC_T(long companyId,
String treePath)
Returns all the organizations that the user has permission to view where companyId = ? and treePath LIKE ?. |
List<Organization> |
filterFindByC_T(long companyId,
String treePath,
int start,
int end)
Returns a range of all the organizations that the user has permission to view where companyId = ? and treePath LIKE ?. |
List<Organization> |
filterFindByC_T(long companyId,
String treePath,
int start,
int end,
OrderByComparator<Organization> orderByComparator)
Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and treePath LIKE ?. |
Organization[] |
filterFindByCompanyId_PrevAndNext(long organizationId,
long companyId,
OrderByComparator<Organization> orderByComparator)
Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ?. |
List<Organization> |
filterFindByCompanyId(long companyId)
Returns all the organizations that the user has permission to view where companyId = ?. |
List<Organization> |
filterFindByCompanyId(long companyId,
int start,
int end)
Returns a range of all the organizations that the user has permission to view where companyId = ?. |
List<Organization> |
filterFindByCompanyId(long companyId,
int start,
int end,
OrderByComparator<Organization> orderByComparator)
Returns an ordered range of all the organizations that the user has permissions to view where companyId = ?. |
Organization[] |
filterFindByLocations_PrevAndNext(long organizationId,
long companyId,
OrderByComparator<Organization> orderByComparator)
Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ?. |
List<Organization> |
filterFindByLocations(long companyId)
Returns all the organizations that the user has permission to view where companyId = ?. |
List<Organization> |
filterFindByLocations(long companyId,
int start,
int end)
Returns a range of all the organizations that the user has permission to view where companyId = ?. |
List<Organization> |
filterFindByLocations(long companyId,
int start,
int end,
OrderByComparator<Organization> orderByComparator)
Returns an ordered range of all the organizations that the user has permissions to view where companyId = ?. |
List<Organization> |
filterFindByO_C_P(long organizationId,
long companyId,
long parentOrganizationId)
Returns all the organizations that the user has permission to view where organizationId > ? and companyId = ? and parentOrganizationId = ?. |
List<Organization> |
filterFindByO_C_P(long organizationId,
long companyId,
long parentOrganizationId,
int start,
int end)
Returns a range of all the organizations that the user has permission to view where organizationId > ? and companyId = ? and parentOrganizationId = ?. |
List<Organization> |
filterFindByO_C_P(long organizationId,
long companyId,
long parentOrganizationId,
int start,
int end,
OrderByComparator<Organization> orderByComparator)
Returns an ordered range of all the organizations that the user has permissions to view where organizationId > ? and companyId = ? and parentOrganizationId = ?. |
Organization[] |
filterFindByUuid_C_PrevAndNext(long organizationId,
String uuid,
long companyId,
OrderByComparator<Organization> orderByComparator)
Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where uuid = ? and companyId = ?. |
List<Organization> |
filterFindByUuid_C(String uuid,
long companyId)
Returns all the organizations that the user has permission to view where uuid = ? and companyId = ?. |
List<Organization> |
filterFindByUuid_C(String uuid,
long companyId,
int start,
int end)
Returns a range of all the organizations that the user has permission to view where uuid = ? and companyId = ?. |
List<Organization> |
filterFindByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<Organization> orderByComparator)
Returns an ordered range of all the organizations that the user has permissions to view where uuid = ? and companyId = ?. |
Organization[] |
filterFindByUuid_PrevAndNext(long organizationId,
String uuid,
OrderByComparator<Organization> orderByComparator)
Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where uuid = ?. |
List<Organization> |
filterFindByUuid(String uuid)
Returns all the organizations that the user has permission to view where uuid = ?. |
List<Organization> |
filterFindByUuid(String uuid,
int start,
int end)
Returns a range of all the organizations that the user has permission to view where uuid = ?. |
List<Organization> |
filterFindByUuid(String uuid,
int start,
int end,
OrderByComparator<Organization> orderByComparator)
Returns an ordered range of all the organizations that the user has permissions to view where uuid = ?. |
protected Organization |
filterGetByC_P_PrevAndNext(Session session,
Organization organization,
long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator,
boolean previous)
|
protected Organization |
filterGetByC_T_PrevAndNext(Session session,
Organization organization,
long companyId,
String treePath,
OrderByComparator<Organization> orderByComparator,
boolean previous)
|
protected Organization |
filterGetByCompanyId_PrevAndNext(Session session,
Organization organization,
long companyId,
OrderByComparator<Organization> orderByComparator,
boolean previous)
|
protected Organization |
filterGetByLocations_PrevAndNext(Session session,
Organization organization,
long companyId,
OrderByComparator<Organization> orderByComparator,
boolean previous)
|
protected Organization |
filterGetByUuid_C_PrevAndNext(Session session,
Organization organization,
String uuid,
long companyId,
OrderByComparator<Organization> orderByComparator,
boolean previous)
|
protected Organization |
filterGetByUuid_PrevAndNext(Session session,
Organization organization,
String uuid,
OrderByComparator<Organization> orderByComparator,
boolean previous)
|
List<Organization> |
findAll()
Returns all the organizations. |
List<Organization> |
findAll(int start,
int end)
Returns a range of all the organizations. |
List<Organization> |
findAll(int start,
int end,
OrderByComparator<Organization> orderByComparator)
Returns an ordered range of all the organizations. |
List<Organization> |
findAll(int start,
int end,
OrderByComparator<Organization> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the organizations. |
Organization |
findByC_N(long companyId,
String name)
Returns the organization where companyId = ? and name = ? or throws a NoSuchOrganizationException if it could not be found. |
Organization |
findByC_P_First(long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator)
Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?. |
Organization |
findByC_P_Last(long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator)
Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ?. |
Organization[] |
findByC_P_PrevAndNext(long organizationId,
long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator)
Returns the organizations before and after the current organization in the ordered set where companyId = ? and parentOrganizationId = ?. |
List<Organization> |
findByC_P(long companyId,
long parentOrganizationId)
Returns all the organizations where companyId = ? and parentOrganizationId = ?. |
List<Organization> |
findByC_P(long companyId,
long parentOrganizationId,
int start,
int end)
Returns a range of all the organizations where companyId = ? and parentOrganizationId = ?. |
List<Organization> |
findByC_P(long companyId,
long parentOrganizationId,
int start,
int end,
OrderByComparator<Organization> orderByComparator)
Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ?. |
List<Organization> |
findByC_P(long companyId,
long parentOrganizationId,
int start,
int end,
OrderByComparator<Organization> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ?. |
Organization |
findByC_T_First(long companyId,
String treePath,
OrderByComparator<Organization> orderByComparator)
Returns the first organization in the ordered set where companyId = ? and treePath LIKE ?. |
Organization |
findByC_T_Last(long companyId,
String treePath,
OrderByComparator<Organization> orderByComparator)
Returns the last organization in the ordered set where companyId = ? and treePath LIKE ?. |
Organization[] |
findByC_T_PrevAndNext(long organizationId,
long companyId,
String treePath,
OrderByComparator<Organization> orderByComparator)
Returns the organizations before and after the current organization in the ordered set where companyId = ? and treePath LIKE ?. |
List<Organization> |
findByC_T(long companyId,
String treePath)
Returns all the organizations where companyId = ? and treePath LIKE ?. |
List<Organization> |
findByC_T(long companyId,
String treePath,
int start,
int end)
Returns a range of all the organizations where companyId = ? and treePath LIKE ?. |
List<Organization> |
findByC_T(long companyId,
String treePath,
int start,
int end,
OrderByComparator<Organization> orderByComparator)
Returns an ordered range of all the organizations where companyId = ? and treePath LIKE ?. |
List<Organization> |
findByC_T(long companyId,
String treePath,
int start,
int end,
OrderByComparator<Organization> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the organizations where companyId = ? and treePath LIKE ?. |
Organization |
findByCompanyId_First(long companyId,
OrderByComparator<Organization> orderByComparator)
Returns the first organization in the ordered set where companyId = ?. |
Organization |
findByCompanyId_Last(long companyId,
OrderByComparator<Organization> orderByComparator)
Returns the last organization in the ordered set where companyId = ?. |
Organization[] |
findByCompanyId_PrevAndNext(long organizationId,
long companyId,
OrderByComparator<Organization> orderByComparator)
Returns the organizations before and after the current organization in the ordered set where companyId = ?. |
List<Organization> |
findByCompanyId(long companyId)
Returns all the organizations where companyId = ?. |
List<Organization> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the organizations where companyId = ?. |
List<Organization> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<Organization> orderByComparator)
Returns an ordered range of all the organizations where companyId = ?. |
List<Organization> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<Organization> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the organizations where companyId = ?. |
Organization |
findByLocations_First(long companyId,
OrderByComparator<Organization> orderByComparator)
Returns the first organization in the ordered set where companyId = ?. |
Organization |
findByLocations_Last(long companyId,
OrderByComparator<Organization> orderByComparator)
Returns the last organization in the ordered set where companyId = ?. |
Organization[] |
findByLocations_PrevAndNext(long organizationId,
long companyId,
OrderByComparator<Organization> orderByComparator)
Returns the organizations before and after the current organization in the ordered set where companyId = ?. |
List<Organization> |
findByLocations(long companyId)
Returns all the organizations where companyId = ?. |
List<Organization> |
findByLocations(long companyId,
int start,
int end)
Returns a range of all the organizations where companyId = ?. |
List<Organization> |
findByLocations(long companyId,
int start,
int end,
OrderByComparator<Organization> orderByComparator)
Returns an ordered range of all the organizations where companyId = ?. |
List<Organization> |
findByLocations(long companyId,
int start,
int end,
OrderByComparator<Organization> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the organizations where companyId = ?. |
Organization |
findByO_C_P_First(long organizationId,
long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator)
Returns the first organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?. |
Organization |
findByO_C_P_Last(long organizationId,
long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator)
Returns the last organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?. |
List<Organization> |
findByO_C_P(long organizationId,
long companyId,
long parentOrganizationId)
Returns all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?. |
List<Organization> |
findByO_C_P(long organizationId,
long companyId,
long parentOrganizationId,
int start,
int end)
Returns a range of all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?. |
List<Organization> |
findByO_C_P(long organizationId,
long companyId,
long parentOrganizationId,
int start,
int end,
OrderByComparator<Organization> orderByComparator)
Returns an ordered range of all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?. |
List<Organization> |
findByO_C_P(long organizationId,
long companyId,
long parentOrganizationId,
int start,
int end,
OrderByComparator<Organization> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?. |
Organization |
findByPrimaryKey(long organizationId)
Returns the organization with the primary key or throws a NoSuchOrganizationException if it could not be found. |
Organization |
findByPrimaryKey(Serializable primaryKey)
Returns the organization with the primary key or throws a NoSuchModelException if it could not be found. |
Organization |
findByUuid_C_First(String uuid,
long companyId,
OrderByComparator<Organization> orderByComparator)
Returns the first organization in the ordered set where uuid = ? and companyId = ?. |
Organization |
findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<Organization> orderByComparator)
Returns the last organization in the ordered set where uuid = ? and companyId = ?. |
Organization[] |
findByUuid_C_PrevAndNext(long organizationId,
String uuid,
long companyId,
OrderByComparator<Organization> orderByComparator)
Returns the organizations before and after the current organization in the ordered set where uuid = ? and companyId = ?. |
List<Organization> |
findByUuid_C(String uuid,
long companyId)
Returns all the organizations where uuid = ? and companyId = ?. |
List<Organization> |
findByUuid_C(String uuid,
long companyId,
int start,
int end)
Returns a range of all the organizations where uuid = ? and companyId = ?. |
List<Organization> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<Organization> orderByComparator)
Returns an ordered range of all the organizations where uuid = ? and companyId = ?. |
List<Organization> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<Organization> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the organizations where uuid = ? and companyId = ?. |
Organization |
findByUuid_First(String uuid,
OrderByComparator<Organization> orderByComparator)
Returns the first organization in the ordered set where uuid = ?. |
Organization |
findByUuid_Last(String uuid,
OrderByComparator<Organization> orderByComparator)
Returns the last organization in the ordered set where uuid = ?. |
Organization[] |
findByUuid_PrevAndNext(long organizationId,
String uuid,
OrderByComparator<Organization> orderByComparator)
Returns the organizations before and after the current organization in the ordered set where uuid = ?. |
List<Organization> |
findByUuid(String uuid)
Returns all the organizations where uuid = ?. |
List<Organization> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the organizations where uuid = ?. |
List<Organization> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator<Organization> orderByComparator)
Returns an ordered range of all the organizations where uuid = ?. |
List<Organization> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator<Organization> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the organizations where uuid = ?. |
Set<String> |
getBadColumnNames()
|
protected Organization |
getByC_P_PrevAndNext(Session session,
Organization organization,
long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator,
boolean previous)
|
protected Organization |
getByC_T_PrevAndNext(Session session,
Organization organization,
long companyId,
String treePath,
OrderByComparator<Organization> orderByComparator,
boolean previous)
|
protected Organization |
getByCompanyId_PrevAndNext(Session session,
Organization organization,
long companyId,
OrderByComparator<Organization> orderByComparator,
boolean previous)
|
protected Organization |
getByLocations_PrevAndNext(Session session,
Organization organization,
long companyId,
OrderByComparator<Organization> orderByComparator,
boolean previous)
|
protected Organization |
getByUuid_C_PrevAndNext(Session session,
Organization organization,
String uuid,
long companyId,
OrderByComparator<Organization> orderByComparator,
boolean previous)
|
protected Organization |
getByUuid_PrevAndNext(Session session,
Organization organization,
String uuid,
OrderByComparator<Organization> orderByComparator,
boolean previous)
|
long[] |
getGroupPrimaryKeys(long pk)
Returns the primaryKeys of groups associated with the organization. |
List<Group> |
getGroups(long pk)
Returns all the groups associated with the organization. |
List<Group> |
getGroups(long pk,
int start,
int end)
Returns a range of all the groups associated with the organization. |
List<Group> |
getGroups(long pk,
int start,
int end,
OrderByComparator<Group> orderByComparator)
Returns an ordered range of all the groups associated with the organization. |
int |
getGroupsSize(long pk)
Returns the number of groups associated with the organization. |
protected Map<String,Integer> |
getTableColumnsMap()
|
long[] |
getUserPrimaryKeys(long pk)
Returns the primaryKeys of users associated with the organization. |
List<User> |
getUsers(long pk)
Returns all the users associated with the organization. |
List<User> |
getUsers(long pk,
int start,
int end)
Returns a range of all the users associated with the organization. |
List<User> |
getUsers(long pk,
int start,
int end,
OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users associated with the organization. |
int |
getUsersSize(long pk)
Returns the number of users associated with the organization. |
Organization |
remove(long organizationId)
Removes the organization with the primary key from the database. |
Organization |
remove(Serializable primaryKey)
Removes the organization with the primary key from the database. |
void |
removeAll()
Removes all the organizations from the database. |
Organization |
removeByC_N(long companyId,
String name)
Removes the organization where companyId = ? and name = ? from the database. |
void |
removeByC_P(long companyId,
long parentOrganizationId)
Removes all the organizations where companyId = ? and parentOrganizationId = ? from the database. |
void |
removeByC_T(long companyId,
String treePath)
Removes all the organizations where companyId = ? and treePath LIKE ? from the database. |
void |
removeByCompanyId(long companyId)
Removes all the organizations where companyId = ? from the database. |
void |
removeByLocations(long companyId)
Removes all the organizations where companyId = ? from the database. |
void |
removeByO_C_P(long organizationId,
long companyId,
long parentOrganizationId)
Removes all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ? from the database. |
void |
removeByUuid_C(String uuid,
long companyId)
Removes all the organizations where uuid = ? and companyId = ? from the database. |
void |
removeByUuid(String uuid)
Removes all the organizations where uuid = ? from the database. |
void |
removeGroup(long pk,
Group group)
Removes the association between the organization and the group. |
void |
removeGroup(long pk,
long groupPK)
Removes the association between the organization and the group. |
void |
removeGroups(long pk,
List<Group> groups)
Removes the association between the organization and the groups. |
void |
removeGroups(long pk,
long[] groupPKs)
Removes the association between the organization and the groups. |
protected Organization |
removeImpl(Organization organization)
Removes the model instance from the database. |
void |
removeUser(long pk,
long userPK)
Removes the association between the organization and the user. |
void |
removeUser(long pk,
User user)
Removes the association between the organization and the user. |
void |
removeUsers(long pk,
List<User> users)
Removes the association between the organization and the users. |
void |
removeUsers(long pk,
long[] userPKs)
Removes the association between the organization and the users. |
void |
setGroups(long pk,
List<Group> groups)
Sets the groups associated with the organization, removing and adding associations as necessary. |
void |
setGroups(long pk,
long[] groupPKs)
Sets the groups associated with the organization, removing and adding associations as necessary. |
void |
setUsers(long pk,
List<User> users)
Sets the users associated with the organization, removing and adding associations as necessary. |
void |
setUsers(long pk,
long[] userPKs)
Sets the users associated with the organization, removing and adding associations as necessary. |
protected Organization |
toUnwrappedModel(Organization organization)
|
Organization |
updateImpl(Organization organization)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
public static final FinderPath FINDER_PATH_COUNT_BY_UUID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C
public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_LOCATIONS
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_LOCATIONS
public static final FinderPath FINDER_PATH_COUNT_BY_LOCATIONS
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_P
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_P
public static final FinderPath FINDER_PATH_COUNT_BY_C_P
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_T
public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_C_T
public static final FinderPath FINDER_PATH_FETCH_BY_C_N
public static final FinderPath FINDER_PATH_COUNT_BY_C_N
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_O_C_P
public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_O_C_P
@BeanReference(type=CompanyProviderWrapper.class) protected CompanyProvider companyProvider
protected EntityCache entityCache
protected FinderCache finderCache
@BeanReference(type=GroupPersistence.class) protected GroupPersistence groupPersistence
protected TableMapper<Organization,Group> organizationToGroupTableMapper
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
protected TableMapper<Organization,User> organizationToUserTableMapper
| Constructor Detail |
|---|
public OrganizationPersistenceImpl()
| Method Detail |
|---|
public List<Organization> findByUuid(String uuid)
findByUuid in interface OrganizationPersistenceuuid - the uuid
public List<Organization> 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 OrganizationModelImpl. 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.
findByUuid in interface OrganizationPersistenceuuid - the uuidstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)
public List<Organization> findByUuid(String uuid,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
findByUuid in interface OrganizationPersistenceuuid - the uuidstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<Organization> findByUuid(String uuid,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
findByUuid in interface OrganizationPersistenceuuid - the uuidstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public Organization findByUuid_First(String uuid,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
findByUuid_First in interface OrganizationPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a matching organization could not be found
public Organization fetchByUuid_First(String uuid,
OrderByComparator<Organization> orderByComparator)
fetchByUuid_First in interface OrganizationPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
null if a matching organization could not be found
public Organization findByUuid_Last(String uuid,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
findByUuid_Last in interface OrganizationPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a matching organization could not be found
public Organization fetchByUuid_Last(String uuid,
OrderByComparator<Organization> orderByComparator)
fetchByUuid_Last in interface OrganizationPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
null if a matching organization could not be found
public Organization[] findByUuid_PrevAndNext(long organizationId,
String uuid,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
findByUuid_PrevAndNext in interface OrganizationPersistenceorganizationId - the primary key of the current organizationuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a organization with the primary key could not be found
protected Organization getByUuid_PrevAndNext(Session session,
Organization organization,
String uuid,
OrderByComparator<Organization> orderByComparator,
boolean previous)
public List<Organization> filterFindByUuid(String uuid)
filterFindByUuid in interface OrganizationPersistenceuuid - the uuid
public List<Organization> filterFindByUuid(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 OrganizationModelImpl. 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.
filterFindByUuid in interface OrganizationPersistenceuuid - the uuidstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)
public List<Organization> filterFindByUuid(String uuid,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
filterFindByUuid in interface OrganizationPersistenceuuid - the uuidstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public Organization[] filterFindByUuid_PrevAndNext(long organizationId,
String uuid,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
filterFindByUuid_PrevAndNext in interface OrganizationPersistenceorganizationId - the primary key of the current organizationuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a organization with the primary key could not be found
protected Organization filterGetByUuid_PrevAndNext(Session session,
Organization organization,
String uuid,
OrderByComparator<Organization> orderByComparator,
boolean previous)
public void removeByUuid(String uuid)
removeByUuid in interface OrganizationPersistenceuuid - the uuidpublic int countByUuid(String uuid)
countByUuid in interface OrganizationPersistenceuuid - the uuid
public int filterCountByUuid(String uuid)
filterCountByUuid in interface OrganizationPersistenceuuid - the uuid
public List<Organization> findByUuid_C(String uuid,
long companyId)
findByUuid_C in interface OrganizationPersistenceuuid - the uuidcompanyId - the company ID
public List<Organization> 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 OrganizationModelImpl. 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.
findByUuid_C in interface OrganizationPersistenceuuid - the uuidcompanyId - the company IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)
public List<Organization> findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
findByUuid_C in interface OrganizationPersistenceuuid - the uuidcompanyId - the company IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<Organization> findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
findByUuid_C in interface OrganizationPersistenceuuid - the uuidcompanyId - the company IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public Organization findByUuid_C_First(String uuid,
long companyId,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
findByUuid_C_First in interface OrganizationPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a matching organization could not be found
public Organization fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator<Organization> orderByComparator)
fetchByUuid_C_First in interface OrganizationPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching organization could not be found
public Organization findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
findByUuid_C_Last in interface OrganizationPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a matching organization could not be found
public Organization fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<Organization> orderByComparator)
fetchByUuid_C_Last in interface OrganizationPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching organization could not be found
public Organization[] findByUuid_C_PrevAndNext(long organizationId,
String uuid,
long companyId,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
findByUuid_C_PrevAndNext in interface OrganizationPersistenceorganizationId - the primary key of the current organizationuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a organization with the primary key could not be found
protected Organization getByUuid_C_PrevAndNext(Session session,
Organization organization,
String uuid,
long companyId,
OrderByComparator<Organization> orderByComparator,
boolean previous)
public List<Organization> filterFindByUuid_C(String uuid,
long companyId)
filterFindByUuid_C in interface OrganizationPersistenceuuid - the uuidcompanyId - the company ID
public List<Organization> filterFindByUuid_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 OrganizationModelImpl. 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.
filterFindByUuid_C in interface OrganizationPersistenceuuid - the uuidcompanyId - the company IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)
public List<Organization> filterFindByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
filterFindByUuid_C in interface OrganizationPersistenceuuid - the uuidcompanyId - the company IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public Organization[] filterFindByUuid_C_PrevAndNext(long organizationId,
String uuid,
long companyId,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
filterFindByUuid_C_PrevAndNext in interface OrganizationPersistenceorganizationId - the primary key of the current organizationuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a organization with the primary key could not be found
protected Organization filterGetByUuid_C_PrevAndNext(Session session,
Organization organization,
String uuid,
long companyId,
OrderByComparator<Organization> orderByComparator,
boolean previous)
public void removeByUuid_C(String uuid,
long companyId)
removeByUuid_C in interface OrganizationPersistenceuuid - the uuidcompanyId - the company ID
public int countByUuid_C(String uuid,
long companyId)
countByUuid_C in interface OrganizationPersistenceuuid - the uuidcompanyId - the company ID
public int filterCountByUuid_C(String uuid,
long companyId)
filterCountByUuid_C in interface OrganizationPersistenceuuid - the uuidcompanyId - the company ID
public List<Organization> findByCompanyId(long companyId)
findByCompanyId in interface OrganizationPersistencecompanyId - the company ID
public List<Organization> findByCompanyId(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 OrganizationModelImpl. 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.
findByCompanyId in interface OrganizationPersistencecompanyId - the company IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)
public List<Organization> findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
findByCompanyId in interface OrganizationPersistencecompanyId - the company IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<Organization> findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
findByCompanyId in interface OrganizationPersistencecompanyId - the company IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public Organization findByCompanyId_First(long companyId,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
findByCompanyId_First in interface OrganizationPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a matching organization could not be found
public Organization fetchByCompanyId_First(long companyId,
OrderByComparator<Organization> orderByComparator)
fetchByCompanyId_First in interface OrganizationPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching organization could not be found
public Organization findByCompanyId_Last(long companyId,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
findByCompanyId_Last in interface OrganizationPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a matching organization could not be found
public Organization fetchByCompanyId_Last(long companyId,
OrderByComparator<Organization> orderByComparator)
fetchByCompanyId_Last in interface OrganizationPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching organization could not be found
public Organization[] findByCompanyId_PrevAndNext(long organizationId,
long companyId,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
findByCompanyId_PrevAndNext in interface OrganizationPersistenceorganizationId - the primary key of the current organizationcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a organization with the primary key could not be found
protected Organization getByCompanyId_PrevAndNext(Session session,
Organization organization,
long companyId,
OrderByComparator<Organization> orderByComparator,
boolean previous)
public List<Organization> filterFindByCompanyId(long companyId)
filterFindByCompanyId in interface OrganizationPersistencecompanyId - the company ID
public List<Organization> filterFindByCompanyId(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 OrganizationModelImpl. 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.
filterFindByCompanyId in interface OrganizationPersistencecompanyId - the company IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)
public List<Organization> filterFindByCompanyId(long companyId,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
filterFindByCompanyId in interface OrganizationPersistencecompanyId - the company IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public Organization[] filterFindByCompanyId_PrevAndNext(long organizationId,
long companyId,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
filterFindByCompanyId_PrevAndNext in interface OrganizationPersistenceorganizationId - the primary key of the current organizationcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a organization with the primary key could not be found
protected Organization filterGetByCompanyId_PrevAndNext(Session session,
Organization organization,
long companyId,
OrderByComparator<Organization> orderByComparator,
boolean previous)
public void removeByCompanyId(long companyId)
removeByCompanyId in interface OrganizationPersistencecompanyId - the company IDpublic int countByCompanyId(long companyId)
countByCompanyId in interface OrganizationPersistencecompanyId - the company ID
public int filterCountByCompanyId(long companyId)
filterCountByCompanyId in interface OrganizationPersistencecompanyId - the company ID
public List<Organization> findByLocations(long companyId)
findByLocations in interface OrganizationPersistencecompanyId - the company ID
public List<Organization> findByLocations(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 OrganizationModelImpl. 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.
findByLocations in interface OrganizationPersistencecompanyId - the company IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)
public List<Organization> findByLocations(long companyId,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
findByLocations in interface OrganizationPersistencecompanyId - the company IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<Organization> findByLocations(long companyId,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
findByLocations in interface OrganizationPersistencecompanyId - the company IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public Organization findByLocations_First(long companyId,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
findByLocations_First in interface OrganizationPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a matching organization could not be found
public Organization fetchByLocations_First(long companyId,
OrderByComparator<Organization> orderByComparator)
fetchByLocations_First in interface OrganizationPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching organization could not be found
public Organization findByLocations_Last(long companyId,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
findByLocations_Last in interface OrganizationPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a matching organization could not be found
public Organization fetchByLocations_Last(long companyId,
OrderByComparator<Organization> orderByComparator)
fetchByLocations_Last in interface OrganizationPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching organization could not be found
public Organization[] findByLocations_PrevAndNext(long organizationId,
long companyId,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
findByLocations_PrevAndNext in interface OrganizationPersistenceorganizationId - the primary key of the current organizationcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a organization with the primary key could not be found
protected Organization getByLocations_PrevAndNext(Session session,
Organization organization,
long companyId,
OrderByComparator<Organization> orderByComparator,
boolean previous)
public List<Organization> filterFindByLocations(long companyId)
filterFindByLocations in interface OrganizationPersistencecompanyId - the company ID
public List<Organization> filterFindByLocations(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 OrganizationModelImpl. 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.
filterFindByLocations in interface OrganizationPersistencecompanyId - the company IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)
public List<Organization> filterFindByLocations(long companyId,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
filterFindByLocations in interface OrganizationPersistencecompanyId - the company IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public Organization[] filterFindByLocations_PrevAndNext(long organizationId,
long companyId,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
filterFindByLocations_PrevAndNext in interface OrganizationPersistenceorganizationId - the primary key of the current organizationcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a organization with the primary key could not be found
protected Organization filterGetByLocations_PrevAndNext(Session session,
Organization organization,
long companyId,
OrderByComparator<Organization> orderByComparator,
boolean previous)
public void removeByLocations(long companyId)
removeByLocations in interface OrganizationPersistencecompanyId - the company IDpublic int countByLocations(long companyId)
countByLocations in interface OrganizationPersistencecompanyId - the company ID
public int filterCountByLocations(long companyId)
filterCountByLocations in interface OrganizationPersistencecompanyId - the company ID
public List<Organization> findByC_P(long companyId,
long parentOrganizationId)
findByC_P in interface OrganizationPersistencecompanyId - the company IDparentOrganizationId - the parent organization ID
public List<Organization> findByC_P(long companyId,
long parentOrganizationId,
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 OrganizationModelImpl. 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.
findByC_P in interface OrganizationPersistencecompanyId - the company IDparentOrganizationId - the parent organization IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)
public List<Organization> findByC_P(long companyId,
long parentOrganizationId,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
findByC_P in interface OrganizationPersistencecompanyId - the company IDparentOrganizationId - the parent organization IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<Organization> findByC_P(long companyId,
long parentOrganizationId,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
findByC_P in interface OrganizationPersistencecompanyId - the company IDparentOrganizationId - the parent organization IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public Organization findByC_P_First(long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
findByC_P_First in interface OrganizationPersistencecompanyId - the company IDparentOrganizationId - the parent organization IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a matching organization could not be found
public Organization fetchByC_P_First(long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator)
fetchByC_P_First in interface OrganizationPersistencecompanyId - the company IDparentOrganizationId - the parent organization IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching organization could not be found
public Organization findByC_P_Last(long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
findByC_P_Last in interface OrganizationPersistencecompanyId - the company IDparentOrganizationId - the parent organization IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a matching organization could not be found
public Organization fetchByC_P_Last(long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator)
fetchByC_P_Last in interface OrganizationPersistencecompanyId - the company IDparentOrganizationId - the parent organization IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching organization could not be found
public Organization[] findByC_P_PrevAndNext(long organizationId,
long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
findByC_P_PrevAndNext in interface OrganizationPersistenceorganizationId - the primary key of the current organizationcompanyId - the company IDparentOrganizationId - the parent organization IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a organization with the primary key could not be found
protected Organization getByC_P_PrevAndNext(Session session,
Organization organization,
long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator,
boolean previous)
public List<Organization> filterFindByC_P(long companyId,
long parentOrganizationId)
filterFindByC_P in interface OrganizationPersistencecompanyId - the company IDparentOrganizationId - the parent organization ID
public List<Organization> filterFindByC_P(long companyId,
long parentOrganizationId,
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 OrganizationModelImpl. 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.
filterFindByC_P in interface OrganizationPersistencecompanyId - the company IDparentOrganizationId - the parent organization IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)
public List<Organization> filterFindByC_P(long companyId,
long parentOrganizationId,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
filterFindByC_P in interface OrganizationPersistencecompanyId - the company IDparentOrganizationId - the parent organization IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public Organization[] filterFindByC_P_PrevAndNext(long organizationId,
long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
filterFindByC_P_PrevAndNext in interface OrganizationPersistenceorganizationId - the primary key of the current organizationcompanyId - the company IDparentOrganizationId - the parent organization IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a organization with the primary key could not be found
protected Organization filterGetByC_P_PrevAndNext(Session session,
Organization organization,
long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator,
boolean previous)
public void removeByC_P(long companyId,
long parentOrganizationId)
removeByC_P in interface OrganizationPersistencecompanyId - the company IDparentOrganizationId - the parent organization ID
public int countByC_P(long companyId,
long parentOrganizationId)
countByC_P in interface OrganizationPersistencecompanyId - the company IDparentOrganizationId - the parent organization ID
public int filterCountByC_P(long companyId,
long parentOrganizationId)
filterCountByC_P in interface OrganizationPersistencecompanyId - the company IDparentOrganizationId - the parent organization ID
public List<Organization> findByC_T(long companyId,
String treePath)
findByC_T in interface OrganizationPersistencecompanyId - the company IDtreePath - the tree path
public List<Organization> findByC_T(long companyId,
String treePath,
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 OrganizationModelImpl. 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.
findByC_T in interface OrganizationPersistencecompanyId - the company IDtreePath - the tree pathstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)
public List<Organization> findByC_T(long companyId,
String treePath,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
findByC_T in interface OrganizationPersistencecompanyId - the company IDtreePath - the tree pathstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<Organization> findByC_T(long companyId,
String treePath,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
findByC_T in interface OrganizationPersistencecompanyId - the company IDtreePath - the tree pathstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public Organization findByC_T_First(long companyId,
String treePath,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
findByC_T_First in interface OrganizationPersistencecompanyId - the company IDtreePath - the tree pathorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a matching organization could not be found
public Organization fetchByC_T_First(long companyId,
String treePath,
OrderByComparator<Organization> orderByComparator)
fetchByC_T_First in interface OrganizationPersistencecompanyId - the company IDtreePath - the tree pathorderByComparator - the comparator to order the set by (optionally null)
null if a matching organization could not be found
public Organization findByC_T_Last(long companyId,
String treePath,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
findByC_T_Last in interface OrganizationPersistencecompanyId - the company IDtreePath - the tree pathorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a matching organization could not be found
public Organization fetchByC_T_Last(long companyId,
String treePath,
OrderByComparator<Organization> orderByComparator)
fetchByC_T_Last in interface OrganizationPersistencecompanyId - the company IDtreePath - the tree pathorderByComparator - the comparator to order the set by (optionally null)
null if a matching organization could not be found
public Organization[] findByC_T_PrevAndNext(long organizationId,
long companyId,
String treePath,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
findByC_T_PrevAndNext in interface OrganizationPersistenceorganizationId - the primary key of the current organizationcompanyId - the company IDtreePath - the tree pathorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a organization with the primary key could not be found
protected Organization getByC_T_PrevAndNext(Session session,
Organization organization,
long companyId,
String treePath,
OrderByComparator<Organization> orderByComparator,
boolean previous)
public List<Organization> filterFindByC_T(long companyId,
String treePath)
filterFindByC_T in interface OrganizationPersistencecompanyId - the company IDtreePath - the tree path
public List<Organization> filterFindByC_T(long companyId,
String treePath,
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 OrganizationModelImpl. 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.
filterFindByC_T in interface OrganizationPersistencecompanyId - the company IDtreePath - the tree pathstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)
public List<Organization> filterFindByC_T(long companyId,
String treePath,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
filterFindByC_T in interface OrganizationPersistencecompanyId - the company IDtreePath - the tree pathstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public Organization[] filterFindByC_T_PrevAndNext(long organizationId,
long companyId,
String treePath,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
filterFindByC_T_PrevAndNext in interface OrganizationPersistenceorganizationId - the primary key of the current organizationcompanyId - the company IDtreePath - the tree pathorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a organization with the primary key could not be found
protected Organization filterGetByC_T_PrevAndNext(Session session,
Organization organization,
long companyId,
String treePath,
OrderByComparator<Organization> orderByComparator,
boolean previous)
public void removeByC_T(long companyId,
String treePath)
removeByC_T in interface OrganizationPersistencecompanyId - the company IDtreePath - the tree path
public int countByC_T(long companyId,
String treePath)
countByC_T in interface OrganizationPersistencecompanyId - the company IDtreePath - the tree path
public int filterCountByC_T(long companyId,
String treePath)
filterCountByC_T in interface OrganizationPersistencecompanyId - the company IDtreePath - the tree path
public Organization findByC_N(long companyId,
String name)
throws NoSuchOrganizationException
NoSuchOrganizationException if it could not be found.
findByC_N in interface OrganizationPersistencecompanyId - the company IDname - the name
NoSuchOrganizationException - if a matching organization could not be found
public Organization fetchByC_N(long companyId,
String name)
null if it could not be found. Uses the finder cache.
fetchByC_N in interface OrganizationPersistencecompanyId - the company IDname - the name
null if a matching organization could not be found
public Organization fetchByC_N(long companyId,
String name,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByC_N in interface OrganizationPersistencecompanyId - the company IDname - the nameretrieveFromCache - whether to retrieve from the finder cache
null if a matching organization could not be found
public Organization removeByC_N(long companyId,
String name)
throws NoSuchOrganizationException
removeByC_N in interface OrganizationPersistencecompanyId - the company IDname - the name
NoSuchOrganizationException
public int countByC_N(long companyId,
String name)
countByC_N in interface OrganizationPersistencecompanyId - the company IDname - the name
public List<Organization> findByO_C_P(long organizationId,
long companyId,
long parentOrganizationId)
findByO_C_P in interface OrganizationPersistenceorganizationId - the organization IDcompanyId - the company IDparentOrganizationId - the parent organization ID
public List<Organization> findByO_C_P(long organizationId,
long companyId,
long parentOrganizationId,
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 OrganizationModelImpl. 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.
findByO_C_P in interface OrganizationPersistenceorganizationId - the organization IDcompanyId - the company IDparentOrganizationId - the parent organization IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)
public List<Organization> findByO_C_P(long organizationId,
long companyId,
long parentOrganizationId,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
findByO_C_P in interface OrganizationPersistenceorganizationId - the organization IDcompanyId - the company IDparentOrganizationId - the parent organization IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<Organization> findByO_C_P(long organizationId,
long companyId,
long parentOrganizationId,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
findByO_C_P in interface OrganizationPersistenceorganizationId - the organization IDcompanyId - the company IDparentOrganizationId - the parent organization IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public Organization findByO_C_P_First(long organizationId,
long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
findByO_C_P_First in interface OrganizationPersistenceorganizationId - the organization IDcompanyId - the company IDparentOrganizationId - the parent organization IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a matching organization could not be found
public Organization fetchByO_C_P_First(long organizationId,
long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator)
fetchByO_C_P_First in interface OrganizationPersistenceorganizationId - the organization IDcompanyId - the company IDparentOrganizationId - the parent organization IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching organization could not be found
public Organization findByO_C_P_Last(long organizationId,
long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator)
throws NoSuchOrganizationException
findByO_C_P_Last in interface OrganizationPersistenceorganizationId - the organization IDcompanyId - the company IDparentOrganizationId - the parent organization IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrganizationException - if a matching organization could not be found
public Organization fetchByO_C_P_Last(long organizationId,
long companyId,
long parentOrganizationId,
OrderByComparator<Organization> orderByComparator)
fetchByO_C_P_Last in interface OrganizationPersistenceorganizationId - the organization IDcompanyId - the company IDparentOrganizationId - the parent organization IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching organization could not be found
public List<Organization> filterFindByO_C_P(long organizationId,
long companyId,
long parentOrganizationId)
filterFindByO_C_P in interface OrganizationPersistenceorganizationId - the organization IDcompanyId - the company IDparentOrganizationId - the parent organization ID
public List<Organization> filterFindByO_C_P(long organizationId,
long companyId,
long parentOrganizationId,
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 OrganizationModelImpl. 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.
filterFindByO_C_P in interface OrganizationPersistenceorganizationId - the organization IDcompanyId - the company IDparentOrganizationId - the parent organization IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)
public List<Organization> filterFindByO_C_P(long organizationId,
long companyId,
long parentOrganizationId,
int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. 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.
filterFindByO_C_P in interface OrganizationPersistenceorganizationId - the organization IDcompanyId - the company IDparentOrganizationId - the parent organization IDstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public void removeByO_C_P(long organizationId,
long companyId,
long parentOrganizationId)
removeByO_C_P in interface OrganizationPersistenceorganizationId - the organization IDcompanyId - the company IDparentOrganizationId - the parent organization ID
public int countByO_C_P(long organizationId,
long companyId,
long parentOrganizationId)
countByO_C_P in interface OrganizationPersistenceorganizationId - the organization IDcompanyId - the company IDparentOrganizationId - the parent organization ID
public int filterCountByO_C_P(long organizationId,
long companyId,
long parentOrganizationId)
filterCountByO_C_P in interface OrganizationPersistenceorganizationId - the organization IDcompanyId - the company IDparentOrganizationId - the parent organization ID
public void cacheResult(Organization organization)
cacheResult in interface OrganizationPersistenceorganization - the organizationpublic void cacheResult(List<Organization> organizations)
cacheResult in interface OrganizationPersistenceorganizations - the organizationspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<Organization>clearCache in class BasePersistenceImpl<Organization>public void clearCache(Organization organization)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<Organization>clearCache in class BasePersistenceImpl<Organization>organization - the instance of this model to clear the cache forpublic void clearCache(List<Organization> organizations)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<Organization>clearCache in class BasePersistenceImpl<Organization>organizations - the List instances of this model to clear the cache for
protected void cacheUniqueFindersCache(OrganizationModelImpl organizationModelImpl,
boolean isNew)
protected void clearUniqueFindersCache(OrganizationModelImpl organizationModelImpl)
public Organization create(long organizationId)
create in interface OrganizationPersistenceorganizationId - the primary key for the new organization
public Organization remove(long organizationId)
throws NoSuchOrganizationException
remove in interface OrganizationPersistenceorganizationId - the primary key of the organization
NoSuchOrganizationException - if a organization with the primary key could not be found
public Organization remove(Serializable primaryKey)
throws NoSuchOrganizationException
remove in interface BasePersistence<Organization>remove in class BasePersistenceImpl<Organization>primaryKey - the primary key of the organization
NoSuchOrganizationException - if a organization with the primary key could not be foundprotected Organization removeImpl(Organization organization)
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<Organization>organization - the model instance to remove
public Organization updateImpl(Organization organization)
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface OrganizationPersistenceupdateImpl in class BasePersistenceImpl<Organization>organization - the model instance to update
protected Organization toUnwrappedModel(Organization organization)
public Organization findByPrimaryKey(Serializable primaryKey)
throws NoSuchOrganizationException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<Organization>findByPrimaryKey in class BasePersistenceImpl<Organization>primaryKey - the primary key of the organization
NoSuchOrganizationException - if a organization with the primary key could not be found
public Organization findByPrimaryKey(long organizationId)
throws NoSuchOrganizationException
NoSuchOrganizationException if it could not be found.
findByPrimaryKey in interface OrganizationPersistenceorganizationId - the primary key of the organization
NoSuchOrganizationException - if a organization with the primary key could not be foundpublic Organization fetchByPrimaryKey(Serializable primaryKey)
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<Organization>fetchByPrimaryKey in class BasePersistenceImpl<Organization>primaryKey - the primary key of the organization
null if a organization with the primary key could not be foundpublic Organization fetchByPrimaryKey(long organizationId)
null if it could not be found.
fetchByPrimaryKey in interface OrganizationPersistenceorganizationId - the primary key of the organization
null if a organization with the primary key could not be foundpublic Map<Serializable,Organization> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<Organization>fetchByPrimaryKeys in interface OrganizationPersistencefetchByPrimaryKeys in class BasePersistenceImpl<Organization>public List<Organization> findAll()
findAll in interface OrganizationPersistence
public List<Organization> 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 OrganizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface OrganizationPersistencestart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)
public List<Organization> findAll(int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface OrganizationPersistencestart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<Organization> findAll(int start,
int end,
OrderByComparator<Organization> 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 OrganizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface OrganizationPersistencestart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public void removeAll()
removeAll in interface OrganizationPersistencepublic int countAll()
countAll in interface OrganizationPersistencepublic long[] getGroupPrimaryKeys(long pk)
getGroupPrimaryKeys in interface OrganizationPersistencepk - the primary key of the organization
public List<Group> getGroups(long pk)
getGroups in interface OrganizationPersistencepk - the primary key of the organization
public List<Group> getGroups(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 OrganizationModelImpl. 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.
getGroups in interface OrganizationPersistencepk - the primary key of the organizationstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)
public List<Group> getGroups(long pk,
int start,
int end,
OrderByComparator<Group> 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 OrganizationModelImpl. 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.
getGroups in interface OrganizationPersistencepk - the primary key of the organizationstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public int getGroupsSize(long pk)
getGroupsSize in interface OrganizationPersistencepk - the primary key of the organization
public boolean containsGroup(long pk,
long groupPK)
true if the group is associated with the organization.
containsGroup in interface OrganizationPersistencepk - the primary key of the organizationgroupPK - the primary key of the group
true if the group is associated with the organization; false otherwisepublic boolean containsGroups(long pk)
true if the organization has any groups associated with it.
containsGroups in interface OrganizationPersistencepk - the primary key of the organization to check for associations with groups
true if the organization has any groups associated with it; false otherwise
public void addGroup(long pk,
long groupPK)
addGroup in interface OrganizationPersistencepk - the primary key of the organizationgroupPK - the primary key of the group
public void addGroup(long pk,
Group group)
addGroup in interface OrganizationPersistencepk - the primary key of the organizationgroup - the group
public void addGroups(long pk,
long[] groupPKs)
addGroups in interface OrganizationPersistencepk - the primary key of the organizationgroupPKs - the primary keys of the groups
public void addGroups(long pk,
List<Group> groups)
addGroups in interface OrganizationPersistencepk - the primary key of the organizationgroups - the groupspublic void clearGroups(long pk)
clearGroups in interface OrganizationPersistencepk - the primary key of the organization to clear the associated groups from
public void removeGroup(long pk,
long groupPK)
removeGroup in interface OrganizationPersistencepk - the primary key of the organizationgroupPK - the primary key of the group
public void removeGroup(long pk,
Group group)
removeGroup in interface OrganizationPersistencepk - the primary key of the organizationgroup - the group
public void removeGroups(long pk,
long[] groupPKs)
removeGroups in interface OrganizationPersistencepk - the primary key of the organizationgroupPKs - the primary keys of the groups
public void removeGroups(long pk,
List<Group> groups)
removeGroups in interface OrganizationPersistencepk - the primary key of the organizationgroups - the groups
public void setGroups(long pk,
long[] groupPKs)
setGroups in interface OrganizationPersistencepk - the primary key of the organizationgroupPKs - the primary keys of the groups to be associated with the organization
public void setGroups(long pk,
List<Group> groups)
setGroups in interface OrganizationPersistencepk - the primary key of the organizationgroups - the groups to be associated with the organizationpublic long[] getUserPrimaryKeys(long pk)
getUserPrimaryKeys in interface OrganizationPersistencepk - the primary key of the organization
public List<User> getUsers(long pk)
getUsers in interface OrganizationPersistencepk - the primary key of the organization
public List<User> getUsers(long pk,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from OrganizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getUsers in interface OrganizationPersistencepk - the primary key of the organizationstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)
public List<User> getUsers(long pk,
int start,
int end,
OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from OrganizationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getUsers in interface OrganizationPersistencepk - the primary key of the organizationstart - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public int getUsersSize(long pk)
getUsersSize in interface OrganizationPersistencepk - the primary key of the organization
public boolean containsUser(long pk,
long userPK)
true if the user is associated with the organization.
containsUser in interface OrganizationPersistencepk - the primary key of the organizationuserPK - the primary key of the user
true if the user is associated with the organization; false otherwisepublic boolean containsUsers(long pk)
true if the organization has any users associated with it.
containsUsers in interface OrganizationPersistencepk - the primary key of the organization to check for associations with users
true if the organization has any users associated with it; false otherwise
public void addUser(long pk,
long userPK)
addUser in interface OrganizationPersistencepk - the primary key of the organizationuserPK - the primary key of the user
public void addUser(long pk,
User user)
addUser in interface OrganizationPersistencepk - the primary key of the organizationuser - the user
public void addUsers(long pk,
long[] userPKs)
addUsers in interface OrganizationPersistencepk - the primary key of the organizationuserPKs - the primary keys of the users
public void addUsers(long pk,
List<User> users)
addUsers in interface OrganizationPersistencepk - the primary key of the organizationusers - the userspublic void clearUsers(long pk)
clearUsers in interface OrganizationPersistencepk - the primary key of the organization to clear the associated users from
public void removeUser(long pk,
long userPK)
removeUser in interface OrganizationPersistencepk - the primary key of the organizationuserPK - the primary key of the user
public void removeUser(long pk,
User user)
removeUser in interface OrganizationPersistencepk - the primary key of the organizationuser - the user
public void removeUsers(long pk,
long[] userPKs)
removeUsers in interface OrganizationPersistencepk - the primary key of the organizationuserPKs - the primary keys of the users
public void removeUsers(long pk,
List<User> users)
removeUsers in interface OrganizationPersistencepk - the primary key of the organizationusers - the users
public void setUsers(long pk,
long[] userPKs)
setUsers in interface OrganizationPersistencepk - the primary key of the organizationuserPKs - the primary keys of the users to be associated with the organization
public void setUsers(long pk,
List<User> users)
setUsers in interface OrganizationPersistencepk - the primary key of the organizationusers - the users to be associated with the organizationpublic Set<String> getBadColumnNames()
getBadColumnNames in interface BasePersistence<Organization>getBadColumnNames in interface OrganizationPersistencegetBadColumnNames in class BasePersistenceImpl<Organization>protected Map<String,Integer> getTableColumnsMap()
getTableColumnsMap in class BasePersistenceImpl<Organization>public void afterPropertiesSet()
public void destroy()
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||