All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.portal.kernel.service.persistence.PasswordPolicyRelPersistence Maven / Gradle / Ivy

Go to download

Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.

There is a newer version: 141.0.0
Show newest version
/**
 * Copyright (c) 2000-present 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.portal.kernel.service.persistence;

import com.liferay.portal.kernel.exception.NoSuchPasswordPolicyRelException;
import com.liferay.portal.kernel.model.PasswordPolicyRel;

import org.osgi.annotation.versioning.ProviderType;

/**
 * The persistence interface for the password policy rel service.
 *
 * 

* Caching information and settings can be found in portal.properties *

* * @author Brian Wing Shun Chan * @see PasswordPolicyRelUtil * @generated */ @ProviderType public interface PasswordPolicyRelPersistence extends BasePersistence { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link PasswordPolicyRelUtil} to access the password policy rel persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the password policy rels where passwordPolicyId = ?. * * @param passwordPolicyId the password policy ID * @return the matching password policy rels */ public java.util.List findByPasswordPolicyId( long passwordPolicyId); /** * Returns a range of all the password policy rels where passwordPolicyId = ?. * *

* 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 PasswordPolicyRelModelImpl. *

* * @param passwordPolicyId the password policy ID * @param start the lower bound of the range of password policy rels * @param end the upper bound of the range of password policy rels (not inclusive) * @return the range of matching password policy rels */ public java.util.List findByPasswordPolicyId( long passwordPolicyId, int start, int end); /** * Returns an ordered range of all the password policy rels where passwordPolicyId = ?. * *

* 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 PasswordPolicyRelModelImpl. *

* * @param passwordPolicyId the password policy ID * @param start the lower bound of the range of password policy rels * @param end the upper bound of the range of password policy rels (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching password policy rels */ public java.util.List findByPasswordPolicyId( long passwordPolicyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the password policy rels where passwordPolicyId = ?. * *

* 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 PasswordPolicyRelModelImpl. *

* * @param passwordPolicyId the password policy ID * @param start the lower bound of the range of password policy rels * @param end the upper bound of the range of password policy rels (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching password policy rels */ public java.util.List findByPasswordPolicyId( long passwordPolicyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first password policy rel in the ordered set where passwordPolicyId = ?. * * @param passwordPolicyId the password policy ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching password policy rel * @throws NoSuchPasswordPolicyRelException if a matching password policy rel could not be found */ public PasswordPolicyRel findByPasswordPolicyId_First( long passwordPolicyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchPasswordPolicyRelException; /** * Returns the first password policy rel in the ordered set where passwordPolicyId = ?. * * @param passwordPolicyId the password policy ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching password policy rel, or null if a matching password policy rel could not be found */ public PasswordPolicyRel fetchByPasswordPolicyId_First( long passwordPolicyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last password policy rel in the ordered set where passwordPolicyId = ?. * * @param passwordPolicyId the password policy ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching password policy rel * @throws NoSuchPasswordPolicyRelException if a matching password policy rel could not be found */ public PasswordPolicyRel findByPasswordPolicyId_Last( long passwordPolicyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchPasswordPolicyRelException; /** * Returns the last password policy rel in the ordered set where passwordPolicyId = ?. * * @param passwordPolicyId the password policy ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching password policy rel, or null if a matching password policy rel could not be found */ public PasswordPolicyRel fetchByPasswordPolicyId_Last( long passwordPolicyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the password policy rels before and after the current password policy rel in the ordered set where passwordPolicyId = ?. * * @param passwordPolicyRelId the primary key of the current password policy rel * @param passwordPolicyId the password policy ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next password policy rel * @throws NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found */ public PasswordPolicyRel[] findByPasswordPolicyId_PrevAndNext( long passwordPolicyRelId, long passwordPolicyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchPasswordPolicyRelException; /** * Removes all the password policy rels where passwordPolicyId = ? from the database. * * @param passwordPolicyId the password policy ID */ public void removeByPasswordPolicyId(long passwordPolicyId); /** * Returns the number of password policy rels where passwordPolicyId = ?. * * @param passwordPolicyId the password policy ID * @return the number of matching password policy rels */ public int countByPasswordPolicyId(long passwordPolicyId); /** * Returns the password policy rel where classNameId = ? and classPK = ? or throws a NoSuchPasswordPolicyRelException if it could not be found. * * @param classNameId the class name ID * @param classPK the class pk * @return the matching password policy rel * @throws NoSuchPasswordPolicyRelException if a matching password policy rel could not be found */ public PasswordPolicyRel findByC_C(long classNameId, long classPK) throws NoSuchPasswordPolicyRelException; /** * Returns the password policy rel where classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache. * * @param classNameId the class name ID * @param classPK the class pk * @return the matching password policy rel, or null if a matching password policy rel could not be found */ public PasswordPolicyRel fetchByC_C(long classNameId, long classPK); /** * Returns the password policy rel where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache. * * @param classNameId the class name ID * @param classPK the class pk * @param useFinderCache whether to use the finder cache * @return the matching password policy rel, or null if a matching password policy rel could not be found */ public PasswordPolicyRel fetchByC_C( long classNameId, long classPK, boolean useFinderCache); /** * Removes the password policy rel where classNameId = ? and classPK = ? from the database. * * @param classNameId the class name ID * @param classPK the class pk * @return the password policy rel that was removed */ public PasswordPolicyRel removeByC_C(long classNameId, long classPK) throws NoSuchPasswordPolicyRelException; /** * Returns the number of password policy rels where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @return the number of matching password policy rels */ public int countByC_C(long classNameId, long classPK); /** * Caches the password policy rel in the entity cache if it is enabled. * * @param passwordPolicyRel the password policy rel */ public void cacheResult(PasswordPolicyRel passwordPolicyRel); /** * Caches the password policy rels in the entity cache if it is enabled. * * @param passwordPolicyRels the password policy rels */ public void cacheResult( java.util.List passwordPolicyRels); /** * Creates a new password policy rel with the primary key. Does not add the password policy rel to the database. * * @param passwordPolicyRelId the primary key for the new password policy rel * @return the new password policy rel */ public PasswordPolicyRel create(long passwordPolicyRelId); /** * Removes the password policy rel with the primary key from the database. Also notifies the appropriate model listeners. * * @param passwordPolicyRelId the primary key of the password policy rel * @return the password policy rel that was removed * @throws NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found */ public PasswordPolicyRel remove(long passwordPolicyRelId) throws NoSuchPasswordPolicyRelException; public PasswordPolicyRel updateImpl(PasswordPolicyRel passwordPolicyRel); /** * Returns the password policy rel with the primary key or throws a NoSuchPasswordPolicyRelException if it could not be found. * * @param passwordPolicyRelId the primary key of the password policy rel * @return the password policy rel * @throws NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found */ public PasswordPolicyRel findByPrimaryKey(long passwordPolicyRelId) throws NoSuchPasswordPolicyRelException; /** * Returns the password policy rel with the primary key or returns null if it could not be found. * * @param passwordPolicyRelId the primary key of the password policy rel * @return the password policy rel, or null if a password policy rel with the primary key could not be found */ public PasswordPolicyRel fetchByPrimaryKey(long passwordPolicyRelId); /** * Returns all the password policy rels. * * @return the password policy rels */ public java.util.List findAll(); /** * Returns a range of all the password policy rels. * *

* 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 PasswordPolicyRelModelImpl. *

* * @param start the lower bound of the range of password policy rels * @param end the upper bound of the range of password policy rels (not inclusive) * @return the range of password policy rels */ public java.util.List findAll(int start, int end); /** * Returns an ordered range of all the password policy rels. * *

* 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 PasswordPolicyRelModelImpl. *

* * @param start the lower bound of the range of password policy rels * @param end the upper bound of the range of password policy rels (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of password policy rels */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the password policy rels. * *

* 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 PasswordPolicyRelModelImpl. *

* * @param start the lower bound of the range of password policy rels * @param end the upper bound of the range of password policy rels (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of password policy rels */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Removes all the password policy rels from the database. */ public void removeAll(); /** * Returns the number of password policy rels. * * @return the number of password policy rels */ public int countAll(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy