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.portal.service.persistence;
016    
017    import com.liferay.portal.model.OrgLabor;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       OrgLaborPersistenceImpl
022     * @see       OrgLaborUtil
023     * @generated
024     */
025    public interface OrgLaborPersistence extends BasePersistence<OrgLabor> {
026            public void cacheResult(com.liferay.portal.model.OrgLabor orgLabor);
027    
028            public void cacheResult(
029                    java.util.List<com.liferay.portal.model.OrgLabor> orgLabors);
030    
031            public com.liferay.portal.model.OrgLabor create(long orgLaborId);
032    
033            public com.liferay.portal.model.OrgLabor remove(long orgLaborId)
034                    throws com.liferay.portal.NoSuchOrgLaborException,
035                            com.liferay.portal.kernel.exception.SystemException;
036    
037            public com.liferay.portal.model.OrgLabor updateImpl(
038                    com.liferay.portal.model.OrgLabor orgLabor, boolean merge)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public com.liferay.portal.model.OrgLabor findByPrimaryKey(long orgLaborId)
042                    throws com.liferay.portal.NoSuchOrgLaborException,
043                            com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portal.model.OrgLabor fetchByPrimaryKey(long orgLaborId)
046                    throws com.liferay.portal.kernel.exception.SystemException;
047    
048            public java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
049                    long organizationId)
050                    throws com.liferay.portal.kernel.exception.SystemException;
051    
052            public java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
053                    long organizationId, int start, int end)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
057                    long organizationId, int start, int end,
058                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
059                    throws com.liferay.portal.kernel.exception.SystemException;
060    
061            public com.liferay.portal.model.OrgLabor findByOrganizationId_First(
062                    long organizationId,
063                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
064                    throws com.liferay.portal.NoSuchOrgLaborException,
065                            com.liferay.portal.kernel.exception.SystemException;
066    
067            public com.liferay.portal.model.OrgLabor findByOrganizationId_Last(
068                    long organizationId,
069                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
070                    throws com.liferay.portal.NoSuchOrgLaborException,
071                            com.liferay.portal.kernel.exception.SystemException;
072    
073            public com.liferay.portal.model.OrgLabor[] findByOrganizationId_PrevAndNext(
074                    long orgLaborId, long organizationId,
075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076                    throws com.liferay.portal.NoSuchOrgLaborException,
077                            com.liferay.portal.kernel.exception.SystemException;
078    
079            public java.util.List<com.liferay.portal.model.OrgLabor> findAll()
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            public java.util.List<com.liferay.portal.model.OrgLabor> findAll(
083                    int start, int end)
084                    throws com.liferay.portal.kernel.exception.SystemException;
085    
086            public java.util.List<com.liferay.portal.model.OrgLabor> findAll(
087                    int start, int end,
088                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
089                    throws com.liferay.portal.kernel.exception.SystemException;
090    
091            public void removeByOrganizationId(long organizationId)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public void removeAll()
095                    throws com.liferay.portal.kernel.exception.SystemException;
096    
097            public int countByOrganizationId(long organizationId)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public int countAll()
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    }