com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence Maven / Gradle / Ivy
Show all versions of portal-service Show documentation
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portlet.softwarecatalog.service.persistence;
import com.liferay.portal.service.persistence.BasePersistence;
import com.liferay.portlet.softwarecatalog.model.SCLicense;
/**
* The persistence interface for the s c license service.
*
*
* Caching information and settings can be found in portal.properties
*
*
* @author Brian Wing Shun Chan
* @see SCLicensePersistenceImpl
* @see SCLicenseUtil
* @generated
*/
public interface SCLicensePersistence extends BasePersistence {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. Always use {@link SCLicenseUtil} to access the s c license persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this interface.
*/
/**
* Returns all the s c licenses where active = ?.
*
* @param active the active
* @return the matching s c licenses
* @throws SystemException if a system exception occurred
*/
public java.util.List findByActive(
boolean active)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the s c licenses where active = ?.
*
*
* 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 {@link com.liferay.portal.kernel.dao.orm.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 {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.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.
*
*
* @param active the active
* @param start the lower bound of the range of s c licenses
* @param end the upper bound of the range of s c licenses (not inclusive)
* @return the range of matching s c licenses
* @throws SystemException if a system exception occurred
*/
public java.util.List findByActive(
boolean active, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the s c licenses where active = ?.
*
*
* 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 {@link com.liferay.portal.kernel.dao.orm.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 {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.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.
*
*
* @param active the active
* @param start the lower bound of the range of s c licenses
* @param end the upper bound of the range of s c licenses (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching s c licenses
* @throws SystemException if a system exception occurred
*/
public java.util.List findByActive(
boolean active, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the first s c license in the ordered set where active = ?.
*
* @param active the active
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching s c license
* @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a matching s c license could not be found
* @throws SystemException if a system exception occurred
*/
public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_First(
boolean active,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
/**
* Returns the first s c license in the ordered set where active = ?.
*
* @param active the active
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching s c license, or null
if a matching s c license could not be found
* @throws SystemException if a system exception occurred
*/
public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByActive_First(
boolean active,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the last s c license in the ordered set where active = ?.
*
* @param active the active
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching s c license
* @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a matching s c license could not be found
* @throws SystemException if a system exception occurred
*/
public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_Last(
boolean active,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
/**
* Returns the last s c license in the ordered set where active = ?.
*
* @param active the active
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching s c license, or null
if a matching s c license could not be found
* @throws SystemException if a system exception occurred
*/
public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByActive_Last(
boolean active,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the s c licenses before and after the current s c license in the ordered set where active = ?.
*
* @param licenseId the primary key of the current s c license
* @param active the active
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next s c license
* @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByActive_PrevAndNext(
long licenseId, boolean active,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
/**
* Returns all the s c licenses that the user has permission to view where active = ?.
*
* @param active the active
* @return the matching s c licenses that the user has permission to view
* @throws SystemException if a system exception occurred
*/
public java.util.List filterFindByActive(
boolean active)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the s c licenses that the user has permission to view where active = ?.
*
*
* 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 {@link com.liferay.portal.kernel.dao.orm.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 {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.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.
*
*
* @param active the active
* @param start the lower bound of the range of s c licenses
* @param end the upper bound of the range of s c licenses (not inclusive)
* @return the range of matching s c licenses that the user has permission to view
* @throws SystemException if a system exception occurred
*/
public java.util.List filterFindByActive(
boolean active, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the s c licenses that the user has permissions to view where active = ?.
*
*
* 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 {@link com.liferay.portal.kernel.dao.orm.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 {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.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.
*
*
* @param active the active
* @param start the lower bound of the range of s c licenses
* @param end the upper bound of the range of s c licenses (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching s c licenses that the user has permission to view
* @throws SystemException if a system exception occurred
*/
public java.util.List filterFindByActive(
boolean active, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 = ?.
*
* @param licenseId the primary key of the current s c license
* @param active the active
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next s c license
* @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.liferay.portlet.softwarecatalog.model.SCLicense[] filterFindByActive_PrevAndNext(
long licenseId, boolean active,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
/**
* Removes all the s c licenses where active = ? from the database.
*
* @param active the active
* @throws SystemException if a system exception occurred
*/
public void removeByActive(boolean active)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of s c licenses where active = ?.
*
* @param active the active
* @return the number of matching s c licenses
* @throws SystemException if a system exception occurred
*/
public int countByActive(boolean active)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of s c licenses that the user has permission to view where active = ?.
*
* @param active the active
* @return the number of matching s c licenses that the user has permission to view
* @throws SystemException if a system exception occurred
*/
public int filterCountByActive(boolean active)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns all the s c licenses where active = ? and recommended = ?.
*
* @param active the active
* @param recommended the recommended
* @return the matching s c licenses
* @throws SystemException if a system exception occurred
*/
public java.util.List findByA_R(
boolean active, boolean recommended)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the s c licenses where active = ? and recommended = ?.
*
*
* 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 {@link com.liferay.portal.kernel.dao.orm.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 {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.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.
*
*
* @param active the active
* @param recommended the recommended
* @param start the lower bound of the range of s c licenses
* @param end the upper bound of the range of s c licenses (not inclusive)
* @return the range of matching s c licenses
* @throws SystemException if a system exception occurred
*/
public java.util.List findByA_R(
boolean active, boolean recommended, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the s c licenses where active = ? and recommended = ?.
*
*
* 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 {@link com.liferay.portal.kernel.dao.orm.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 {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.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.
*
*
* @param active the active
* @param recommended the recommended
* @param start the lower bound of the range of s c licenses
* @param end the upper bound of the range of s c licenses (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching s c licenses
* @throws SystemException if a system exception occurred
*/
public java.util.List findByA_R(
boolean active, boolean recommended, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the first s c license in the ordered set where active = ? and recommended = ?.
*
* @param active the active
* @param recommended the recommended
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching s c license
* @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a matching s c license could not be found
* @throws SystemException if a system exception occurred
*/
public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_First(
boolean active, boolean recommended,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
/**
* Returns the first s c license in the ordered set where active = ? and recommended = ?.
*
* @param active the active
* @param recommended the recommended
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching s c license, or null
if a matching s c license could not be found
* @throws SystemException if a system exception occurred
*/
public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByA_R_First(
boolean active, boolean recommended,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the last s c license in the ordered set where active = ? and recommended = ?.
*
* @param active the active
* @param recommended the recommended
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching s c license
* @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a matching s c license could not be found
* @throws SystemException if a system exception occurred
*/
public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_Last(
boolean active, boolean recommended,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
/**
* Returns the last s c license in the ordered set where active = ? and recommended = ?.
*
* @param active the active
* @param recommended the recommended
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching s c license, or null
if a matching s c license could not be found
* @throws SystemException if a system exception occurred
*/
public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByA_R_Last(
boolean active, boolean recommended,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the s c licenses before and after the current s c license in the ordered set where active = ? and recommended = ?.
*
* @param licenseId the primary key of the current s c license
* @param active the active
* @param recommended the recommended
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next s c license
* @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByA_R_PrevAndNext(
long licenseId, boolean active, boolean recommended,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
/**
* Returns all the s c licenses that the user has permission to view where active = ? and recommended = ?.
*
* @param active the active
* @param recommended the recommended
* @return the matching s c licenses that the user has permission to view
* @throws SystemException if a system exception occurred
*/
public java.util.List filterFindByA_R(
boolean active, boolean recommended)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the s c licenses that the user has permission to view where active = ? and recommended = ?.
*
*
* 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 {@link com.liferay.portal.kernel.dao.orm.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 {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.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.
*
*
* @param active the active
* @param recommended the recommended
* @param start the lower bound of the range of s c licenses
* @param end the upper bound of the range of s c licenses (not inclusive)
* @return the range of matching s c licenses that the user has permission to view
* @throws SystemException if a system exception occurred
*/
public java.util.List filterFindByA_R(
boolean active, boolean recommended, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the s c licenses that the user has permissions to view where active = ? and recommended = ?.
*
*
* 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 {@link com.liferay.portal.kernel.dao.orm.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 {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.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.
*
*
* @param active the active
* @param recommended the recommended
* @param start the lower bound of the range of s c licenses
* @param end the upper bound of the range of s c licenses (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching s c licenses that the user has permission to view
* @throws SystemException if a system exception occurred
*/
public java.util.List filterFindByA_R(
boolean active, boolean recommended, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 = ?.
*
* @param licenseId the primary key of the current s c license
* @param active the active
* @param recommended the recommended
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next s c license
* @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.liferay.portlet.softwarecatalog.model.SCLicense[] filterFindByA_R_PrevAndNext(
long licenseId, boolean active, boolean recommended,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
/**
* Removes all the s c licenses where active = ? and recommended = ? from the database.
*
* @param active the active
* @param recommended the recommended
* @throws SystemException if a system exception occurred
*/
public void removeByA_R(boolean active, boolean recommended)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of s c licenses where active = ? and recommended = ?.
*
* @param active the active
* @param recommended the recommended
* @return the number of matching s c licenses
* @throws SystemException if a system exception occurred
*/
public int countByA_R(boolean active, boolean recommended)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of s c licenses that the user has permission to view where active = ? and recommended = ?.
*
* @param active the active
* @param recommended the recommended
* @return the number of matching s c licenses that the user has permission to view
* @throws SystemException if a system exception occurred
*/
public int filterCountByA_R(boolean active, boolean recommended)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Caches the s c license in the entity cache if it is enabled.
*
* @param scLicense the s c license
*/
public void cacheResult(
com.liferay.portlet.softwarecatalog.model.SCLicense scLicense);
/**
* Caches the s c licenses in the entity cache if it is enabled.
*
* @param scLicenses the s c licenses
*/
public void cacheResult(
java.util.List scLicenses);
/**
* Creates a new s c license with the primary key. Does not add the s c license to the database.
*
* @param licenseId the primary key for the new s c license
* @return the new s c license
*/
public com.liferay.portlet.softwarecatalog.model.SCLicense create(
long licenseId);
/**
* Removes the s c license with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param licenseId the primary key of the s c license
* @return the s c license that was removed
* @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.liferay.portlet.softwarecatalog.model.SCLicense remove(
long licenseId)
throws com.liferay.portal.kernel.exception.SystemException,
com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
public com.liferay.portlet.softwarecatalog.model.SCLicense updateImpl(
com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the s c license with the primary key or throws a {@link com.liferay.portlet.softwarecatalog.NoSuchLicenseException} if it could not be found.
*
* @param licenseId the primary key of the s c license
* @return the s c license
* @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.liferay.portlet.softwarecatalog.model.SCLicense findByPrimaryKey(
long licenseId)
throws com.liferay.portal.kernel.exception.SystemException,
com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
/**
* Returns the s c license with the primary key or returns null
if it could not be found.
*
* @param licenseId the primary key of the s c license
* @return the s c license, or null
if a s c license with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByPrimaryKey(
long licenseId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns all the s c licenses.
*
* @return the s c licenses
* @throws SystemException if a system exception occurred
*/
public java.util.List findAll()
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the s c licenses.
*
*
* 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 {@link com.liferay.portal.kernel.dao.orm.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 {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.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.
*
*
* @param start the lower bound of the range of s c licenses
* @param end the upper bound of the range of s c licenses (not inclusive)
* @return the range of s c licenses
* @throws SystemException if a system exception occurred
*/
public java.util.List findAll(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the s c licenses.
*
*
* 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 {@link com.liferay.portal.kernel.dao.orm.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 {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.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.
*
*
* @param start the lower bound of the range of s c licenses
* @param end the upper bound of the range of s c licenses (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of s c licenses
* @throws SystemException if a system exception occurred
*/
public java.util.List findAll(
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes all the s c licenses from the database.
*
* @throws SystemException if a system exception occurred
*/
public void removeAll()
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of s c licenses.
*
* @return the number of s c licenses
* @throws SystemException if a system exception occurred
*/
public int countAll()
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns all the s c product entries associated with the s c license.
*
* @param pk the primary key of the s c license
* @return the s c product entries associated with the s c license
* @throws SystemException if a system exception occurred
*/
public java.util.List getSCProductEntries(
long pk) throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the s c product entries associated with the s c license.
*
*
* 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 {@link com.liferay.portal.kernel.dao.orm.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 {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.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.
*
*
* @param pk the primary key of the s c license
* @param start the lower bound of the range of s c licenses
* @param end the upper bound of the range of s c licenses (not inclusive)
* @return the range of s c product entries associated with the s c license
* @throws SystemException if a system exception occurred
*/
public java.util.List getSCProductEntries(
long pk, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the s c product entries associated with the s c license.
*
*
* 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 {@link com.liferay.portal.kernel.dao.orm.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 {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.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.
*
*
* @param pk the primary key of the s c license
* @param start the lower bound of the range of s c licenses
* @param end the upper bound of the range of s c licenses (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of s c product entries associated with the s c license
* @throws SystemException if a system exception occurred
*/
public java.util.List getSCProductEntries(
long pk, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of s c product entries associated with the s c license.
*
* @param pk the primary key of the s c license
* @return the number of s c product entries associated with the s c license
* @throws SystemException if a system exception occurred
*/
public int getSCProductEntriesSize(long pk)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns true
if the s c product entry is associated with the s c license.
*
* @param pk the primary key of the s c license
* @param scProductEntryPK the primary key of the s c product entry
* @return true
if the s c product entry is associated with the s c license; false
otherwise
* @throws SystemException if a system exception occurred
*/
public boolean containsSCProductEntry(long pk, long scProductEntryPK)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns true
if the s c license has any s c product entries associated with it.
*
* @param pk the primary key of the s c license to check for associations with s c product entries
* @return true
if the s c license has any s c product entries associated with it; false
otherwise
* @throws SystemException if a system exception occurred
*/
public boolean containsSCProductEntries(long pk)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Adds an association between the s c license and the s c product entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the s c license
* @param scProductEntryPK the primary key of the s c product entry
* @throws SystemException if a system exception occurred
*/
public void addSCProductEntry(long pk, long scProductEntryPK)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Adds an association between the s c license and the s c product entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the s c license
* @param scProductEntry the s c product entry
* @throws SystemException if a system exception occurred
*/
public void addSCProductEntry(long pk,
com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Adds an association between the s c license and the s c product entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the s c license
* @param scProductEntryPKs the primary keys of the s c product entries
* @throws SystemException if a system exception occurred
*/
public void addSCProductEntries(long pk, long[] scProductEntryPKs)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Adds an association between the s c license and the s c product entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the s c license
* @param scProductEntries the s c product entries
* @throws SystemException if a system exception occurred
*/
public void addSCProductEntries(long pk,
java.util.List scProductEntries)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Clears all associations between the s c license and its s c product entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the s c license to clear the associated s c product entries from
* @throws SystemException if a system exception occurred
*/
public void clearSCProductEntries(long pk)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes the association between the s c license and the s c product entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the s c license
* @param scProductEntryPK the primary key of the s c product entry
* @throws SystemException if a system exception occurred
*/
public void removeSCProductEntry(long pk, long scProductEntryPK)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes the association between the s c license and the s c product entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the s c license
* @param scProductEntry the s c product entry
* @throws SystemException if a system exception occurred
*/
public void removeSCProductEntry(long pk,
com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes the association between the s c license and the s c product entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the s c license
* @param scProductEntryPKs the primary keys of the s c product entries
* @throws SystemException if a system exception occurred
*/
public void removeSCProductEntries(long pk, long[] scProductEntryPKs)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes the association between the s c license and the s c product entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the s c license
* @param scProductEntries the s c product entries
* @throws SystemException if a system exception occurred
*/
public void removeSCProductEntries(long pk,
java.util.List scProductEntries)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Sets the s c product entries associated with the s c license, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the s c license
* @param scProductEntryPKs the primary keys of the s c product entries to be associated with the s c license
* @throws SystemException if a system exception occurred
*/
public void setSCProductEntries(long pk, long[] scProductEntryPKs)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Sets the s c product entries associated with the s c license, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
*
* @param pk the primary key of the s c license
* @param scProductEntries the s c product entries to be associated with the s c license
* @throws SystemException if a system exception occurred
*/
public void setSCProductEntries(long pk,
java.util.List scProductEntries)
throws com.liferay.portal.kernel.exception.SystemException;
}