public class AccountEntryUtil
extends java.lang.Object
com.liferay.account.service.persistence.impl.AccountEntryPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
AccountEntryPersistence
Constructor and Description |
---|
AccountEntryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(AccountEntry accountEntry)
Caches the account entry in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<AccountEntry> accountEntries)
Caches the account entries in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(AccountEntry accountEntry) |
static int |
countAll()
Returns the number of account entries.
|
static int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of account entries where companyId = ? and externalReferenceCode = ?.
|
static int |
countByC_S(long companyId,
int status)
Returns the number of account entries where companyId = ? and status = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of account entries where companyId = ?.
|
static int |
countByU_T(long userId,
java.lang.String type)
Returns the number of account entries where userId = ? and type = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static AccountEntry |
create(long accountEntryId)
Creates a new account entry with the primary key.
|
static AccountEntry |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the account entry where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
static AccountEntry |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the account entry where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
static AccountEntry |
fetchByC_S_First(long companyId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns the first account entry in the ordered set where companyId = ? and status = ?.
|
static AccountEntry |
fetchByC_S_Last(long companyId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns the last account entry in the ordered set where companyId = ? and status = ?.
|
static AccountEntry |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns the first account entry in the ordered set where companyId = ?.
|
static AccountEntry |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns the last account entry in the ordered set where companyId = ?.
|
static AccountEntry |
fetchByPrimaryKey(long accountEntryId)
Returns the account entry with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,AccountEntry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static AccountEntry |
fetchByU_T_First(long userId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns the first account entry in the ordered set where userId = ? and type = ?.
|
static AccountEntry |
fetchByU_T_Last(long userId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns the last account entry in the ordered set where userId = ? and type = ?.
|
static int |
filterCountByC_S(long companyId,
int status)
Returns the number of account entries that the user has permission to view where companyId = ? and status = ?.
|
static int |
filterCountByCompanyId(long companyId)
Returns the number of account entries that the user has permission to view where companyId = ?.
|
static int |
filterCountByU_T(long userId,
java.lang.String type)
Returns the number of account entries that the user has permission to view where userId = ? and type = ?.
|
static AccountEntry[] |
filterFindByC_S_PrevAndNext(long accountEntryId,
long companyId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns the account entries before and after the current account entry in the ordered set of account entries that the user has permission to view where companyId = ? and status = ?.
|
static java.util.List<AccountEntry> |
filterFindByC_S(long companyId,
int status)
Returns all the account entries that the user has permission to view where companyId = ? and status = ?.
|
static java.util.List<AccountEntry> |
filterFindByC_S(long companyId,
int status,
int start,
int end)
Returns a range of all the account entries that the user has permission to view where companyId = ? and status = ?.
|
static java.util.List<AccountEntry> |
filterFindByC_S(long companyId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns an ordered range of all the account entries that the user has permissions to view where companyId = ? and status = ?.
|
static AccountEntry[] |
filterFindByCompanyId_PrevAndNext(long accountEntryId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns the account entries before and after the current account entry in the ordered set of account entries that the user has permission to view where companyId = ?.
|
static java.util.List<AccountEntry> |
filterFindByCompanyId(long companyId)
Returns all the account entries that the user has permission to view where companyId = ?.
|
static java.util.List<AccountEntry> |
filterFindByCompanyId(long companyId,
int start,
int end)
Returns a range of all the account entries that the user has permission to view where companyId = ?.
|
static java.util.List<AccountEntry> |
filterFindByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns an ordered range of all the account entries that the user has permissions to view where companyId = ?.
|
static AccountEntry[] |
filterFindByU_T_PrevAndNext(long accountEntryId,
long userId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns the account entries before and after the current account entry in the ordered set of account entries that the user has permission to view where userId = ? and type = ?.
|
static java.util.List<AccountEntry> |
filterFindByU_T(long userId,
java.lang.String type)
Returns all the account entries that the user has permission to view where userId = ? and type = ?.
|
static java.util.List<AccountEntry> |
filterFindByU_T(long userId,
java.lang.String type,
int start,
int end)
Returns a range of all the account entries that the user has permission to view where userId = ? and type = ?.
|
static java.util.List<AccountEntry> |
filterFindByU_T(long userId,
java.lang.String type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns an ordered range of all the account entries that the user has permissions to view where userId = ? and type = ?.
|
static java.util.List<AccountEntry> |
findAll()
Returns all the account entries.
|
static java.util.List<AccountEntry> |
findAll(int start,
int end)
Returns a range of all the account entries.
|
static java.util.List<AccountEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns an ordered range of all the account entries.
|
static java.util.List<AccountEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the account entries.
|
static AccountEntry |
findByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the account entry where companyId = ? and externalReferenceCode = ? or throws a
NoSuchEntryException if it could not be found. |
static AccountEntry |
findByC_S_First(long companyId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns the first account entry in the ordered set where companyId = ? and status = ?.
|
static AccountEntry |
findByC_S_Last(long companyId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns the last account entry in the ordered set where companyId = ? and status = ?.
|
static AccountEntry[] |
findByC_S_PrevAndNext(long accountEntryId,
long companyId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns the account entries before and after the current account entry in the ordered set where companyId = ? and status = ?.
|
static java.util.List<AccountEntry> |
findByC_S(long companyId,
int status)
Returns all the account entries where companyId = ? and status = ?.
|
static java.util.List<AccountEntry> |
findByC_S(long companyId,
int status,
int start,
int end)
Returns a range of all the account entries where companyId = ? and status = ?.
|
static java.util.List<AccountEntry> |
findByC_S(long companyId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns an ordered range of all the account entries where companyId = ? and status = ?.
|
static java.util.List<AccountEntry> |
findByC_S(long companyId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the account entries where companyId = ? and status = ?.
|
static AccountEntry |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns the first account entry in the ordered set where companyId = ?.
|
static AccountEntry |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns the last account entry in the ordered set where companyId = ?.
|
static AccountEntry[] |
findByCompanyId_PrevAndNext(long accountEntryId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns the account entries before and after the current account entry in the ordered set where companyId = ?.
|
static java.util.List<AccountEntry> |
findByCompanyId(long companyId)
Returns all the account entries where companyId = ?.
|
static java.util.List<AccountEntry> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the account entries where companyId = ?.
|
static java.util.List<AccountEntry> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns an ordered range of all the account entries where companyId = ?.
|
static java.util.List<AccountEntry> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the account entries where companyId = ?.
|
static AccountEntry |
findByPrimaryKey(long accountEntryId)
Returns the account entry with the primary key or throws a
NoSuchEntryException if it could not be found. |
static AccountEntry |
findByU_T_First(long userId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns the first account entry in the ordered set where userId = ? and type = ?.
|
static AccountEntry |
findByU_T_Last(long userId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns the last account entry in the ordered set where userId = ? and type = ?.
|
static AccountEntry[] |
findByU_T_PrevAndNext(long accountEntryId,
long userId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns the account entries before and after the current account entry in the ordered set where userId = ? and type = ?.
|
static java.util.List<AccountEntry> |
findByU_T(long userId,
java.lang.String type)
Returns all the account entries where userId = ? and type = ?.
|
static java.util.List<AccountEntry> |
findByU_T(long userId,
java.lang.String type,
int start,
int end)
Returns a range of all the account entries where userId = ? and type = ?.
|
static java.util.List<AccountEntry> |
findByU_T(long userId,
java.lang.String type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Returns an ordered range of all the account entries where userId = ? and type = ?.
|
static java.util.List<AccountEntry> |
findByU_T(long userId,
java.lang.String type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the account entries where userId = ? and type = ?.
|
static java.util.List<AccountEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<AccountEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<AccountEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator) |
static AccountEntryPersistence |
getPersistence() |
static AccountEntry |
remove(long accountEntryId)
Removes the account entry with the primary key from the database.
|
static void |
removeAll()
Removes all the account entries from the database.
|
static AccountEntry |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the account entry where companyId = ? and externalReferenceCode = ? from the database.
|
static void |
removeByC_S(long companyId,
int status)
Removes all the account entries where companyId = ? and status = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the account entries where companyId = ? from the database.
|
static void |
removeByU_T(long userId,
java.lang.String type)
Removes all the account entries where userId = ? and type = ? from the database.
|
static AccountEntry |
update(AccountEntry accountEntry) |
static AccountEntry |
update(AccountEntry accountEntry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static AccountEntry |
updateImpl(AccountEntry accountEntry) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(AccountEntry accountEntry)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,AccountEntry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<AccountEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<AccountEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<AccountEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static AccountEntry update(AccountEntry accountEntry)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static AccountEntry update(AccountEntry accountEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<AccountEntry> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<AccountEntry> 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, then the query will include the default ORDER BY logic from AccountEntryModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of account entriesend
- the upper bound of the range of account entries (not inclusive)public static java.util.List<AccountEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AccountEntryModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of account entriesend
- the upper bound of the range of account entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<AccountEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AccountEntryModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of account entriesend
- the upper bound of the range of account entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static AccountEntry findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator) throws NoSuchEntryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching account entry could not be foundpublic static AccountEntry fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account entry could not be foundpublic static AccountEntry findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator) throws NoSuchEntryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching account entry could not be foundpublic static AccountEntry fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account entry could not be foundpublic static AccountEntry[] findByCompanyId_PrevAndNext(long accountEntryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator) throws NoSuchEntryException
accountEntryId
- the primary key of the current account entrycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a account entry with the primary key could not be foundpublic static java.util.List<AccountEntry> filterFindByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<AccountEntry> 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, then the query will include the default ORDER BY logic from AccountEntryModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of account entriesend
- the upper bound of the range of account entries (not inclusive)public static java.util.List<AccountEntry> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AccountEntryModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of account entriesend
- the upper bound of the range of account entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static AccountEntry[] filterFindByCompanyId_PrevAndNext(long accountEntryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator) throws NoSuchEntryException
accountEntryId
- the primary key of the current account entrycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a account entry with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static int filterCountByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<AccountEntry> findByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statuspublic static java.util.List<AccountEntry> findByC_S(long companyId, int status, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AccountEntryModelImpl
.
companyId
- the company IDstatus
- the statusstart
- the lower bound of the range of account entriesend
- the upper bound of the range of account entries (not inclusive)public static java.util.List<AccountEntry> findByC_S(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AccountEntryModelImpl
.
companyId
- the company IDstatus
- the statusstart
- the lower bound of the range of account entriesend
- the upper bound of the range of account entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<AccountEntry> findByC_S(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AccountEntryModelImpl
.
companyId
- the company IDstatus
- the statusstart
- the lower bound of the range of account entriesend
- the upper bound of the range of account entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static AccountEntry findByC_S_First(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator) throws NoSuchEntryException
companyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching account entry could not be foundpublic static AccountEntry fetchByC_S_First(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
companyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account entry could not be foundpublic static AccountEntry findByC_S_Last(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator) throws NoSuchEntryException
companyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching account entry could not be foundpublic static AccountEntry fetchByC_S_Last(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
companyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account entry could not be foundpublic static AccountEntry[] findByC_S_PrevAndNext(long accountEntryId, long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator) throws NoSuchEntryException
accountEntryId
- the primary key of the current account entrycompanyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a account entry with the primary key could not be foundpublic static java.util.List<AccountEntry> filterFindByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statuspublic static java.util.List<AccountEntry> filterFindByC_S(long companyId, int status, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AccountEntryModelImpl
.
companyId
- the company IDstatus
- the statusstart
- the lower bound of the range of account entriesend
- the upper bound of the range of account entries (not inclusive)public static java.util.List<AccountEntry> filterFindByC_S(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AccountEntryModelImpl
.
companyId
- the company IDstatus
- the statusstart
- the lower bound of the range of account entriesend
- the upper bound of the range of account entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static AccountEntry[] filterFindByC_S_PrevAndNext(long accountEntryId, long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator) throws NoSuchEntryException
accountEntryId
- the primary key of the current account entrycompanyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a account entry with the primary key could not be foundpublic static void removeByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statuspublic static int countByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statuspublic static int filterCountByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statuspublic static java.util.List<AccountEntry> findByU_T(long userId, java.lang.String type)
userId
- the user IDtype
- the typepublic static java.util.List<AccountEntry> findByU_T(long userId, java.lang.String type, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AccountEntryModelImpl
.
userId
- the user IDtype
- the typestart
- the lower bound of the range of account entriesend
- the upper bound of the range of account entries (not inclusive)public static java.util.List<AccountEntry> findByU_T(long userId, java.lang.String type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AccountEntryModelImpl
.
userId
- the user IDtype
- the typestart
- the lower bound of the range of account entriesend
- the upper bound of the range of account entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<AccountEntry> findByU_T(long userId, java.lang.String type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AccountEntryModelImpl
.
userId
- the user IDtype
- the typestart
- the lower bound of the range of account entriesend
- the upper bound of the range of account entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static AccountEntry findByU_T_First(long userId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator) throws NoSuchEntryException
userId
- the user IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching account entry could not be foundpublic static AccountEntry fetchByU_T_First(long userId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
userId
- the user IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account entry could not be foundpublic static AccountEntry findByU_T_Last(long userId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator) throws NoSuchEntryException
userId
- the user IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching account entry could not be foundpublic static AccountEntry fetchByU_T_Last(long userId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
userId
- the user IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account entry could not be foundpublic static AccountEntry[] findByU_T_PrevAndNext(long accountEntryId, long userId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator) throws NoSuchEntryException
accountEntryId
- the primary key of the current account entryuserId
- the user IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a account entry with the primary key could not be foundpublic static java.util.List<AccountEntry> filterFindByU_T(long userId, java.lang.String type)
userId
- the user IDtype
- the typepublic static java.util.List<AccountEntry> filterFindByU_T(long userId, java.lang.String type, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AccountEntryModelImpl
.
userId
- the user IDtype
- the typestart
- the lower bound of the range of account entriesend
- the upper bound of the range of account entries (not inclusive)public static java.util.List<AccountEntry> filterFindByU_T(long userId, java.lang.String type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AccountEntryModelImpl
.
userId
- the user IDtype
- the typestart
- the lower bound of the range of account entriesend
- the upper bound of the range of account entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static AccountEntry[] filterFindByU_T_PrevAndNext(long accountEntryId, long userId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator) throws NoSuchEntryException
accountEntryId
- the primary key of the current account entryuserId
- the user IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a account entry with the primary key could not be foundpublic static void removeByU_T(long userId, java.lang.String type)
userId
- the user IDtype
- the typepublic static int countByU_T(long userId, java.lang.String type)
userId
- the user IDtype
- the typepublic static int filterCountByU_T(long userId, java.lang.String type)
userId
- the user IDtype
- the typepublic static AccountEntry findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchEntryException
- if a matching account entry could not be foundpublic static AccountEntry fetchByC_ERC(long companyId, java.lang.String externalReferenceCode)
null
if it could not be found. Uses the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codenull
if a matching account entry could not be foundpublic static AccountEntry fetchByC_ERC(long companyId, java.lang.String externalReferenceCode, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codeuseFinderCache
- whether to use the finder cachenull
if a matching account entry could not be foundpublic static AccountEntry removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchEntryException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchEntryException
public static int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codepublic static void cacheResult(AccountEntry accountEntry)
accountEntry
- the account entrypublic static void cacheResult(java.util.List<AccountEntry> accountEntries)
accountEntries
- the account entriespublic static AccountEntry create(long accountEntryId)
accountEntryId
- the primary key for the new account entrypublic static AccountEntry remove(long accountEntryId) throws NoSuchEntryException
accountEntryId
- the primary key of the account entryNoSuchEntryException
- if a account entry with the primary key could not be foundpublic static AccountEntry updateImpl(AccountEntry accountEntry)
public static AccountEntry findByPrimaryKey(long accountEntryId) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.accountEntryId
- the primary key of the account entryNoSuchEntryException
- if a account entry with the primary key could not be foundpublic static AccountEntry fetchByPrimaryKey(long accountEntryId)
null
if it could not be found.accountEntryId
- the primary key of the account entrynull
if a account entry with the primary key could not be foundpublic static java.util.List<AccountEntry> findAll()
public static java.util.List<AccountEntry> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AccountEntryModelImpl
.
start
- the lower bound of the range of account entriesend
- the upper bound of the range of account entries (not inclusive)public static java.util.List<AccountEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AccountEntryModelImpl
.
start
- the lower bound of the range of account entriesend
- the upper bound of the range of account entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<AccountEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AccountEntryModelImpl
.
start
- the lower bound of the range of account entriesend
- the upper bound of the range of account entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static AccountEntryPersistence getPersistence()