001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.expando.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.expando.model.ExpandoRow;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       ExpandoRowPersistenceImpl
024     * @see       ExpandoRowUtil
025     * @generated
026     */
027    public interface ExpandoRowPersistence extends BasePersistence<ExpandoRow> {
028            public void cacheResult(
029                    com.liferay.portlet.expando.model.ExpandoRow expandoRow);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.expando.model.ExpandoRow> expandoRows);
033    
034            public com.liferay.portlet.expando.model.ExpandoRow create(long rowId);
035    
036            public com.liferay.portlet.expando.model.ExpandoRow remove(long rowId)
037                    throws com.liferay.portal.kernel.exception.SystemException,
038                            com.liferay.portlet.expando.NoSuchRowException;
039    
040            public com.liferay.portlet.expando.model.ExpandoRow updateImpl(
041                    com.liferay.portlet.expando.model.ExpandoRow expandoRow, boolean merge)
042                    throws com.liferay.portal.kernel.exception.SystemException;
043    
044            public com.liferay.portlet.expando.model.ExpandoRow findByPrimaryKey(
045                    long rowId)
046                    throws com.liferay.portal.kernel.exception.SystemException,
047                            com.liferay.portlet.expando.NoSuchRowException;
048    
049            public com.liferay.portlet.expando.model.ExpandoRow fetchByPrimaryKey(
050                    long rowId) throws com.liferay.portal.kernel.exception.SystemException;
051    
052            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
053                    long tableId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
057                    long tableId, int start, int end)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
061                    long tableId, int start, int end,
062                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
063                    throws com.liferay.portal.kernel.exception.SystemException;
064    
065            public com.liferay.portlet.expando.model.ExpandoRow findByTableId_First(
066                    long tableId,
067                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
068                    throws com.liferay.portal.kernel.exception.SystemException,
069                            com.liferay.portlet.expando.NoSuchRowException;
070    
071            public com.liferay.portlet.expando.model.ExpandoRow findByTableId_Last(
072                    long tableId,
073                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
074                    throws com.liferay.portal.kernel.exception.SystemException,
075                            com.liferay.portlet.expando.NoSuchRowException;
076    
077            public com.liferay.portlet.expando.model.ExpandoRow[] findByTableId_PrevAndNext(
078                    long rowId, long tableId,
079                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
080                    throws com.liferay.portal.kernel.exception.SystemException,
081                            com.liferay.portlet.expando.NoSuchRowException;
082    
083            public com.liferay.portlet.expando.model.ExpandoRow findByT_C(
084                    long tableId, long classPK)
085                    throws com.liferay.portal.kernel.exception.SystemException,
086                            com.liferay.portlet.expando.NoSuchRowException;
087    
088            public com.liferay.portlet.expando.model.ExpandoRow fetchByT_C(
089                    long tableId, long classPK)
090                    throws com.liferay.portal.kernel.exception.SystemException;
091    
092            public com.liferay.portlet.expando.model.ExpandoRow fetchByT_C(
093                    long tableId, long classPK, boolean retrieveFromCache)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll()
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll(
100                    int start, int end)
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll(
104                    int start, int end,
105                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            public void removeByTableId(long tableId)
109                    throws com.liferay.portal.kernel.exception.SystemException;
110    
111            public void removeByT_C(long tableId, long classPK)
112                    throws com.liferay.portal.kernel.exception.SystemException,
113                            com.liferay.portlet.expando.NoSuchRowException;
114    
115            public void removeAll()
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            public int countByTableId(long tableId)
119                    throws com.liferay.portal.kernel.exception.SystemException;
120    
121            public int countByT_C(long tableId, long classPK)
122                    throws com.liferay.portal.kernel.exception.SystemException;
123    
124            public int countAll()
125                    throws com.liferay.portal.kernel.exception.SystemException;
126    }