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="LayoutSetPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface LayoutSetPersistence {
030: public com.liferay.portal.model.LayoutSet create(long layoutSetId);
031:
032: public com.liferay.portal.model.LayoutSet remove(long layoutSetId)
033: throws com.liferay.portal.SystemException,
034: com.liferay.portal.NoSuchLayoutSetException;
035:
036: public com.liferay.portal.model.LayoutSet remove(
037: com.liferay.portal.model.LayoutSet layoutSet)
038: throws com.liferay.portal.SystemException;
039:
040: public com.liferay.portal.model.LayoutSet update(
041: com.liferay.portal.model.LayoutSet layoutSet)
042: throws com.liferay.portal.SystemException;
043:
044: public com.liferay.portal.model.LayoutSet update(
045: com.liferay.portal.model.LayoutSet layoutSet, boolean merge)
046: throws com.liferay.portal.SystemException;
047:
048: public com.liferay.portal.model.LayoutSet updateImpl(
049: com.liferay.portal.model.LayoutSet layoutSet, boolean merge)
050: throws com.liferay.portal.SystemException;
051:
052: public com.liferay.portal.model.LayoutSet findByPrimaryKey(
053: long layoutSetId)
054: throws com.liferay.portal.SystemException,
055: com.liferay.portal.NoSuchLayoutSetException;
056:
057: public com.liferay.portal.model.LayoutSet fetchByPrimaryKey(
058: long layoutSetId) throws com.liferay.portal.SystemException;
059:
060: public java.util.List findByGroupId(long groupId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByGroupId(long groupId, int begin, int end)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByGroupId(long groupId, int begin,
067: int end,
068: com.liferay.portal.kernel.util.OrderByComparator obc)
069: throws com.liferay.portal.SystemException;
070:
071: public com.liferay.portal.model.LayoutSet findByGroupId_First(
072: long groupId,
073: com.liferay.portal.kernel.util.OrderByComparator obc)
074: throws com.liferay.portal.SystemException,
075: com.liferay.portal.NoSuchLayoutSetException;
076:
077: public com.liferay.portal.model.LayoutSet findByGroupId_Last(
078: long groupId,
079: com.liferay.portal.kernel.util.OrderByComparator obc)
080: throws com.liferay.portal.SystemException,
081: com.liferay.portal.NoSuchLayoutSetException;
082:
083: public com.liferay.portal.model.LayoutSet[] findByGroupId_PrevAndNext(
084: long layoutSetId, long groupId,
085: com.liferay.portal.kernel.util.OrderByComparator obc)
086: throws com.liferay.portal.SystemException,
087: com.liferay.portal.NoSuchLayoutSetException;
088:
089: public com.liferay.portal.model.LayoutSet findByVirtualHost(
090: java.lang.String virtualHost)
091: throws com.liferay.portal.SystemException,
092: com.liferay.portal.NoSuchLayoutSetException;
093:
094: public com.liferay.portal.model.LayoutSet fetchByVirtualHost(
095: java.lang.String virtualHost)
096: throws com.liferay.portal.SystemException;
097:
098: public com.liferay.portal.model.LayoutSet findByG_P(long groupId,
099: boolean privateLayout)
100: throws com.liferay.portal.SystemException,
101: com.liferay.portal.NoSuchLayoutSetException;
102:
103: public com.liferay.portal.model.LayoutSet fetchByG_P(long groupId,
104: boolean privateLayout)
105: throws com.liferay.portal.SystemException;
106:
107: public java.util.List findWithDynamicQuery(
108: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
109: throws com.liferay.portal.SystemException;
110:
111: public java.util.List findWithDynamicQuery(
112: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
113: int begin, int end)
114: throws com.liferay.portal.SystemException;
115:
116: public java.util.List findAll()
117: throws com.liferay.portal.SystemException;
118:
119: public java.util.List findAll(int begin, int end)
120: throws com.liferay.portal.SystemException;
121:
122: public java.util.List findAll(int begin, int end,
123: com.liferay.portal.kernel.util.OrderByComparator obc)
124: throws com.liferay.portal.SystemException;
125:
126: public void removeByGroupId(long groupId)
127: throws com.liferay.portal.SystemException;
128:
129: public void removeByVirtualHost(java.lang.String virtualHost)
130: throws com.liferay.portal.SystemException,
131: com.liferay.portal.NoSuchLayoutSetException;
132:
133: public void removeByG_P(long groupId, boolean privateLayout)
134: throws com.liferay.portal.SystemException,
135: com.liferay.portal.NoSuchLayoutSetException;
136:
137: public void removeAll() throws com.liferay.portal.SystemException;
138:
139: public int countByGroupId(long groupId)
140: throws com.liferay.portal.SystemException;
141:
142: public int countByVirtualHost(java.lang.String virtualHost)
143: throws com.liferay.portal.SystemException;
144:
145: public int countByG_P(long groupId, boolean privateLayout)
146: throws com.liferay.portal.SystemException;
147:
148: public int countAll() throws com.liferay.portal.SystemException;
149: }
|