@ProviderType public interface CommerceOrderTypePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceOrderType>
Caching information and settings can be found in portal.properties
CommerceOrderTypeUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CommerceOrderType commerceOrderType)
Caches the commerce order type in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceOrderType> commerceOrderTypes)
Caches the commerce order types in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce order types.
|
int |
countByC_A(long companyId,
boolean active)
Returns the number of commerce order types where companyId = ? and active = ?.
|
int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of commerce order types where companyId = ? and externalReferenceCode = ?.
|
int |
countByCompanyId(long companyId)
Returns the number of commerce order types where companyId = ?.
|
int |
countByLtD_S(java.util.Date displayDate,
int status)
Returns the number of commerce order types where displayDate < ? and status = ?.
|
int |
countByLtE_S(java.util.Date expirationDate,
int status)
Returns the number of commerce order types where expirationDate < ? and status = ?.
|
CommerceOrderType |
create(long commerceOrderTypeId)
Creates a new commerce order type with the primary key.
|
CommerceOrderType |
fetchByC_A_First(long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the first commerce order type in the ordered set where companyId = ? and active = ?.
|
CommerceOrderType |
fetchByC_A_Last(long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the last commerce order type in the ordered set where companyId = ? and active = ?.
|
CommerceOrderType |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce order type where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
CommerceOrderType |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the commerce order type where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
CommerceOrderType |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the first commerce order type in the ordered set where companyId = ?.
|
CommerceOrderType |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the last commerce order type in the ordered set where companyId = ?.
|
CommerceOrderType |
fetchByLtD_S_First(java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the first commerce order type in the ordered set where displayDate < ? and status = ?.
|
CommerceOrderType |
fetchByLtD_S_Last(java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the last commerce order type in the ordered set where displayDate < ? and status = ?.
|
CommerceOrderType |
fetchByLtE_S_First(java.util.Date expirationDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the first commerce order type in the ordered set where expirationDate < ? and status = ?.
|
CommerceOrderType |
fetchByLtE_S_Last(java.util.Date expirationDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the last commerce order type in the ordered set where expirationDate < ? and status = ?.
|
CommerceOrderType |
fetchByPrimaryKey(long commerceOrderTypeId)
Returns the commerce order type with the primary key or returns
null if it could not be found. |
int |
filterCountByC_A(long companyId,
boolean active)
Returns the number of commerce order types that the user has permission to view where companyId = ? and active = ?.
|
int |
filterCountByCompanyId(long companyId)
Returns the number of commerce order types that the user has permission to view where companyId = ?.
|
int |
filterCountByLtD_S(java.util.Date displayDate,
int status)
Returns the number of commerce order types that the user has permission to view where displayDate < ? and status = ?.
|
int |
filterCountByLtE_S(java.util.Date expirationDate,
int status)
Returns the number of commerce order types that the user has permission to view where expirationDate < ? and status = ?.
|
CommerceOrderType[] |
filterFindByC_A_PrevAndNext(long commerceOrderTypeId,
long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the commerce order types before and after the current commerce order type in the ordered set of commerce order types that the user has permission to view where companyId = ? and active = ?.
|
java.util.List<CommerceOrderType> |
filterFindByC_A(long companyId,
boolean active)
Returns all the commerce order types that the user has permission to view where companyId = ? and active = ?.
|
java.util.List<CommerceOrderType> |
filterFindByC_A(long companyId,
boolean active,
int start,
int end)
Returns a range of all the commerce order types that the user has permission to view where companyId = ? and active = ?.
|
java.util.List<CommerceOrderType> |
filterFindByC_A(long companyId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns an ordered range of all the commerce order types that the user has permissions to view where companyId = ? and active = ?.
|
CommerceOrderType[] |
filterFindByCompanyId_PrevAndNext(long commerceOrderTypeId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the commerce order types before and after the current commerce order type in the ordered set of commerce order types that the user has permission to view where companyId = ?.
|
java.util.List<CommerceOrderType> |
filterFindByCompanyId(long companyId)
Returns all the commerce order types that the user has permission to view where companyId = ?.
|
java.util.List<CommerceOrderType> |
filterFindByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce order types that the user has permission to view where companyId = ?.
|
java.util.List<CommerceOrderType> |
filterFindByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns an ordered range of all the commerce order types that the user has permissions to view where companyId = ?.
|
CommerceOrderType[] |
filterFindByLtD_S_PrevAndNext(long commerceOrderTypeId,
java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the commerce order types before and after the current commerce order type in the ordered set of commerce order types that the user has permission to view where displayDate < ? and status = ?.
|
java.util.List<CommerceOrderType> |
filterFindByLtD_S(java.util.Date displayDate,
int status)
Returns all the commerce order types that the user has permission to view where displayDate < ? and status = ?.
|
java.util.List<CommerceOrderType> |
filterFindByLtD_S(java.util.Date displayDate,
int status,
int start,
int end)
Returns a range of all the commerce order types that the user has permission to view where displayDate < ? and status = ?.
|
java.util.List<CommerceOrderType> |
filterFindByLtD_S(java.util.Date displayDate,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns an ordered range of all the commerce order types that the user has permissions to view where displayDate < ? and status = ?.
|
CommerceOrderType[] |
filterFindByLtE_S_PrevAndNext(long commerceOrderTypeId,
java.util.Date expirationDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the commerce order types before and after the current commerce order type in the ordered set of commerce order types that the user has permission to view where expirationDate < ? and status = ?.
|
java.util.List<CommerceOrderType> |
filterFindByLtE_S(java.util.Date expirationDate,
int status)
Returns all the commerce order types that the user has permission to view where expirationDate < ? and status = ?.
|
java.util.List<CommerceOrderType> |
filterFindByLtE_S(java.util.Date expirationDate,
int status,
int start,
int end)
Returns a range of all the commerce order types that the user has permission to view where expirationDate < ? and status = ?.
|
java.util.List<CommerceOrderType> |
filterFindByLtE_S(java.util.Date expirationDate,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns an ordered range of all the commerce order types that the user has permissions to view where expirationDate < ? and status = ?.
|
java.util.List<CommerceOrderType> |
findAll()
Returns all the commerce order types.
|
java.util.List<CommerceOrderType> |
findAll(int start,
int end)
Returns a range of all the commerce order types.
|
java.util.List<CommerceOrderType> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns an ordered range of all the commerce order types.
|
java.util.List<CommerceOrderType> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order types.
|
CommerceOrderType |
findByC_A_First(long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the first commerce order type in the ordered set where companyId = ? and active = ?.
|
CommerceOrderType |
findByC_A_Last(long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the last commerce order type in the ordered set where companyId = ? and active = ?.
|
CommerceOrderType[] |
findByC_A_PrevAndNext(long commerceOrderTypeId,
long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the commerce order types before and after the current commerce order type in the ordered set where companyId = ? and active = ?.
|
java.util.List<CommerceOrderType> |
findByC_A(long companyId,
boolean active)
Returns all the commerce order types where companyId = ? and active = ?.
|
java.util.List<CommerceOrderType> |
findByC_A(long companyId,
boolean active,
int start,
int end)
Returns a range of all the commerce order types where companyId = ? and active = ?.
|
java.util.List<CommerceOrderType> |
findByC_A(long companyId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns an ordered range of all the commerce order types where companyId = ? and active = ?.
|
java.util.List<CommerceOrderType> |
findByC_A(long companyId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order types where companyId = ? and active = ?.
|
CommerceOrderType |
findByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce order type where companyId = ? and externalReferenceCode = ? or throws a
NoSuchOrderTypeException if it could not be found. |
CommerceOrderType |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the first commerce order type in the ordered set where companyId = ?.
|
CommerceOrderType |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the last commerce order type in the ordered set where companyId = ?.
|
CommerceOrderType[] |
findByCompanyId_PrevAndNext(long commerceOrderTypeId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the commerce order types before and after the current commerce order type in the ordered set where companyId = ?.
|
java.util.List<CommerceOrderType> |
findByCompanyId(long companyId)
Returns all the commerce order types where companyId = ?.
|
java.util.List<CommerceOrderType> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce order types where companyId = ?.
|
java.util.List<CommerceOrderType> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns an ordered range of all the commerce order types where companyId = ?.
|
java.util.List<CommerceOrderType> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order types where companyId = ?.
|
CommerceOrderType |
findByLtD_S_First(java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the first commerce order type in the ordered set where displayDate < ? and status = ?.
|
CommerceOrderType |
findByLtD_S_Last(java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the last commerce order type in the ordered set where displayDate < ? and status = ?.
|
CommerceOrderType[] |
findByLtD_S_PrevAndNext(long commerceOrderTypeId,
java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the commerce order types before and after the current commerce order type in the ordered set where displayDate < ? and status = ?.
|
java.util.List<CommerceOrderType> |
findByLtD_S(java.util.Date displayDate,
int status)
Returns all the commerce order types where displayDate < ? and status = ?.
|
java.util.List<CommerceOrderType> |
findByLtD_S(java.util.Date displayDate,
int status,
int start,
int end)
Returns a range of all the commerce order types where displayDate < ? and status = ?.
|
java.util.List<CommerceOrderType> |
findByLtD_S(java.util.Date displayDate,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns an ordered range of all the commerce order types where displayDate < ? and status = ?.
|
java.util.List<CommerceOrderType> |
findByLtD_S(java.util.Date displayDate,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order types where displayDate < ? and status = ?.
|
CommerceOrderType |
findByLtE_S_First(java.util.Date expirationDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the first commerce order type in the ordered set where expirationDate < ? and status = ?.
|
CommerceOrderType |
findByLtE_S_Last(java.util.Date expirationDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the last commerce order type in the ordered set where expirationDate < ? and status = ?.
|
CommerceOrderType[] |
findByLtE_S_PrevAndNext(long commerceOrderTypeId,
java.util.Date expirationDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the commerce order types before and after the current commerce order type in the ordered set where expirationDate < ? and status = ?.
|
java.util.List<CommerceOrderType> |
findByLtE_S(java.util.Date expirationDate,
int status)
Returns all the commerce order types where expirationDate < ? and status = ?.
|
java.util.List<CommerceOrderType> |
findByLtE_S(java.util.Date expirationDate,
int status,
int start,
int end)
Returns a range of all the commerce order types where expirationDate < ? and status = ?.
|
java.util.List<CommerceOrderType> |
findByLtE_S(java.util.Date expirationDate,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns an ordered range of all the commerce order types where expirationDate < ? and status = ?.
|
java.util.List<CommerceOrderType> |
findByLtE_S(java.util.Date expirationDate,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order types where expirationDate < ? and status = ?.
|
CommerceOrderType |
findByPrimaryKey(long commerceOrderTypeId)
Returns the commerce order type with the primary key or throws a
NoSuchOrderTypeException if it could not be found. |
CommerceOrderType |
remove(long commerceOrderTypeId)
Removes the commerce order type with the primary key from the database.
|
void |
removeAll()
Removes all the commerce order types from the database.
|
void |
removeByC_A(long companyId,
boolean active)
Removes all the commerce order types where companyId = ? and active = ? from the database.
|
CommerceOrderType |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the commerce order type where companyId = ? and externalReferenceCode = ? from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the commerce order types where companyId = ? from the database.
|
void |
removeByLtD_S(java.util.Date displayDate,
int status)
Removes all the commerce order types where displayDate < ? and status = ? from the database.
|
void |
removeByLtE_S(java.util.Date expirationDate,
int status)
Removes all the commerce order types where expirationDate < ? and status = ? from the database.
|
CommerceOrderType |
updateImpl(CommerceOrderType commerceOrderType) |
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<CommerceOrderType> findByCompanyId(long companyId)
companyId
- the company IDjava.util.List<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)java.util.List<CommerceOrderType> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceOrderType> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceOrderType findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a matching commerce order type could not be foundCommerceOrderType fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type could not be foundCommerceOrderType findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a matching commerce order type could not be foundCommerceOrderType fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type could not be foundCommerceOrderType[] findByCompanyId_PrevAndNext(long commerceOrderTypeId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
commerceOrderTypeId
- the primary key of the current commerce order typecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundjava.util.List<CommerceOrderType> filterFindByCompanyId(long companyId)
companyId
- the company IDjava.util.List<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)java.util.List<CommerceOrderType> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)CommerceOrderType[] filterFindByCompanyId_PrevAndNext(long commerceOrderTypeId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
commerceOrderTypeId
- the primary key of the current commerce order typecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDint filterCountByCompanyId(long companyId)
companyId
- the company IDjava.util.List<CommerceOrderType> findByC_A(long companyId, boolean active)
companyId
- the company IDactive
- the activejava.util.List<CommerceOrderType> findByC_A(long companyId, 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 CommerceOrderTypeModelImpl
.
companyId
- the company IDactive
- the activestart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)java.util.List<CommerceOrderType> findByC_A(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
companyId
- the company IDactive
- the activestart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceOrderType> findByC_A(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
companyId
- the company IDactive
- the activestart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceOrderType findByC_A_First(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a matching commerce order type could not be foundCommerceOrderType fetchByC_A_First(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type could not be foundCommerceOrderType findByC_A_Last(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a matching commerce order type could not be foundCommerceOrderType fetchByC_A_Last(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type could not be foundCommerceOrderType[] findByC_A_PrevAndNext(long commerceOrderTypeId, long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
commerceOrderTypeId
- the primary key of the current commerce order typecompanyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundjava.util.List<CommerceOrderType> filterFindByC_A(long companyId, boolean active)
companyId
- the company IDactive
- the activejava.util.List<CommerceOrderType> filterFindByC_A(long companyId, 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 CommerceOrderTypeModelImpl
.
companyId
- the company IDactive
- the activestart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)java.util.List<CommerceOrderType> filterFindByC_A(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
companyId
- the company IDactive
- the activestart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)CommerceOrderType[] filterFindByC_A_PrevAndNext(long commerceOrderTypeId, long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
commerceOrderTypeId
- the primary key of the current commerce order typecompanyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundvoid removeByC_A(long companyId, boolean active)
companyId
- the company IDactive
- the activeint countByC_A(long companyId, boolean active)
companyId
- the company IDactive
- the activeint filterCountByC_A(long companyId, boolean active)
companyId
- the company IDactive
- the activejava.util.List<CommerceOrderType> findByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statusjava.util.List<CommerceOrderType> findByLtD_S(java.util.Date displayDate, 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 CommerceOrderTypeModelImpl
.
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)java.util.List<CommerceOrderType> findByLtD_S(java.util.Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceOrderType> findByLtD_S(java.util.Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceOrderType findByLtD_S_First(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a matching commerce order type could not be foundCommerceOrderType fetchByLtD_S_First(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type could not be foundCommerceOrderType findByLtD_S_Last(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a matching commerce order type could not be foundCommerceOrderType fetchByLtD_S_Last(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type could not be foundCommerceOrderType[] findByLtD_S_PrevAndNext(long commerceOrderTypeId, java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
commerceOrderTypeId
- the primary key of the current commerce order typedisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundjava.util.List<CommerceOrderType> filterFindByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statusjava.util.List<CommerceOrderType> filterFindByLtD_S(java.util.Date displayDate, 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 CommerceOrderTypeModelImpl
.
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)java.util.List<CommerceOrderType> filterFindByLtD_S(java.util.Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)CommerceOrderType[] filterFindByLtD_S_PrevAndNext(long commerceOrderTypeId, java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
commerceOrderTypeId
- the primary key of the current commerce order typedisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundvoid removeByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statusint countByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statusint filterCountByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statusjava.util.List<CommerceOrderType> findByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statusjava.util.List<CommerceOrderType> findByLtE_S(java.util.Date expirationDate, 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 CommerceOrderTypeModelImpl
.
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)java.util.List<CommerceOrderType> findByLtE_S(java.util.Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceOrderType> findByLtE_S(java.util.Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceOrderType findByLtE_S_First(java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a matching commerce order type could not be foundCommerceOrderType fetchByLtE_S_First(java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type could not be foundCommerceOrderType findByLtE_S_Last(java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a matching commerce order type could not be foundCommerceOrderType fetchByLtE_S_Last(java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type could not be foundCommerceOrderType[] findByLtE_S_PrevAndNext(long commerceOrderTypeId, java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
commerceOrderTypeId
- the primary key of the current commerce order typeexpirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundjava.util.List<CommerceOrderType> filterFindByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statusjava.util.List<CommerceOrderType> filterFindByLtE_S(java.util.Date expirationDate, 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 CommerceOrderTypeModelImpl
.
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)java.util.List<CommerceOrderType> filterFindByLtE_S(java.util.Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)CommerceOrderType[] filterFindByLtE_S_PrevAndNext(long commerceOrderTypeId, java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
commerceOrderTypeId
- the primary key of the current commerce order typeexpirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundvoid removeByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statusint countByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statusint filterCountByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statusCommerceOrderType findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchOrderTypeException
NoSuchOrderTypeException
if it could not be found.companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchOrderTypeException
- if a matching commerce order type could not be foundCommerceOrderType 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 order type could not be foundCommerceOrderType 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 commerce order type could not be foundCommerceOrderType removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchOrderTypeException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchOrderTypeException
int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codevoid cacheResult(CommerceOrderType commerceOrderType)
commerceOrderType
- the commerce order typevoid cacheResult(java.util.List<CommerceOrderType> commerceOrderTypes)
commerceOrderTypes
- the commerce order typesCommerceOrderType create(long commerceOrderTypeId)
commerceOrderTypeId
- the primary key for the new commerce order typeCommerceOrderType remove(long commerceOrderTypeId) throws NoSuchOrderTypeException
commerceOrderTypeId
- the primary key of the commerce order typeNoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundCommerceOrderType updateImpl(CommerceOrderType commerceOrderType)
CommerceOrderType findByPrimaryKey(long commerceOrderTypeId) throws NoSuchOrderTypeException
NoSuchOrderTypeException
if it could not be found.commerceOrderTypeId
- the primary key of the commerce order typeNoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundCommerceOrderType fetchByPrimaryKey(long commerceOrderTypeId)
null
if it could not be found.commerceOrderTypeId
- the primary key of the commerce order typenull
if a commerce order type with the primary key could not be foundjava.util.List<CommerceOrderType> findAll()
java.util.List<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
start
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)java.util.List<CommerceOrderType> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
start
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceOrderType> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
start
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()