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.portlet.tags.service.persistence;
022:
023: /**
024: * <a href="TagsEntryPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface TagsEntryPersistence {
030: public com.liferay.portlet.tags.model.TagsEntry create(long entryId);
031:
032: public com.liferay.portlet.tags.model.TagsEntry remove(long entryId)
033: throws com.liferay.portal.SystemException,
034: com.liferay.portlet.tags.NoSuchEntryException;
035:
036: public com.liferay.portlet.tags.model.TagsEntry remove(
037: com.liferay.portlet.tags.model.TagsEntry tagsEntry)
038: throws com.liferay.portal.SystemException;
039:
040: public com.liferay.portlet.tags.model.TagsEntry update(
041: com.liferay.portlet.tags.model.TagsEntry tagsEntry)
042: throws com.liferay.portal.SystemException;
043:
044: public com.liferay.portlet.tags.model.TagsEntry update(
045: com.liferay.portlet.tags.model.TagsEntry tagsEntry,
046: boolean merge) throws com.liferay.portal.SystemException;
047:
048: public com.liferay.portlet.tags.model.TagsEntry updateImpl(
049: com.liferay.portlet.tags.model.TagsEntry tagsEntry,
050: boolean merge) throws com.liferay.portal.SystemException;
051:
052: public com.liferay.portlet.tags.model.TagsEntry findByPrimaryKey(
053: long entryId) throws com.liferay.portal.SystemException,
054: com.liferay.portlet.tags.NoSuchEntryException;
055:
056: public com.liferay.portlet.tags.model.TagsEntry fetchByPrimaryKey(
057: long entryId) throws com.liferay.portal.SystemException;
058:
059: public com.liferay.portlet.tags.model.TagsEntry findByC_N(
060: long companyId, java.lang.String name)
061: throws com.liferay.portal.SystemException,
062: com.liferay.portlet.tags.NoSuchEntryException;
063:
064: public com.liferay.portlet.tags.model.TagsEntry fetchByC_N(
065: long companyId, java.lang.String name)
066: throws com.liferay.portal.SystemException;
067:
068: public java.util.List findWithDynamicQuery(
069: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
070: throws com.liferay.portal.SystemException;
071:
072: public java.util.List findWithDynamicQuery(
073: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
074: int begin, int end)
075: throws com.liferay.portal.SystemException;
076:
077: public java.util.List findAll()
078: throws com.liferay.portal.SystemException;
079:
080: public java.util.List findAll(int begin, int end)
081: throws com.liferay.portal.SystemException;
082:
083: public java.util.List findAll(int begin, int end,
084: com.liferay.portal.kernel.util.OrderByComparator obc)
085: throws com.liferay.portal.SystemException;
086:
087: public void removeByC_N(long companyId, java.lang.String name)
088: throws com.liferay.portal.SystemException,
089: com.liferay.portlet.tags.NoSuchEntryException;
090:
091: public void removeAll() throws com.liferay.portal.SystemException;
092:
093: public int countByC_N(long companyId, java.lang.String name)
094: throws com.liferay.portal.SystemException;
095:
096: public int countAll() throws com.liferay.portal.SystemException;
097:
098: public java.util.List getTagsAssets(long pk)
099: throws com.liferay.portal.SystemException,
100: com.liferay.portlet.tags.NoSuchEntryException;
101:
102: public java.util.List getTagsAssets(long pk, int begin, int end)
103: throws com.liferay.portal.SystemException,
104: com.liferay.portlet.tags.NoSuchEntryException;
105:
106: public java.util.List getTagsAssets(long pk, int begin, int end,
107: com.liferay.portal.kernel.util.OrderByComparator obc)
108: throws com.liferay.portal.SystemException,
109: com.liferay.portlet.tags.NoSuchEntryException;
110:
111: public int getTagsAssetsSize(long pk)
112: throws com.liferay.portal.SystemException;
113:
114: public boolean containsTagsAsset(long pk, long tagsAssetPK)
115: throws com.liferay.portal.SystemException;
116:
117: public boolean containsTagsAssets(long pk)
118: throws com.liferay.portal.SystemException;
119:
120: public void addTagsAsset(long pk, long tagsAssetPK)
121: throws com.liferay.portal.SystemException,
122: com.liferay.portlet.tags.NoSuchAssetException,
123: com.liferay.portlet.tags.NoSuchEntryException;
124:
125: public void addTagsAsset(long pk,
126: com.liferay.portlet.tags.model.TagsAsset tagsAsset)
127: throws com.liferay.portal.SystemException,
128: com.liferay.portlet.tags.NoSuchAssetException,
129: com.liferay.portlet.tags.NoSuchEntryException;
130:
131: public void addTagsAssets(long pk, long[] tagsAssetPKs)
132: throws com.liferay.portal.SystemException,
133: com.liferay.portlet.tags.NoSuchAssetException,
134: com.liferay.portlet.tags.NoSuchEntryException;
135:
136: public void addTagsAssets(long pk, java.util.List tagsAssets)
137: throws com.liferay.portal.SystemException,
138: com.liferay.portlet.tags.NoSuchAssetException,
139: com.liferay.portlet.tags.NoSuchEntryException;
140:
141: public void clearTagsAssets(long pk)
142: throws com.liferay.portal.SystemException,
143: com.liferay.portlet.tags.NoSuchEntryException;
144:
145: public void removeTagsAsset(long pk, long tagsAssetPK)
146: throws com.liferay.portal.SystemException,
147: com.liferay.portlet.tags.NoSuchAssetException,
148: com.liferay.portlet.tags.NoSuchEntryException;
149:
150: public void removeTagsAsset(long pk,
151: com.liferay.portlet.tags.model.TagsAsset tagsAsset)
152: throws com.liferay.portal.SystemException,
153: com.liferay.portlet.tags.NoSuchAssetException,
154: com.liferay.portlet.tags.NoSuchEntryException;
155:
156: public void removeTagsAssets(long pk, long[] tagsAssetPKs)
157: throws com.liferay.portal.SystemException,
158: com.liferay.portlet.tags.NoSuchAssetException,
159: com.liferay.portlet.tags.NoSuchEntryException;
160:
161: public void removeTagsAssets(long pk, java.util.List tagsAssets)
162: throws com.liferay.portal.SystemException,
163: com.liferay.portlet.tags.NoSuchAssetException,
164: com.liferay.portlet.tags.NoSuchEntryException;
165:
166: public void setTagsAssets(long pk, long[] tagsAssetPKs)
167: throws com.liferay.portal.SystemException,
168: com.liferay.portlet.tags.NoSuchAssetException,
169: com.liferay.portlet.tags.NoSuchEntryException;
170:
171: public void setTagsAssets(long pk, java.util.List tagsAssets)
172: throws com.liferay.portal.SystemException,
173: com.liferay.portlet.tags.NoSuchAssetException,
174: com.liferay.portlet.tags.NoSuchEntryException;
175: }
|