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

com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence Maven / Gradle / Ivy

/**
 * 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.expando.service.persistence;

import aQute.bnd.annotation.ProviderType;

import com.liferay.portal.service.persistence.BasePersistence;

import com.liferay.portlet.expando.model.ExpandoTable;

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

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

* * @author Brian Wing Shun Chan * @see ExpandoTablePersistenceImpl * @see ExpandoTableUtil * @generated */ @ProviderType public interface ExpandoTablePersistence extends BasePersistence { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link ExpandoTableUtil} to access the expando table persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the expando tables where companyId = ? and classNameId = ?. * * @param companyId the company ID * @param classNameId the class name ID * @return the matching expando tables * @throws SystemException if a system exception occurred */ public java.util.List findByC_C( long companyId, long classNameId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the expando tables where companyId = ? and classNameId = ?. * *

* 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.expando.model.impl.ExpandoTableModelImpl}. 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 companyId the company ID * @param classNameId the class name ID * @param start the lower bound of the range of expando tables * @param end the upper bound of the range of expando tables (not inclusive) * @return the range of matching expando tables * @throws SystemException if a system exception occurred */ public java.util.List findByC_C( long companyId, long classNameId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the expando tables where companyId = ? and classNameId = ?. * *

* 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.expando.model.impl.ExpandoTableModelImpl}. 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 companyId the company ID * @param classNameId the class name ID * @param start the lower bound of the range of expando tables * @param end the upper bound of the range of expando tables (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching expando tables * @throws SystemException if a system exception occurred */ public java.util.List findByC_C( long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first expando table in the ordered set where companyId = ? and classNameId = ?. * * @param companyId the company ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching expando table * @throws com.liferay.portlet.expando.NoSuchTableException if a matching expando table could not be found * @throws SystemException if a system exception occurred */ public com.liferay.portlet.expando.model.ExpandoTable findByC_C_First( long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.expando.NoSuchTableException; /** * Returns the first expando table in the ordered set where companyId = ? and classNameId = ?. * * @param companyId the company ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching expando table, or null if a matching expando table could not be found * @throws SystemException if a system exception occurred */ public com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_First( long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last expando table in the ordered set where companyId = ? and classNameId = ?. * * @param companyId the company ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching expando table * @throws com.liferay.portlet.expando.NoSuchTableException if a matching expando table could not be found * @throws SystemException if a system exception occurred */ public com.liferay.portlet.expando.model.ExpandoTable findByC_C_Last( long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.expando.NoSuchTableException; /** * Returns the last expando table in the ordered set where companyId = ? and classNameId = ?. * * @param companyId the company ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching expando table, or null if a matching expando table could not be found * @throws SystemException if a system exception occurred */ public com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_Last( long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the expando tables before and after the current expando table in the ordered set where companyId = ? and classNameId = ?. * * @param tableId the primary key of the current expando table * @param companyId the company ID * @param classNameId the class name ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next expando table * @throws com.liferay.portlet.expando.NoSuchTableException if a expando table with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.portlet.expando.model.ExpandoTable[] findByC_C_PrevAndNext( long tableId, long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.expando.NoSuchTableException; /** * Removes all the expando tables where companyId = ? and classNameId = ? from the database. * * @param companyId the company ID * @param classNameId the class name ID * @throws SystemException if a system exception occurred */ public void removeByC_C(long companyId, long classNameId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of expando tables where companyId = ? and classNameId = ?. * * @param companyId the company ID * @param classNameId the class name ID * @return the number of matching expando tables * @throws SystemException if a system exception occurred */ public int countByC_C(long companyId, long classNameId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the expando table where companyId = ? and classNameId = ? and name = ? or throws a {@link com.liferay.portlet.expando.NoSuchTableException} if it could not be found. * * @param companyId the company ID * @param classNameId the class name ID * @param name the name * @return the matching expando table * @throws com.liferay.portlet.expando.NoSuchTableException if a matching expando table could not be found * @throws SystemException if a system exception occurred */ public com.liferay.portlet.expando.model.ExpandoTable findByC_C_N( long companyId, long classNameId, java.lang.String name) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.expando.NoSuchTableException; /** * Returns the expando table where companyId = ? and classNameId = ? and name = ? or returns null if it could not be found. Uses the finder cache. * * @param companyId the company ID * @param classNameId the class name ID * @param name the name * @return the matching expando table, or null if a matching expando table could not be found * @throws SystemException if a system exception occurred */ public com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N( long companyId, long classNameId, java.lang.String name) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the expando table where companyId = ? and classNameId = ? and name = ? or returns null if it could not be found, optionally using the finder cache. * * @param companyId the company ID * @param classNameId the class name ID * @param name the name * @param retrieveFromCache whether to use the finder cache * @return the matching expando table, or null if a matching expando table could not be found * @throws SystemException if a system exception occurred */ public com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N( long companyId, long classNameId, java.lang.String name, boolean retrieveFromCache) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes the expando table where companyId = ? and classNameId = ? and name = ? from the database. * * @param companyId the company ID * @param classNameId the class name ID * @param name the name * @return the expando table that was removed * @throws SystemException if a system exception occurred */ public com.liferay.portlet.expando.model.ExpandoTable removeByC_C_N( long companyId, long classNameId, java.lang.String name) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.expando.NoSuchTableException; /** * Returns the number of expando tables where companyId = ? and classNameId = ? and name = ?. * * @param companyId the company ID * @param classNameId the class name ID * @param name the name * @return the number of matching expando tables * @throws SystemException if a system exception occurred */ public int countByC_C_N(long companyId, long classNameId, java.lang.String name) throws com.liferay.portal.kernel.exception.SystemException; /** * Caches the expando table in the entity cache if it is enabled. * * @param expandoTable the expando table */ public void cacheResult( com.liferay.portlet.expando.model.ExpandoTable expandoTable); /** * Caches the expando tables in the entity cache if it is enabled. * * @param expandoTables the expando tables */ public void cacheResult( java.util.List expandoTables); /** * Creates a new expando table with the primary key. Does not add the expando table to the database. * * @param tableId the primary key for the new expando table * @return the new expando table */ public com.liferay.portlet.expando.model.ExpandoTable create(long tableId); /** * Removes the expando table with the primary key from the database. Also notifies the appropriate model listeners. * * @param tableId the primary key of the expando table * @return the expando table that was removed * @throws com.liferay.portlet.expando.NoSuchTableException if a expando table with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.portlet.expando.model.ExpandoTable remove(long tableId) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.expando.NoSuchTableException; public com.liferay.portlet.expando.model.ExpandoTable updateImpl( com.liferay.portlet.expando.model.ExpandoTable expandoTable) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the expando table with the primary key or throws a {@link com.liferay.portlet.expando.NoSuchTableException} if it could not be found. * * @param tableId the primary key of the expando table * @return the expando table * @throws com.liferay.portlet.expando.NoSuchTableException if a expando table with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.portlet.expando.model.ExpandoTable findByPrimaryKey( long tableId) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portlet.expando.NoSuchTableException; /** * Returns the expando table with the primary key or returns null if it could not be found. * * @param tableId the primary key of the expando table * @return the expando table, or null if a expando table with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.portlet.expando.model.ExpandoTable fetchByPrimaryKey( long tableId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the expando tables. * * @return the expando tables * @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 expando tables. * *

* 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.expando.model.impl.ExpandoTableModelImpl}. 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 tables * @param end the upper bound of the range of expando tables (not inclusive) * @return the range of expando tables * @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 expando tables. * *

* 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.expando.model.impl.ExpandoTableModelImpl}. 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 tables * @param end the upper bound of the range of expando tables (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of expando tables * @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 expando tables from the database. * * @throws SystemException if a system exception occurred */ public void removeAll() throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of expando tables. * * @return the number of expando tables * @throws SystemException if a system exception occurred */ public int countAll() throws com.liferay.portal.kernel.exception.SystemException; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy