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

com.liferay.expando.kernel.service.persistence.ExpandoRowPersistence Maven / Gradle / Ivy

There is a newer version: 7.4.3.112-ga112
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.expando.kernel.service.persistence;

import aQute.bnd.annotation.ProviderType;

import com.liferay.expando.kernel.exception.NoSuchRowException;
import com.liferay.expando.kernel.model.ExpandoRow;
import com.liferay.portal.kernel.service.persistence.BasePersistence;

import java.io.Serializable;

import java.util.Map;
import java.util.Set;

/**
 * The persistence interface for the expando row service.
 *
 * 

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

* * @author Brian Wing Shun Chan * @see ExpandoRowUtil * @generated */ @ProviderType public interface ExpandoRowPersistence extends BasePersistence { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link ExpandoRowUtil} to access the expando row persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. */ @Override public Map fetchByPrimaryKeys( Set primaryKeys); /** * Returns all the expando rows where tableId = ?. * * @param tableId the table ID * @return the matching expando rows */ public java.util.List findByTableId(long tableId); /** * Returns a range of all the expando rows where tableId = ?. * *

* 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 ExpandoRowModelImpl. 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 tableId the table ID * @param start the lower bound of the range of expando rows * @param end the upper bound of the range of expando rows (not inclusive) * @return the range of matching expando rows */ public java.util.List findByTableId( long tableId, int start, int end); /** * Returns an ordered range of all the expando rows where tableId = ?. * *

* 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 ExpandoRowModelImpl. 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 tableId the table ID * @param start the lower bound of the range of expando rows * @param end the upper bound of the range of expando rows (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching expando rows */ public java.util.List findByTableId( long tableId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the expando rows where tableId = ?. * *

* 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 ExpandoRowModelImpl. 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 tableId the table ID * @param start the lower bound of the range of expando rows * @param end the upper bound of the range of expando rows (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching expando rows */ public java.util.List findByTableId( long tableId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first expando row in the ordered set where tableId = ?. * * @param tableId the table ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching expando row * @throws NoSuchRowException if a matching expando row could not be found */ public ExpandoRow findByTableId_First( long tableId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRowException; /** * Returns the first expando row in the ordered set where tableId = ?. * * @param tableId the table ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching expando row, or null if a matching expando row could not be found */ public ExpandoRow fetchByTableId_First( long tableId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last expando row in the ordered set where tableId = ?. * * @param tableId the table ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching expando row * @throws NoSuchRowException if a matching expando row could not be found */ public ExpandoRow findByTableId_Last( long tableId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRowException; /** * Returns the last expando row in the ordered set where tableId = ?. * * @param tableId the table ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching expando row, or null if a matching expando row could not be found */ public ExpandoRow fetchByTableId_Last( long tableId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the expando rows before and after the current expando row in the ordered set where tableId = ?. * * @param rowId the primary key of the current expando row * @param tableId the table ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next expando row * @throws NoSuchRowException if a expando row with the primary key could not be found */ public ExpandoRow[] findByTableId_PrevAndNext( long rowId, long tableId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRowException; /** * Removes all the expando rows where tableId = ? from the database. * * @param tableId the table ID */ public void removeByTableId(long tableId); /** * Returns the number of expando rows where tableId = ?. * * @param tableId the table ID * @return the number of matching expando rows */ public int countByTableId(long tableId); /** * Returns all the expando rows where classPK = ?. * * @param classPK the class pk * @return the matching expando rows */ public java.util.List findByClassPK(long classPK); /** * Returns a range of all the expando rows where classPK = ?. * *

* 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 ExpandoRowModelImpl. 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 classPK the class pk * @param start the lower bound of the range of expando rows * @param end the upper bound of the range of expando rows (not inclusive) * @return the range of matching expando rows */ public java.util.List findByClassPK( long classPK, int start, int end); /** * Returns an ordered range of all the expando rows where classPK = ?. * *

* 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 ExpandoRowModelImpl. 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 classPK the class pk * @param start the lower bound of the range of expando rows * @param end the upper bound of the range of expando rows (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching expando rows */ public java.util.List findByClassPK( long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the expando rows where classPK = ?. * *

* 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 ExpandoRowModelImpl. 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 classPK the class pk * @param start the lower bound of the range of expando rows * @param end the upper bound of the range of expando rows (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching expando rows */ public java.util.List findByClassPK( long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first expando row in the ordered set where classPK = ?. * * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching expando row * @throws NoSuchRowException if a matching expando row could not be found */ public ExpandoRow findByClassPK_First( long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRowException; /** * Returns the first expando row in the ordered set where classPK = ?. * * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching expando row, or null if a matching expando row could not be found */ public ExpandoRow fetchByClassPK_First( long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last expando row in the ordered set where classPK = ?. * * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching expando row * @throws NoSuchRowException if a matching expando row could not be found */ public ExpandoRow findByClassPK_Last( long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRowException; /** * Returns the last expando row in the ordered set where classPK = ?. * * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching expando row, or null if a matching expando row could not be found */ public ExpandoRow fetchByClassPK_Last( long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the expando rows before and after the current expando row in the ordered set where classPK = ?. * * @param rowId the primary key of the current expando row * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next expando row * @throws NoSuchRowException if a expando row with the primary key could not be found */ public ExpandoRow[] findByClassPK_PrevAndNext( long rowId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRowException; /** * Removes all the expando rows where classPK = ? from the database. * * @param classPK the class pk */ public void removeByClassPK(long classPK); /** * Returns the number of expando rows where classPK = ?. * * @param classPK the class pk * @return the number of matching expando rows */ public int countByClassPK(long classPK); /** * Returns the expando row where tableId = ? and classPK = ? or throws a NoSuchRowException if it could not be found. * * @param tableId the table ID * @param classPK the class pk * @return the matching expando row * @throws NoSuchRowException if a matching expando row could not be found */ public ExpandoRow findByT_C(long tableId, long classPK) throws NoSuchRowException; /** * Returns the expando row where tableId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache. * * @param tableId the table ID * @param classPK the class pk * @return the matching expando row, or null if a matching expando row could not be found */ public ExpandoRow fetchByT_C(long tableId, long classPK); /** * Returns the expando row where tableId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache. * * @param tableId the table ID * @param classPK the class pk * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching expando row, or null if a matching expando row could not be found */ public ExpandoRow fetchByT_C( long tableId, long classPK, boolean retrieveFromCache); /** * Removes the expando row where tableId = ? and classPK = ? from the database. * * @param tableId the table ID * @param classPK the class pk * @return the expando row that was removed */ public ExpandoRow removeByT_C(long tableId, long classPK) throws NoSuchRowException; /** * Returns the number of expando rows where tableId = ? and classPK = ?. * * @param tableId the table ID * @param classPK the class pk * @return the number of matching expando rows */ public int countByT_C(long tableId, long classPK); /** * Caches the expando row in the entity cache if it is enabled. * * @param expandoRow the expando row */ public void cacheResult(ExpandoRow expandoRow); /** * Caches the expando rows in the entity cache if it is enabled. * * @param expandoRows the expando rows */ public void cacheResult(java.util.List expandoRows); /** * Creates a new expando row with the primary key. Does not add the expando row to the database. * * @param rowId the primary key for the new expando row * @return the new expando row */ public ExpandoRow create(long rowId); /** * Removes the expando row with the primary key from the database. Also notifies the appropriate model listeners. * * @param rowId the primary key of the expando row * @return the expando row that was removed * @throws NoSuchRowException if a expando row with the primary key could not be found */ public ExpandoRow remove(long rowId) throws NoSuchRowException; public ExpandoRow updateImpl(ExpandoRow expandoRow); /** * Returns the expando row with the primary key or throws a NoSuchRowException if it could not be found. * * @param rowId the primary key of the expando row * @return the expando row * @throws NoSuchRowException if a expando row with the primary key could not be found */ public ExpandoRow findByPrimaryKey(long rowId) throws NoSuchRowException; /** * Returns the expando row with the primary key or returns null if it could not be found. * * @param rowId the primary key of the expando row * @return the expando row, or null if a expando row with the primary key could not be found */ public ExpandoRow fetchByPrimaryKey(long rowId); /** * Returns all the expando rows. * * @return the expando rows */ public java.util.List findAll(); /** * Returns a range of all the expando rows. * *

* 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 ExpandoRowModelImpl. 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 expando rows * @param end the upper bound of the range of expando rows (not inclusive) * @return the range of expando rows */ public java.util.List findAll(int start, int end); /** * Returns an ordered range of all the expando rows. * *

* 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 ExpandoRowModelImpl. 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 expando rows * @param end the upper bound of the range of expando rows (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of expando rows */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the expando rows. * *

* 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 ExpandoRowModelImpl. 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 expando rows * @param end the upper bound of the range of expando rows (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of expando rows */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Removes all the expando rows from the database. */ public void removeAll(); /** * Returns the number of expando rows. * * @return the number of expando rows */ public int countAll(); @Override public Set getBadColumnNames(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy