@ProviderType public interface CommerceTaxMethodPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceTaxMethod>
Caching information and settings can be found in portal.properties
CommerceTaxMethodUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CommerceTaxMethod commerceTaxMethod)
Caches the commerce tax method in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceTaxMethod> commerceTaxMethods)
Caches the commerce tax methods in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce tax methods.
|
int |
countByG_A(long groupId,
boolean active)
Returns the number of commerce tax methods where groupId = ? and active = ?.
|
int |
countByG_E(long groupId,
java.lang.String engineKey)
Returns the number of commerce tax methods where groupId = ? and engineKey = ?.
|
int |
countByGroupId(long groupId)
Returns the number of commerce tax methods where groupId = ?.
|
CommerceTaxMethod |
create(long commerceTaxMethodId)
Creates a new commerce tax method with the primary key.
|
CommerceTaxMethod |
fetchByG_A_First(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator)
Returns the first commerce tax method in the ordered set where groupId = ? and active = ?.
|
CommerceTaxMethod |
fetchByG_A_Last(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator)
Returns the last commerce tax method in the ordered set where groupId = ? and active = ?.
|
CommerceTaxMethod |
fetchByG_E(long groupId,
java.lang.String engineKey)
Returns the commerce tax method where groupId = ? and engineKey = ? or returns
null if it could not be found. |
CommerceTaxMethod |
fetchByG_E(long groupId,
java.lang.String engineKey,
boolean useFinderCache)
Returns the commerce tax method where groupId = ? and engineKey = ? or returns
null if it could not be found, optionally using the finder cache. |
CommerceTaxMethod |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator)
Returns the first commerce tax method in the ordered set where groupId = ?.
|
CommerceTaxMethod |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator)
Returns the last commerce tax method in the ordered set where groupId = ?.
|
CommerceTaxMethod |
fetchByPrimaryKey(long commerceTaxMethodId)
Returns the commerce tax method with the primary key or returns
null if it could not be found. |
java.util.List<CommerceTaxMethod> |
findAll()
Returns all the commerce tax methods.
|
java.util.List<CommerceTaxMethod> |
findAll(int start,
int end)
Returns a range of all the commerce tax methods.
|
java.util.List<CommerceTaxMethod> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator)
Returns an ordered range of all the commerce tax methods.
|
java.util.List<CommerceTaxMethod> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce tax methods.
|
CommerceTaxMethod |
findByG_A_First(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator)
Returns the first commerce tax method in the ordered set where groupId = ? and active = ?.
|
CommerceTaxMethod |
findByG_A_Last(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator)
Returns the last commerce tax method in the ordered set where groupId = ? and active = ?.
|
CommerceTaxMethod[] |
findByG_A_PrevAndNext(long commerceTaxMethodId,
long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator)
Returns the commerce tax methods before and after the current commerce tax method in the ordered set where groupId = ? and active = ?.
|
java.util.List<CommerceTaxMethod> |
findByG_A(long groupId,
boolean active)
Returns all the commerce tax methods where groupId = ? and active = ?.
|
java.util.List<CommerceTaxMethod> |
findByG_A(long groupId,
boolean active,
int start,
int end)
Returns a range of all the commerce tax methods where groupId = ? and active = ?.
|
java.util.List<CommerceTaxMethod> |
findByG_A(long groupId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator)
Returns an ordered range of all the commerce tax methods where groupId = ? and active = ?.
|
java.util.List<CommerceTaxMethod> |
findByG_A(long groupId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce tax methods where groupId = ? and active = ?.
|
CommerceTaxMethod |
findByG_E(long groupId,
java.lang.String engineKey)
Returns the commerce tax method where groupId = ? and engineKey = ? or throws a
NoSuchTaxMethodException if it could not be found. |
CommerceTaxMethod |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator)
Returns the first commerce tax method in the ordered set where groupId = ?.
|
CommerceTaxMethod |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator)
Returns the last commerce tax method in the ordered set where groupId = ?.
|
CommerceTaxMethod[] |
findByGroupId_PrevAndNext(long commerceTaxMethodId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator)
Returns the commerce tax methods before and after the current commerce tax method in the ordered set where groupId = ?.
|
java.util.List<CommerceTaxMethod> |
findByGroupId(long groupId)
Returns all the commerce tax methods where groupId = ?.
|
java.util.List<CommerceTaxMethod> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the commerce tax methods where groupId = ?.
|
java.util.List<CommerceTaxMethod> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator)
Returns an ordered range of all the commerce tax methods where groupId = ?.
|
java.util.List<CommerceTaxMethod> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce tax methods where groupId = ?.
|
CommerceTaxMethod |
findByPrimaryKey(long commerceTaxMethodId)
Returns the commerce tax method with the primary key or throws a
NoSuchTaxMethodException if it could not be found. |
CommerceTaxMethod |
remove(long commerceTaxMethodId)
Removes the commerce tax method with the primary key from the database.
|
void |
removeAll()
Removes all the commerce tax methods from the database.
|
void |
removeByG_A(long groupId,
boolean active)
Removes all the commerce tax methods where groupId = ? and active = ? from the database.
|
CommerceTaxMethod |
removeByG_E(long groupId,
java.lang.String engineKey)
Removes the commerce tax method where groupId = ? and engineKey = ? from the database.
|
void |
removeByGroupId(long groupId)
Removes all the commerce tax methods where groupId = ? from the database.
|
CommerceTaxMethod |
updateImpl(CommerceTaxMethod commerceTaxMethod) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<CommerceTaxMethod> findByGroupId(long groupId)
groupId
- the group IDjava.util.List<CommerceTaxMethod> findByGroupId(long groupId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTaxMethodModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of commerce tax methodsend
- the upper bound of the range of commerce tax methods (not inclusive)java.util.List<CommerceTaxMethod> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> 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 CommerceTaxMethodModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of commerce tax methodsend
- the upper bound of the range of commerce tax methods (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceTaxMethod> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> 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 CommerceTaxMethodModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of commerce tax methodsend
- the upper bound of the range of commerce tax methods (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceTaxMethod findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) throws NoSuchTaxMethodException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTaxMethodException
- if a matching commerce tax method could not be foundCommerceTaxMethod fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tax method could not be foundCommerceTaxMethod findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) throws NoSuchTaxMethodException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTaxMethodException
- if a matching commerce tax method could not be foundCommerceTaxMethod fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tax method could not be foundCommerceTaxMethod[] findByGroupId_PrevAndNext(long commerceTaxMethodId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) throws NoSuchTaxMethodException
commerceTaxMethodId
- the primary key of the current commerce tax methodgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTaxMethodException
- if a commerce tax method with the primary key could not be foundvoid removeByGroupId(long groupId)
groupId
- the group IDint countByGroupId(long groupId)
groupId
- the group IDCommerceTaxMethod findByG_E(long groupId, java.lang.String engineKey) throws NoSuchTaxMethodException
NoSuchTaxMethodException
if it could not be found.groupId
- the group IDengineKey
- the engine keyNoSuchTaxMethodException
- if a matching commerce tax method could not be foundCommerceTaxMethod fetchByG_E(long groupId, java.lang.String engineKey)
null
if it could not be found. Uses the finder cache.groupId
- the group IDengineKey
- the engine keynull
if a matching commerce tax method could not be foundCommerceTaxMethod fetchByG_E(long groupId, java.lang.String engineKey, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.groupId
- the group IDengineKey
- the engine keyuseFinderCache
- whether to use the finder cachenull
if a matching commerce tax method could not be foundCommerceTaxMethod removeByG_E(long groupId, java.lang.String engineKey) throws NoSuchTaxMethodException
groupId
- the group IDengineKey
- the engine keyNoSuchTaxMethodException
int countByG_E(long groupId, java.lang.String engineKey)
groupId
- the group IDengineKey
- the engine keyjava.util.List<CommerceTaxMethod> findByG_A(long groupId, boolean active)
groupId
- the group IDactive
- the activejava.util.List<CommerceTaxMethod> findByG_A(long groupId, boolean active, 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 CommerceTaxMethodModelImpl
.
groupId
- the group IDactive
- the activestart
- the lower bound of the range of commerce tax methodsend
- the upper bound of the range of commerce tax methods (not inclusive)java.util.List<CommerceTaxMethod> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> 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 CommerceTaxMethodModelImpl
.
groupId
- the group IDactive
- the activestart
- the lower bound of the range of commerce tax methodsend
- the upper bound of the range of commerce tax methods (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceTaxMethod> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> 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 CommerceTaxMethodModelImpl
.
groupId
- the group IDactive
- the activestart
- the lower bound of the range of commerce tax methodsend
- the upper bound of the range of commerce tax methods (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceTaxMethod findByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) throws NoSuchTaxMethodException
groupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTaxMethodException
- if a matching commerce tax method could not be foundCommerceTaxMethod fetchByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator)
groupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tax method could not be foundCommerceTaxMethod findByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) throws NoSuchTaxMethodException
groupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTaxMethodException
- if a matching commerce tax method could not be foundCommerceTaxMethod fetchByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator)
groupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tax method could not be foundCommerceTaxMethod[] findByG_A_PrevAndNext(long commerceTaxMethodId, long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) throws NoSuchTaxMethodException
commerceTaxMethodId
- the primary key of the current commerce tax methodgroupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTaxMethodException
- if a commerce tax method with the primary key could not be foundvoid removeByG_A(long groupId, boolean active)
groupId
- the group IDactive
- the activeint countByG_A(long groupId, boolean active)
groupId
- the group IDactive
- the activevoid cacheResult(CommerceTaxMethod commerceTaxMethod)
commerceTaxMethod
- the commerce tax methodvoid cacheResult(java.util.List<CommerceTaxMethod> commerceTaxMethods)
commerceTaxMethods
- the commerce tax methodsCommerceTaxMethod create(long commerceTaxMethodId)
commerceTaxMethodId
- the primary key for the new commerce tax methodCommerceTaxMethod remove(long commerceTaxMethodId) throws NoSuchTaxMethodException
commerceTaxMethodId
- the primary key of the commerce tax methodNoSuchTaxMethodException
- if a commerce tax method with the primary key could not be foundCommerceTaxMethod updateImpl(CommerceTaxMethod commerceTaxMethod)
CommerceTaxMethod findByPrimaryKey(long commerceTaxMethodId) throws NoSuchTaxMethodException
NoSuchTaxMethodException
if it could not be found.commerceTaxMethodId
- the primary key of the commerce tax methodNoSuchTaxMethodException
- if a commerce tax method with the primary key could not be foundCommerceTaxMethod fetchByPrimaryKey(long commerceTaxMethodId)
null
if it could not be found.commerceTaxMethodId
- the primary key of the commerce tax methodnull
if a commerce tax method with the primary key could not be foundjava.util.List<CommerceTaxMethod> findAll()
java.util.List<CommerceTaxMethod> 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 CommerceTaxMethodModelImpl
.
start
- the lower bound of the range of commerce tax methodsend
- the upper bound of the range of commerce tax methods (not inclusive)java.util.List<CommerceTaxMethod> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> 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 CommerceTaxMethodModelImpl
.
start
- the lower bound of the range of commerce tax methodsend
- the upper bound of the range of commerce tax methods (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceTaxMethod> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> 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 CommerceTaxMethodModelImpl
.
start
- the lower bound of the range of commerce tax methodsend
- the upper bound of the range of commerce tax methods (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()