|
Liferay 7.0-ce-a3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<SCLicense>
com.liferay.portlet.softwarecatalog.service.persistence.impl.SCLicensePersistenceImpl
@ProviderType public class SCLicensePersistenceImpl
The persistence implementation for the s c license service.
Caching information and settings can be found in portal.properties
SCLicensePersistence,
SCLicenseUtil| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
| Constructor Summary | |
|---|---|
SCLicensePersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
addSCProductEntries(long pk,
List<SCProductEntry> scProductEntries)
Adds an association between the s c license and the s c product entries. |
void |
addSCProductEntries(long pk,
long[] scProductEntryPKs)
Adds an association between the s c license and the s c product entries. |
void |
addSCProductEntry(long pk,
long scProductEntryPK)
Adds an association between the s c license and the s c product entry. |
void |
addSCProductEntry(long pk,
SCProductEntry scProductEntry)
Adds an association between the s c license and the s c product entry. |
void |
afterPropertiesSet()
Initializes the s c license persistence. |
void |
cacheResult(List<SCLicense> scLicenses)
Caches the s c licenses in the entity cache if it is enabled. |
void |
cacheResult(SCLicense scLicense)
Caches the s c license in the entity cache if it is enabled. |
void |
clearCache()
Clears the cache for all s c licenses. |
void |
clearCache(List<SCLicense> scLicenses)
Clears the cache for a List instances of this model. |
void |
clearCache(SCLicense scLicense)
Clears the cache for the s c license. |
void |
clearSCProductEntries(long pk)
Clears all associations between the s c license and its s c product entries. |
boolean |
containsSCProductEntries(long pk)
Returns true if the s c license has any s c product entries associated with it. |
boolean |
containsSCProductEntry(long pk,
long scProductEntryPK)
Returns true if the s c product entry is associated with the s c license. |
int |
countAll()
Returns the number of s c licenses. |
int |
countByA_R(boolean active,
boolean recommended)
Returns the number of s c licenses where active = ? and recommended = ?. |
int |
countByActive(boolean active)
Returns the number of s c licenses where active = ?. |
SCLicense |
create(long licenseId)
Creates a new s c license with the primary key. |
void |
destroy()
|
SCLicense |
fetchByA_R_First(boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator)
Returns the first s c license in the ordered set where active = ? and recommended = ?. |
SCLicense |
fetchByA_R_Last(boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator)
Returns the last s c license in the ordered set where active = ? and recommended = ?. |
SCLicense |
fetchByActive_First(boolean active,
OrderByComparator<SCLicense> orderByComparator)
Returns the first s c license in the ordered set where active = ?. |
SCLicense |
fetchByActive_Last(boolean active,
OrderByComparator<SCLicense> orderByComparator)
Returns the last s c license in the ordered set where active = ?. |
SCLicense |
fetchByPrimaryKey(long licenseId)
Returns the s c license with the primary key or returns null if it could not be found. |
SCLicense |
fetchByPrimaryKey(Serializable primaryKey)
Returns the s c license with the primary key or returns null if it could not be found. |
Map<Serializable,SCLicense> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
int |
filterCountByA_R(boolean active,
boolean recommended)
Returns the number of s c licenses that the user has permission to view where active = ? and recommended = ?. |
int |
filterCountByActive(boolean active)
Returns the number of s c licenses that the user has permission to view where active = ?. |
SCLicense[] |
filterFindByA_R_PrevAndNext(long licenseId,
boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator)
Returns the s c licenses before and after the current s c license in the ordered set of s c licenses that the user has permission to view where active = ? and recommended = ?. |
List<SCLicense> |
filterFindByA_R(boolean active,
boolean recommended)
Returns all the s c licenses that the user has permission to view where active = ? and recommended = ?. |
List<SCLicense> |
filterFindByA_R(boolean active,
boolean recommended,
int start,
int end)
Returns a range of all the s c licenses that the user has permission to view where active = ? and recommended = ?. |
List<SCLicense> |
filterFindByA_R(boolean active,
boolean recommended,
int start,
int end,
OrderByComparator<SCLicense> orderByComparator)
Returns an ordered range of all the s c licenses that the user has permissions to view where active = ? and recommended = ?. |
SCLicense[] |
filterFindByActive_PrevAndNext(long licenseId,
boolean active,
OrderByComparator<SCLicense> orderByComparator)
Returns the s c licenses before and after the current s c license in the ordered set of s c licenses that the user has permission to view where active = ?. |
List<SCLicense> |
filterFindByActive(boolean active)
Returns all the s c licenses that the user has permission to view where active = ?. |
List<SCLicense> |
filterFindByActive(boolean active,
int start,
int end)
Returns a range of all the s c licenses that the user has permission to view where active = ?. |
List<SCLicense> |
filterFindByActive(boolean active,
int start,
int end,
OrderByComparator<SCLicense> orderByComparator)
Returns an ordered range of all the s c licenses that the user has permissions to view where active = ?. |
protected SCLicense |
filterGetByA_R_PrevAndNext(Session session,
SCLicense scLicense,
boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator,
boolean previous)
|
protected SCLicense |
filterGetByActive_PrevAndNext(Session session,
SCLicense scLicense,
boolean active,
OrderByComparator<SCLicense> orderByComparator,
boolean previous)
|
List<SCLicense> |
findAll()
Returns all the s c licenses. |
List<SCLicense> |
findAll(int start,
int end)
Returns a range of all the s c licenses. |
List<SCLicense> |
findAll(int start,
int end,
OrderByComparator<SCLicense> orderByComparator)
Returns an ordered range of all the s c licenses. |
List<SCLicense> |
findAll(int start,
int end,
OrderByComparator<SCLicense> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the s c licenses. |
SCLicense |
findByA_R_First(boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator)
Returns the first s c license in the ordered set where active = ? and recommended = ?. |
SCLicense |
findByA_R_Last(boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator)
Returns the last s c license in the ordered set where active = ? and recommended = ?. |
SCLicense[] |
findByA_R_PrevAndNext(long licenseId,
boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator)
Returns the s c licenses before and after the current s c license in the ordered set where active = ? and recommended = ?. |
List<SCLicense> |
findByA_R(boolean active,
boolean recommended)
Returns all the s c licenses where active = ? and recommended = ?. |
List<SCLicense> |
findByA_R(boolean active,
boolean recommended,
int start,
int end)
Returns a range of all the s c licenses where active = ? and recommended = ?. |
List<SCLicense> |
findByA_R(boolean active,
boolean recommended,
int start,
int end,
OrderByComparator<SCLicense> orderByComparator)
Returns an ordered range of all the s c licenses where active = ? and recommended = ?. |
List<SCLicense> |
findByA_R(boolean active,
boolean recommended,
int start,
int end,
OrderByComparator<SCLicense> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the s c licenses where active = ? and recommended = ?. |
SCLicense |
findByActive_First(boolean active,
OrderByComparator<SCLicense> orderByComparator)
Returns the first s c license in the ordered set where active = ?. |
SCLicense |
findByActive_Last(boolean active,
OrderByComparator<SCLicense> orderByComparator)
Returns the last s c license in the ordered set where active = ?. |
SCLicense[] |
findByActive_PrevAndNext(long licenseId,
boolean active,
OrderByComparator<SCLicense> orderByComparator)
Returns the s c licenses before and after the current s c license in the ordered set where active = ?. |
List<SCLicense> |
findByActive(boolean active)
Returns all the s c licenses where active = ?. |
List<SCLicense> |
findByActive(boolean active,
int start,
int end)
Returns a range of all the s c licenses where active = ?. |
List<SCLicense> |
findByActive(boolean active,
int start,
int end,
OrderByComparator<SCLicense> orderByComparator)
Returns an ordered range of all the s c licenses where active = ?. |
List<SCLicense> |
findByActive(boolean active,
int start,
int end,
OrderByComparator<SCLicense> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the s c licenses where active = ?. |
SCLicense |
findByPrimaryKey(long licenseId)
Returns the s c license with the primary key or throws a NoSuchLicenseException if it could not be found. |
SCLicense |
findByPrimaryKey(Serializable primaryKey)
Returns the s c license with the primary key or throws a NoSuchModelException if it could not be found. |
Set<String> |
getBadColumnNames()
|
protected SCLicense |
getByA_R_PrevAndNext(Session session,
SCLicense scLicense,
boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator,
boolean previous)
|
protected SCLicense |
getByActive_PrevAndNext(Session session,
SCLicense scLicense,
boolean active,
OrderByComparator<SCLicense> orderByComparator,
boolean previous)
|
List<SCProductEntry> |
getSCProductEntries(long pk)
Returns all the s c product entries associated with the s c license. |
List<SCProductEntry> |
getSCProductEntries(long pk,
int start,
int end)
Returns a range of all the s c product entries associated with the s c license. |
List<SCProductEntry> |
getSCProductEntries(long pk,
int start,
int end,
OrderByComparator<SCProductEntry> orderByComparator)
Returns an ordered range of all the s c product entries associated with the s c license. |
int |
getSCProductEntriesSize(long pk)
Returns the number of s c product entries associated with the s c license. |
long[] |
getSCProductEntryPrimaryKeys(long pk)
Returns the primaryKeys of s c product entries associated with the s c license. |
protected Map<String,Integer> |
getTableColumnsMap()
|
SCLicense |
remove(long licenseId)
Removes the s c license with the primary key from the database. |
SCLicense |
remove(Serializable primaryKey)
Removes the s c license with the primary key from the database. |
void |
removeAll()
Removes all the s c licenses from the database. |
void |
removeByA_R(boolean active,
boolean recommended)
Removes all the s c licenses where active = ? and recommended = ? from the database. |
void |
removeByActive(boolean active)
Removes all the s c licenses where active = ? from the database. |
protected SCLicense |
removeImpl(SCLicense scLicense)
Removes the model instance from the database. |
void |
removeSCProductEntries(long pk,
List<SCProductEntry> scProductEntries)
Removes the association between the s c license and the s c product entries. |
void |
removeSCProductEntries(long pk,
long[] scProductEntryPKs)
Removes the association between the s c license and the s c product entries. |
void |
removeSCProductEntry(long pk,
long scProductEntryPK)
Removes the association between the s c license and the s c product entry. |
void |
removeSCProductEntry(long pk,
SCProductEntry scProductEntry)
Removes the association between the s c license and the s c product entry. |
void |
setSCProductEntries(long pk,
List<SCProductEntry> scProductEntries)
Sets the s c product entries associated with the s c license, removing and adding associations as necessary. |
void |
setSCProductEntries(long pk,
long[] scProductEntryPKs)
Sets the s c product entries associated with the s c license, removing and adding associations as necessary. |
protected SCLicense |
toUnwrappedModel(SCLicense scLicense)
|
SCLicense |
updateImpl(SCLicense scLicense)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_ACTIVE
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVE
public static final FinderPath FINDER_PATH_COUNT_BY_ACTIVE
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_A_R
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_A_R
public static final FinderPath FINDER_PATH_COUNT_BY_A_R
protected EntityCache entityCache
protected FinderCache finderCache
@BeanReference(type=SCProductEntryPersistence.class) protected SCProductEntryPersistence scProductEntryPersistence
protected TableMapper<SCLicense,SCProductEntry> scLicenseToSCProductEntryTableMapper
| Constructor Detail |
|---|
public SCLicensePersistenceImpl()
| Method Detail |
|---|
public List<SCLicense> findByActive(boolean active)
findByActive in interface SCLicensePersistenceactive - the active
public List<SCLicense> findByActive(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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SCLicenseModelImpl. 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.
findByActive in interface SCLicensePersistenceactive - the activestart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)
public List<SCLicense> findByActive(boolean active,
int start,
int end,
OrderByComparator<SCLicense> 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 SCLicenseModelImpl. 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.
findByActive in interface SCLicensePersistenceactive - the activestart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<SCLicense> findByActive(boolean active,
int start,
int end,
OrderByComparator<SCLicense> 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 SCLicenseModelImpl. 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.
findByActive in interface SCLicensePersistenceactive - the activestart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public SCLicense findByActive_First(boolean active,
OrderByComparator<SCLicense> orderByComparator)
throws NoSuchLicenseException
findByActive_First in interface SCLicensePersistenceactive - the activeorderByComparator - the comparator to order the set by (optionally null)
NoSuchLicenseException - if a matching s c license could not be found
public SCLicense fetchByActive_First(boolean active,
OrderByComparator<SCLicense> orderByComparator)
fetchByActive_First in interface SCLicensePersistenceactive - the activeorderByComparator - the comparator to order the set by (optionally null)
null if a matching s c license could not be found
public SCLicense findByActive_Last(boolean active,
OrderByComparator<SCLicense> orderByComparator)
throws NoSuchLicenseException
findByActive_Last in interface SCLicensePersistenceactive - the activeorderByComparator - the comparator to order the set by (optionally null)
NoSuchLicenseException - if a matching s c license could not be found
public SCLicense fetchByActive_Last(boolean active,
OrderByComparator<SCLicense> orderByComparator)
fetchByActive_Last in interface SCLicensePersistenceactive - the activeorderByComparator - the comparator to order the set by (optionally null)
null if a matching s c license could not be found
public SCLicense[] findByActive_PrevAndNext(long licenseId,
boolean active,
OrderByComparator<SCLicense> orderByComparator)
throws NoSuchLicenseException
findByActive_PrevAndNext in interface SCLicensePersistencelicenseId - the primary key of the current s c licenseactive - the activeorderByComparator - the comparator to order the set by (optionally null)
NoSuchLicenseException - if a s c license with the primary key could not be found
protected SCLicense getByActive_PrevAndNext(Session session,
SCLicense scLicense,
boolean active,
OrderByComparator<SCLicense> orderByComparator,
boolean previous)
public List<SCLicense> filterFindByActive(boolean active)
filterFindByActive in interface SCLicensePersistenceactive - the active
public List<SCLicense> filterFindByActive(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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SCLicenseModelImpl. 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.
filterFindByActive in interface SCLicensePersistenceactive - the activestart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)
public List<SCLicense> filterFindByActive(boolean active,
int start,
int end,
OrderByComparator<SCLicense> 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 SCLicenseModelImpl. 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.
filterFindByActive in interface SCLicensePersistenceactive - the activestart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public SCLicense[] filterFindByActive_PrevAndNext(long licenseId,
boolean active,
OrderByComparator<SCLicense> orderByComparator)
throws NoSuchLicenseException
filterFindByActive_PrevAndNext in interface SCLicensePersistencelicenseId - the primary key of the current s c licenseactive - the activeorderByComparator - the comparator to order the set by (optionally null)
NoSuchLicenseException - if a s c license with the primary key could not be found
protected SCLicense filterGetByActive_PrevAndNext(Session session,
SCLicense scLicense,
boolean active,
OrderByComparator<SCLicense> orderByComparator,
boolean previous)
public void removeByActive(boolean active)
removeByActive in interface SCLicensePersistenceactive - the activepublic int countByActive(boolean active)
countByActive in interface SCLicensePersistenceactive - the active
public int filterCountByActive(boolean active)
filterCountByActive in interface SCLicensePersistenceactive - the active
public List<SCLicense> findByA_R(boolean active,
boolean recommended)
findByA_R in interface SCLicensePersistenceactive - the activerecommended - the recommended
public List<SCLicense> findByA_R(boolean active,
boolean recommended,
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 SCLicenseModelImpl. 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.
findByA_R in interface SCLicensePersistenceactive - the activerecommended - the recommendedstart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)
public List<SCLicense> findByA_R(boolean active,
boolean recommended,
int start,
int end,
OrderByComparator<SCLicense> 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 SCLicenseModelImpl. 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.
findByA_R in interface SCLicensePersistenceactive - the activerecommended - the recommendedstart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<SCLicense> findByA_R(boolean active,
boolean recommended,
int start,
int end,
OrderByComparator<SCLicense> 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 SCLicenseModelImpl. 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.
findByA_R in interface SCLicensePersistenceactive - the activerecommended - the recommendedstart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public SCLicense findByA_R_First(boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator)
throws NoSuchLicenseException
findByA_R_First in interface SCLicensePersistenceactive - the activerecommended - the recommendedorderByComparator - the comparator to order the set by (optionally null)
NoSuchLicenseException - if a matching s c license could not be found
public SCLicense fetchByA_R_First(boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator)
fetchByA_R_First in interface SCLicensePersistenceactive - the activerecommended - the recommendedorderByComparator - the comparator to order the set by (optionally null)
null if a matching s c license could not be found
public SCLicense findByA_R_Last(boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator)
throws NoSuchLicenseException
findByA_R_Last in interface SCLicensePersistenceactive - the activerecommended - the recommendedorderByComparator - the comparator to order the set by (optionally null)
NoSuchLicenseException - if a matching s c license could not be found
public SCLicense fetchByA_R_Last(boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator)
fetchByA_R_Last in interface SCLicensePersistenceactive - the activerecommended - the recommendedorderByComparator - the comparator to order the set by (optionally null)
null if a matching s c license could not be found
public SCLicense[] findByA_R_PrevAndNext(long licenseId,
boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator)
throws NoSuchLicenseException
findByA_R_PrevAndNext in interface SCLicensePersistencelicenseId - the primary key of the current s c licenseactive - the activerecommended - the recommendedorderByComparator - the comparator to order the set by (optionally null)
NoSuchLicenseException - if a s c license with the primary key could not be found
protected SCLicense getByA_R_PrevAndNext(Session session,
SCLicense scLicense,
boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator,
boolean previous)
public List<SCLicense> filterFindByA_R(boolean active,
boolean recommended)
filterFindByA_R in interface SCLicensePersistenceactive - the activerecommended - the recommended
public List<SCLicense> filterFindByA_R(boolean active,
boolean recommended,
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 SCLicenseModelImpl. 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.
filterFindByA_R in interface SCLicensePersistenceactive - the activerecommended - the recommendedstart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)
public List<SCLicense> filterFindByA_R(boolean active,
boolean recommended,
int start,
int end,
OrderByComparator<SCLicense> 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 SCLicenseModelImpl. 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.
filterFindByA_R in interface SCLicensePersistenceactive - the activerecommended - the recommendedstart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public SCLicense[] filterFindByA_R_PrevAndNext(long licenseId,
boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator)
throws NoSuchLicenseException
filterFindByA_R_PrevAndNext in interface SCLicensePersistencelicenseId - the primary key of the current s c licenseactive - the activerecommended - the recommendedorderByComparator - the comparator to order the set by (optionally null)
NoSuchLicenseException - if a s c license with the primary key could not be found
protected SCLicense filterGetByA_R_PrevAndNext(Session session,
SCLicense scLicense,
boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator,
boolean previous)
public void removeByA_R(boolean active,
boolean recommended)
removeByA_R in interface SCLicensePersistenceactive - the activerecommended - the recommended
public int countByA_R(boolean active,
boolean recommended)
countByA_R in interface SCLicensePersistenceactive - the activerecommended - the recommended
public int filterCountByA_R(boolean active,
boolean recommended)
filterCountByA_R in interface SCLicensePersistenceactive - the activerecommended - the recommended
public void cacheResult(SCLicense scLicense)
cacheResult in interface SCLicensePersistencescLicense - the s c licensepublic void cacheResult(List<SCLicense> scLicenses)
cacheResult in interface SCLicensePersistencescLicenses - the s c licensespublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<SCLicense>clearCache in class BasePersistenceImpl<SCLicense>public void clearCache(SCLicense scLicense)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<SCLicense>clearCache in class BasePersistenceImpl<SCLicense>scLicense - the instance of this model to clear the cache forpublic void clearCache(List<SCLicense> scLicenses)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<SCLicense>clearCache in class BasePersistenceImpl<SCLicense>scLicenses - the List instances of this model to clear the cache forpublic SCLicense create(long licenseId)
create in interface SCLicensePersistencelicenseId - the primary key for the new s c license
public SCLicense remove(long licenseId)
throws NoSuchLicenseException
remove in interface SCLicensePersistencelicenseId - the primary key of the s c license
NoSuchLicenseException - if a s c license with the primary key could not be found
public SCLicense remove(Serializable primaryKey)
throws NoSuchLicenseException
remove in interface BasePersistence<SCLicense>remove in class BasePersistenceImpl<SCLicense>primaryKey - the primary key of the s c license
NoSuchLicenseException - if a s c license with the primary key could not be foundprotected SCLicense removeImpl(SCLicense scLicense)
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<SCLicense>scLicense - the model instance to remove
public SCLicense updateImpl(SCLicense scLicense)
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface SCLicensePersistenceupdateImpl in class BasePersistenceImpl<SCLicense>scLicense - the model instance to update
protected SCLicense toUnwrappedModel(SCLicense scLicense)
public SCLicense findByPrimaryKey(Serializable primaryKey)
throws NoSuchLicenseException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<SCLicense>findByPrimaryKey in class BasePersistenceImpl<SCLicense>primaryKey - the primary key of the s c license
NoSuchLicenseException - if a s c license with the primary key could not be found
public SCLicense findByPrimaryKey(long licenseId)
throws NoSuchLicenseException
NoSuchLicenseException if it could not be found.
findByPrimaryKey in interface SCLicensePersistencelicenseId - the primary key of the s c license
NoSuchLicenseException - if a s c license with the primary key could not be foundpublic SCLicense fetchByPrimaryKey(Serializable primaryKey)
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<SCLicense>fetchByPrimaryKey in class BasePersistenceImpl<SCLicense>primaryKey - the primary key of the s c license
null if a s c license with the primary key could not be foundpublic SCLicense fetchByPrimaryKey(long licenseId)
null if it could not be found.
fetchByPrimaryKey in interface SCLicensePersistencelicenseId - the primary key of the s c license
null if a s c license with the primary key could not be foundpublic Map<Serializable,SCLicense> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<SCLicense>fetchByPrimaryKeys in interface SCLicensePersistencefetchByPrimaryKeys in class BasePersistenceImpl<SCLicense>public List<SCLicense> findAll()
findAll in interface SCLicensePersistence
public List<SCLicense> 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 SCLicenseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface SCLicensePersistencestart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)
public List<SCLicense> findAll(int start,
int end,
OrderByComparator<SCLicense> 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 SCLicenseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface SCLicensePersistencestart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<SCLicense> findAll(int start,
int end,
OrderByComparator<SCLicense> 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 SCLicenseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface SCLicensePersistencestart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public void removeAll()
removeAll in interface SCLicensePersistencepublic int countAll()
countAll in interface SCLicensePersistencepublic long[] getSCProductEntryPrimaryKeys(long pk)
getSCProductEntryPrimaryKeys in interface SCLicensePersistencepk - the primary key of the s c license
public List<SCProductEntry> getSCProductEntries(long pk)
getSCProductEntries in interface SCLicensePersistencepk - the primary key of the s c license
public List<SCProductEntry> getSCProductEntries(long pk,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SCLicenseModelImpl. 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.
getSCProductEntries in interface SCLicensePersistencepk - the primary key of the s c licensestart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)
public List<SCProductEntry> getSCProductEntries(long pk,
int start,
int end,
OrderByComparator<SCProductEntry> 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 SCLicenseModelImpl. 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.
getSCProductEntries in interface SCLicensePersistencepk - the primary key of the s c licensestart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public int getSCProductEntriesSize(long pk)
getSCProductEntriesSize in interface SCLicensePersistencepk - the primary key of the s c license
public boolean containsSCProductEntry(long pk,
long scProductEntryPK)
true if the s c product entry is associated with the s c license.
containsSCProductEntry in interface SCLicensePersistencepk - the primary key of the s c licensescProductEntryPK - the primary key of the s c product entry
true if the s c product entry is associated with the s c license; false otherwisepublic boolean containsSCProductEntries(long pk)
true if the s c license has any s c product entries associated with it.
containsSCProductEntries in interface SCLicensePersistencepk - the primary key of the s c license to check for associations with s c product entries
true if the s c license has any s c product entries associated with it; false otherwise
public void addSCProductEntry(long pk,
long scProductEntryPK)
addSCProductEntry in interface SCLicensePersistencepk - the primary key of the s c licensescProductEntryPK - the primary key of the s c product entry
public void addSCProductEntry(long pk,
SCProductEntry scProductEntry)
addSCProductEntry in interface SCLicensePersistencepk - the primary key of the s c licensescProductEntry - the s c product entry
public void addSCProductEntries(long pk,
long[] scProductEntryPKs)
addSCProductEntries in interface SCLicensePersistencepk - the primary key of the s c licensescProductEntryPKs - the primary keys of the s c product entries
public void addSCProductEntries(long pk,
List<SCProductEntry> scProductEntries)
addSCProductEntries in interface SCLicensePersistencepk - the primary key of the s c licensescProductEntries - the s c product entriespublic void clearSCProductEntries(long pk)
clearSCProductEntries in interface SCLicensePersistencepk - the primary key of the s c license to clear the associated s c product entries from
public void removeSCProductEntry(long pk,
long scProductEntryPK)
removeSCProductEntry in interface SCLicensePersistencepk - the primary key of the s c licensescProductEntryPK - the primary key of the s c product entry
public void removeSCProductEntry(long pk,
SCProductEntry scProductEntry)
removeSCProductEntry in interface SCLicensePersistencepk - the primary key of the s c licensescProductEntry - the s c product entry
public void removeSCProductEntries(long pk,
long[] scProductEntryPKs)
removeSCProductEntries in interface SCLicensePersistencepk - the primary key of the s c licensescProductEntryPKs - the primary keys of the s c product entries
public void removeSCProductEntries(long pk,
List<SCProductEntry> scProductEntries)
removeSCProductEntries in interface SCLicensePersistencepk - the primary key of the s c licensescProductEntries - the s c product entries
public void setSCProductEntries(long pk,
long[] scProductEntryPKs)
setSCProductEntries in interface SCLicensePersistencepk - the primary key of the s c licensescProductEntryPKs - the primary keys of the s c product entries to be associated with the s c license
public void setSCProductEntries(long pk,
List<SCProductEntry> scProductEntries)
setSCProductEntries in interface SCLicensePersistencepk - the primary key of the s c licensescProductEntries - the s c product entries to be associated with the s c licensepublic Set<String> getBadColumnNames()
getBadColumnNames in interface BasePersistence<SCLicense>getBadColumnNames in interface SCLicensePersistencegetBadColumnNames in class BasePersistenceImpl<SCLicense>protected Map<String,Integer> getTableColumnsMap()
getTableColumnsMap in class BasePersistenceImpl<SCLicense>public void afterPropertiesSet()
public void destroy()
|
Liferay 7.0-ce-a3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||