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