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="PluginSettingPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface PluginSettingPersistence {
030: public com.liferay.portal.model.PluginSetting create(
031: long pluginSettingId);
032:
033: public com.liferay.portal.model.PluginSetting remove(
034: long pluginSettingId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portal.NoSuchPluginSettingException;
037:
038: public com.liferay.portal.model.PluginSetting remove(
039: com.liferay.portal.model.PluginSetting pluginSetting)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portal.model.PluginSetting update(
043: com.liferay.portal.model.PluginSetting pluginSetting)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portal.model.PluginSetting update(
047: com.liferay.portal.model.PluginSetting pluginSetting,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portal.model.PluginSetting updateImpl(
051: com.liferay.portal.model.PluginSetting pluginSetting,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portal.model.PluginSetting findByPrimaryKey(
055: long pluginSettingId)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portal.NoSuchPluginSettingException;
058:
059: public com.liferay.portal.model.PluginSetting fetchByPrimaryKey(
060: long pluginSettingId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByCompanyId(long companyId)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByCompanyId(long companyId, int begin,
067: int end) throws com.liferay.portal.SystemException;
068:
069: public java.util.List findByCompanyId(long companyId, int begin,
070: int end,
071: com.liferay.portal.kernel.util.OrderByComparator obc)
072: throws com.liferay.portal.SystemException;
073:
074: public com.liferay.portal.model.PluginSetting findByCompanyId_First(
075: long companyId,
076: com.liferay.portal.kernel.util.OrderByComparator obc)
077: throws com.liferay.portal.SystemException,
078: com.liferay.portal.NoSuchPluginSettingException;
079:
080: public com.liferay.portal.model.PluginSetting findByCompanyId_Last(
081: long companyId,
082: com.liferay.portal.kernel.util.OrderByComparator obc)
083: throws com.liferay.portal.SystemException,
084: com.liferay.portal.NoSuchPluginSettingException;
085:
086: public com.liferay.portal.model.PluginSetting[] findByCompanyId_PrevAndNext(
087: long pluginSettingId, long companyId,
088: com.liferay.portal.kernel.util.OrderByComparator obc)
089: throws com.liferay.portal.SystemException,
090: com.liferay.portal.NoSuchPluginSettingException;
091:
092: public com.liferay.portal.model.PluginSetting findByC_I_T(
093: long companyId, java.lang.String pluginId,
094: java.lang.String pluginType)
095: throws com.liferay.portal.SystemException,
096: com.liferay.portal.NoSuchPluginSettingException;
097:
098: public com.liferay.portal.model.PluginSetting fetchByC_I_T(
099: long companyId, java.lang.String pluginId,
100: java.lang.String pluginType)
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 removeByCompanyId(long companyId)
123: throws com.liferay.portal.SystemException;
124:
125: public void removeByC_I_T(long companyId,
126: java.lang.String pluginId, java.lang.String pluginType)
127: throws com.liferay.portal.SystemException,
128: com.liferay.portal.NoSuchPluginSettingException;
129:
130: public void removeAll() throws com.liferay.portal.SystemException;
131:
132: public int countByCompanyId(long companyId)
133: throws com.liferay.portal.SystemException;
134:
135: public int countByC_I_T(long companyId, java.lang.String pluginId,
136: java.lang.String pluginType)
137: throws com.liferay.portal.SystemException;
138:
139: public int countAll() throws com.liferay.portal.SystemException;
140: }
|