@ProviderType public interface CommerceAccountPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceAccount>
Caching information and settings can be found in portal.properties
com.liferay.commerce.account.service.persistence.impl.CommerceAccountPersistenceImpl,
CommerceAccountUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(CommerceAccount commerceAccount)
Caches the commerce account in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceAccount> commerceAccounts)
Caches the commerce accounts in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce accounts.
|
int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of commerce accounts where companyId = ? and externalReferenceCode = ?.
|
int |
countByC_N(long companyId,
java.lang.String name)
Returns the number of commerce accounts where companyId = ? and name = ?.
|
CommerceAccount |
create(long commerceAccountId)
Creates a new commerce account with the primary key.
|
CommerceAccount |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce account where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
CommerceAccount |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean retrieveFromCache)
Returns the commerce account where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
CommerceAccount |
fetchByC_N(long companyId,
java.lang.String name)
Returns the commerce account where companyId = ? and name = ? or returns
null if it could not be found. |
CommerceAccount |
fetchByC_N(long companyId,
java.lang.String name,
boolean retrieveFromCache)
Returns the commerce account where companyId = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
CommerceAccount |
fetchByPrimaryKey(long commerceAccountId)
Returns the commerce account with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,CommerceAccount> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
java.util.List<CommerceAccount> |
findAll()
Returns all the commerce accounts.
|
java.util.List<CommerceAccount> |
findAll(int start,
int end)
Returns a range of all the commerce accounts.
|
java.util.List<CommerceAccount> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccount> orderByComparator)
Returns an ordered range of all the commerce accounts.
|
java.util.List<CommerceAccount> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccount> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce accounts.
|
CommerceAccount |
findByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce account where companyId = ? and externalReferenceCode = ? or throws a
NoSuchAccountException if it could not be found. |
CommerceAccount |
findByC_N(long companyId,
java.lang.String name)
Returns the commerce account where companyId = ? and name = ? or throws a
NoSuchAccountException if it could not be found. |
CommerceAccount |
findByPrimaryKey(long commerceAccountId)
Returns the commerce account with the primary key or throws a
NoSuchAccountException if it could not be found. |
java.util.Set<java.lang.String> |
getBadColumnNames() |
CommerceAccount |
remove(long commerceAccountId)
Removes the commerce account with the primary key from the database.
|
void |
removeAll()
Removes all the commerce accounts from the database.
|
CommerceAccount |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the commerce account where companyId = ? and externalReferenceCode = ? from the database.
|
CommerceAccount |
removeByC_N(long companyId,
java.lang.String name)
Removes the commerce account where companyId = ? and name = ? from the database.
|
CommerceAccount |
updateImpl(CommerceAccount commerceAccount) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, updateCommerceAccount findByC_N(long companyId, java.lang.String name) throws NoSuchAccountException
NoSuchAccountException if it could not be found.companyId - the company IDname - the nameNoSuchAccountException - if a matching commerce account could not be foundCommerceAccount fetchByC_N(long companyId, java.lang.String name)
null if it could not be found. Uses the finder cache.companyId - the company IDname - the namenull if a matching commerce account could not be foundCommerceAccount fetchByC_N(long companyId, java.lang.String name, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.companyId - the company IDname - the nameretrieveFromCache - whether to retrieve from the finder cachenull if a matching commerce account could not be foundCommerceAccount removeByC_N(long companyId, java.lang.String name) throws NoSuchAccountException
companyId - the company IDname - the nameNoSuchAccountExceptionint countByC_N(long companyId,
java.lang.String name)
companyId - the company IDname - the nameCommerceAccount findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchAccountException
NoSuchAccountException if it could not be found.companyId - the company IDexternalReferenceCode - the external reference codeNoSuchAccountException - if a matching commerce account could not be foundCommerceAccount 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 commerce account could not be foundCommerceAccount fetchByC_ERC(long companyId, java.lang.String externalReferenceCode, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.companyId - the company IDexternalReferenceCode - the external reference coderetrieveFromCache - whether to retrieve from the finder cachenull if a matching commerce account could not be foundCommerceAccount removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchAccountException
companyId - the company IDexternalReferenceCode - the external reference codeNoSuchAccountExceptionint countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
companyId - the company IDexternalReferenceCode - the external reference codevoid cacheResult(CommerceAccount commerceAccount)
commerceAccount - the commerce accountvoid cacheResult(java.util.List<CommerceAccount> commerceAccounts)
commerceAccounts - the commerce accountsCommerceAccount create(long commerceAccountId)
commerceAccountId - the primary key for the new commerce accountCommerceAccount remove(long commerceAccountId) throws NoSuchAccountException
commerceAccountId - the primary key of the commerce accountNoSuchAccountException - if a commerce account with the primary key could not be foundCommerceAccount updateImpl(CommerceAccount commerceAccount)
CommerceAccount findByPrimaryKey(long commerceAccountId) throws NoSuchAccountException
NoSuchAccountException if it could not be found.commerceAccountId - the primary key of the commerce accountNoSuchAccountException - if a commerce account with the primary key could not be foundCommerceAccount fetchByPrimaryKey(long commerceAccountId)
null if it could not be found.commerceAccountId - the primary key of the commerce accountnull if a commerce account with the primary key could not be foundjava.util.Map<java.io.Serializable,CommerceAccount> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceAccount>java.util.List<CommerceAccount> findAll()
java.util.List<CommerceAccount> 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 CommerceAccountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce accountsend - the upper bound of the range of commerce accounts (not inclusive)java.util.List<CommerceAccount> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccount> 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 CommerceAccountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce accountsend - the upper bound of the range of commerce accounts (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<CommerceAccount> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccount> 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 CommerceAccountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce accountsend - the upper bound of the range of commerce accounts (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachevoid removeAll()
int countAll()
java.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames in interface com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceAccount>