001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.service.persistence;
022:
023: /**
024: * <a href="OrgLaborPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface OrgLaborPersistence {
030: public com.liferay.portal.model.OrgLabor create(long orgLaborId);
031:
032: public com.liferay.portal.model.OrgLabor remove(long orgLaborId)
033: throws com.liferay.portal.SystemException,
034: com.liferay.portal.NoSuchOrgLaborException;
035:
036: public com.liferay.portal.model.OrgLabor remove(
037: com.liferay.portal.model.OrgLabor orgLabor)
038: throws com.liferay.portal.SystemException;
039:
040: public com.liferay.portal.model.OrgLabor update(
041: com.liferay.portal.model.OrgLabor orgLabor)
042: throws com.liferay.portal.SystemException;
043:
044: public com.liferay.portal.model.OrgLabor update(
045: com.liferay.portal.model.OrgLabor orgLabor, boolean merge)
046: throws com.liferay.portal.SystemException;
047:
048: public com.liferay.portal.model.OrgLabor updateImpl(
049: com.liferay.portal.model.OrgLabor orgLabor, boolean merge)
050: throws com.liferay.portal.SystemException;
051:
052: public com.liferay.portal.model.OrgLabor findByPrimaryKey(
053: long orgLaborId) throws com.liferay.portal.SystemException,
054: com.liferay.portal.NoSuchOrgLaborException;
055:
056: public com.liferay.portal.model.OrgLabor fetchByPrimaryKey(
057: long orgLaborId) throws com.liferay.portal.SystemException;
058:
059: public java.util.List findByOrganizationId(long organizationId)
060: throws com.liferay.portal.SystemException;
061:
062: public java.util.List findByOrganizationId(long organizationId,
063: int begin, int end)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByOrganizationId(long organizationId,
067: int begin, int end,
068: com.liferay.portal.kernel.util.OrderByComparator obc)
069: throws com.liferay.portal.SystemException;
070:
071: public com.liferay.portal.model.OrgLabor findByOrganizationId_First(
072: long organizationId,
073: com.liferay.portal.kernel.util.OrderByComparator obc)
074: throws com.liferay.portal.SystemException,
075: com.liferay.portal.NoSuchOrgLaborException;
076:
077: public com.liferay.portal.model.OrgLabor findByOrganizationId_Last(
078: long organizationId,
079: com.liferay.portal.kernel.util.OrderByComparator obc)
080: throws com.liferay.portal.SystemException,
081: com.liferay.portal.NoSuchOrgLaborException;
082:
083: public com.liferay.portal.model.OrgLabor[] findByOrganizationId_PrevAndNext(
084: long orgLaborId, long organizationId,
085: com.liferay.portal.kernel.util.OrderByComparator obc)
086: throws com.liferay.portal.SystemException,
087: com.liferay.portal.NoSuchOrgLaborException;
088:
089: public java.util.List findWithDynamicQuery(
090: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
091: throws com.liferay.portal.SystemException;
092:
093: public java.util.List findWithDynamicQuery(
094: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
095: int begin, int end)
096: throws com.liferay.portal.SystemException;
097:
098: public java.util.List findAll()
099: throws com.liferay.portal.SystemException;
100:
101: public java.util.List findAll(int begin, int end)
102: throws com.liferay.portal.SystemException;
103:
104: public java.util.List findAll(int begin, int end,
105: com.liferay.portal.kernel.util.OrderByComparator obc)
106: throws com.liferay.portal.SystemException;
107:
108: public void removeByOrganizationId(long organizationId)
109: throws com.liferay.portal.SystemException;
110:
111: public void removeAll() throws com.liferay.portal.SystemException;
112:
113: public int countByOrganizationId(long organizationId)
114: throws com.liferay.portal.SystemException;
115:
116: public int countAll() throws com.liferay.portal.SystemException;
117: }
|