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="ServiceComponentPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface ServiceComponentPersistence {
030: public com.liferay.portal.model.ServiceComponent create(
031: long serviceComponentId);
032:
033: public com.liferay.portal.model.ServiceComponent remove(
034: long serviceComponentId)
035: throws com.liferay.portal.NoSuchServiceComponentException,
036: com.liferay.portal.SystemException;
037:
038: public com.liferay.portal.model.ServiceComponent remove(
039: com.liferay.portal.model.ServiceComponent serviceComponent)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portal.model.ServiceComponent update(
043: com.liferay.portal.model.ServiceComponent serviceComponent)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portal.model.ServiceComponent update(
047: com.liferay.portal.model.ServiceComponent serviceComponent,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portal.model.ServiceComponent updateImpl(
051: com.liferay.portal.model.ServiceComponent serviceComponent,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portal.model.ServiceComponent findByPrimaryKey(
055: long serviceComponentId)
056: throws com.liferay.portal.NoSuchServiceComponentException,
057: com.liferay.portal.SystemException;
058:
059: public com.liferay.portal.model.ServiceComponent fetchByPrimaryKey(
060: long serviceComponentId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByBuildNamespace(
064: java.lang.String buildNamespace)
065: throws com.liferay.portal.SystemException;
066:
067: public java.util.List findByBuildNamespace(
068: java.lang.String buildNamespace, int begin, int end)
069: throws com.liferay.portal.SystemException;
070:
071: public java.util.List findByBuildNamespace(
072: java.lang.String buildNamespace, int begin, int end,
073: com.liferay.portal.kernel.util.OrderByComparator obc)
074: throws com.liferay.portal.SystemException;
075:
076: public com.liferay.portal.model.ServiceComponent findByBuildNamespace_First(
077: java.lang.String buildNamespace,
078: com.liferay.portal.kernel.util.OrderByComparator obc)
079: throws com.liferay.portal.NoSuchServiceComponentException,
080: com.liferay.portal.SystemException;
081:
082: public com.liferay.portal.model.ServiceComponent findByBuildNamespace_Last(
083: java.lang.String buildNamespace,
084: com.liferay.portal.kernel.util.OrderByComparator obc)
085: throws com.liferay.portal.NoSuchServiceComponentException,
086: com.liferay.portal.SystemException;
087:
088: public com.liferay.portal.model.ServiceComponent[] findByBuildNamespace_PrevAndNext(
089: long serviceComponentId, java.lang.String buildNamespace,
090: com.liferay.portal.kernel.util.OrderByComparator obc)
091: throws com.liferay.portal.NoSuchServiceComponentException,
092: com.liferay.portal.SystemException;
093:
094: public com.liferay.portal.model.ServiceComponent findByBNS_BNU(
095: java.lang.String buildNamespace, long buildNumber)
096: throws com.liferay.portal.NoSuchServiceComponentException,
097: com.liferay.portal.SystemException;
098:
099: public com.liferay.portal.model.ServiceComponent fetchByBNS_BNU(
100: java.lang.String buildNamespace, long buildNumber)
101: throws com.liferay.portal.SystemException;
102:
103: public java.util.List findWithDynamicQuery(
104: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
105: throws com.liferay.portal.SystemException;
106:
107: public java.util.List findWithDynamicQuery(
108: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
109: int begin, int end)
110: throws com.liferay.portal.SystemException;
111:
112: public java.util.List findAll()
113: throws com.liferay.portal.SystemException;
114:
115: public java.util.List findAll(int begin, int end)
116: throws com.liferay.portal.SystemException;
117:
118: public java.util.List findAll(int begin, int end,
119: com.liferay.portal.kernel.util.OrderByComparator obc)
120: throws com.liferay.portal.SystemException;
121:
122: public void removeByBuildNamespace(java.lang.String buildNamespace)
123: throws com.liferay.portal.SystemException;
124:
125: public void removeByBNS_BNU(java.lang.String buildNamespace,
126: long buildNumber)
127: throws com.liferay.portal.NoSuchServiceComponentException,
128: com.liferay.portal.SystemException;
129:
130: public void removeAll() throws com.liferay.portal.SystemException;
131:
132: public int countByBuildNamespace(java.lang.String buildNamespace)
133: throws com.liferay.portal.SystemException;
134:
135: public int countByBNS_BNU(java.lang.String buildNamespace,
136: long buildNumber) throws com.liferay.portal.SystemException;
137:
138: public int countAll() throws com.liferay.portal.SystemException;
139: }
|