--- /dev/null
+/**
+ * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+package com.liferay.contacts.service.persistence;
+
+/**
+ * <a href="CardUtil.java.html"><b><i>View Source</i></b></a>
+ *
+ * @author Peter Shin
+ *
+ */
+public class CardUtil {
+ public static void cacheResult(com.liferay.contacts.model.Card card) {
+ getPersistence().cacheResult(card);
+ }
+
+ public static void cacheResult(
+ java.util.List<com.liferay.contacts.model.Card> cards) {
+ getPersistence().cacheResult(cards);
+ }
+
+ public static void clearCache() {
+ getPersistence().clearCache();
+ }
+
+ public static com.liferay.contacts.model.Card create(long cardId) {
+ return getPersistence().create(cardId);
+ }
+
+ public static com.liferay.contacts.model.Card remove(long cardId)
+ throws com.liferay.contacts.NoSuchCardException,
+ com.liferay.portal.SystemException {
+ return getPersistence().remove(cardId);
+ }
+
+ public static com.liferay.contacts.model.Card remove(
+ com.liferay.contacts.model.Card card)
+ throws com.liferay.portal.SystemException {
+ return getPersistence().remove(card);
+ }
+
+ public static com.liferay.contacts.model.Card update(
+ com.liferay.contacts.model.Card card)
+ throws com.liferay.portal.SystemException {
+ return getPersistence().update(card);
+ }
+
+ public static com.liferay.contacts.model.Card update(
+ com.liferay.contacts.model.Card card, boolean merge)
+ throws com.liferay.portal.SystemException {
+ return getPersistence().update(card, merge);
+ }
+
+ public static com.liferay.contacts.model.Card updateImpl(
+ com.liferay.contacts.model.Card card, boolean merge)
+ throws com.liferay.portal.SystemException {
+ return getPersistence().updateImpl(card, merge);
+ }
+
+ public static com.liferay.contacts.model.Card findByPrimaryKey(long cardId)
+ throws com.liferay.contacts.NoSuchCardException,
+ com.liferay.portal.SystemException {
+ return getPersistence().findByPrimaryKey(cardId);
+ }
+
+ public static com.liferay.contacts.model.Card fetchByPrimaryKey(long cardId)
+ throws com.liferay.portal.SystemException {
+ return getPersistence().fetchByPrimaryKey(cardId);
+ }
+
+ public static java.util.List<com.liferay.contacts.model.Card> findByGroupId(
+ long groupId) throws com.liferay.portal.SystemException {
+ return getPersistence().findByGroupId(groupId);
+ }
+
+ public static java.util.List<com.liferay.contacts.model.Card> findByGroupId(
+ long groupId, int start, int end)
+ throws com.liferay.portal.SystemException {
+ return getPersistence().findByGroupId(groupId, start, end);
+ }
+
+ public static java.util.List<com.liferay.contacts.model.Card> findByGroupId(
+ long groupId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator obc)
+ throws com.liferay.portal.SystemException {
+ return getPersistence().findByGroupId(groupId, start, end, obc);
+ }
+
+ public static com.liferay.contacts.model.Card findByGroupId_First(
+ long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
+ throws com.liferay.contacts.NoSuchCardException,
+ com.liferay.portal.SystemException {
+ return getPersistence().findByGroupId_First(groupId, obc);
+ }
+
+ public static com.liferay.contacts.model.Card findByGroupId_Last(
+ long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
+ throws com.liferay.contacts.NoSuchCardException,
+ com.liferay.portal.SystemException {
+ return getPersistence().findByGroupId_Last(groupId, obc);
+ }
+
+ public static com.liferay.contacts.model.Card[] findByGroupId_PrevAndNext(
+ long cardId, long groupId,
+ com.liferay.portal.kernel.util.OrderByComparator obc)
+ throws com.liferay.contacts.NoSuchCardException,
+ com.liferay.portal.SystemException {
+ return getPersistence().findByGroupId_PrevAndNext(cardId, groupId, obc);
+ }
+
+ public static com.liferay.contacts.model.Card findByG_C_EA(long groupId,
+ long companyId, java.lang.String emailAddress)
+ throws com.liferay.contacts.NoSuchCardException,
+ com.liferay.portal.SystemException {
+ return getPersistence().findByG_C_EA(groupId, companyId, emailAddress);
+ }
+
+ public static com.liferay.contacts.model.Card fetchByG_C_EA(long groupId,
+ long companyId, java.lang.String emailAddress)
+ throws com.liferay.portal.SystemException {
+ return getPersistence().fetchByG_C_EA(groupId, companyId, emailAddress);
+ }
+
+ public static com.liferay.contacts.model.Card fetchByG_C_EA(long groupId,
+ long companyId, java.lang.String emailAddress, boolean retrieveFromCache)
+ throws com.liferay.portal.SystemException {
+ return getPersistence()
+ .fetchByG_C_EA(groupId, companyId, emailAddress,
+ retrieveFromCache);
+ }
+
+ public static java.util.List<Object> findWithDynamicQuery(
+ com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
+ throws com.liferay.portal.SystemException {
+ return getPersistence().findWithDynamicQuery(dynamicQuery);
+ }
+
+ public static java.util.List<Object> findWithDynamicQuery(
+ com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
+ int end) throws com.liferay.portal.SystemException {
+ return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
+ }
+
+ public static java.util.List<com.liferay.contacts.model.Card> findAll()
+ throws com.liferay.portal.SystemException {
+ return getPersistence().findAll();
+ }
+
+ public static java.util.List<com.liferay.contacts.model.Card> findAll(
+ int start, int end) throws com.liferay.portal.SystemException {
+ return getPersistence().findAll(start, end);
+ }
+
+ public static java.util.List<com.liferay.contacts.model.Card> findAll(
+ int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
+ throws com.liferay.portal.SystemException {
+ return getPersistence().findAll(start, end, obc);
+ }
+
+ public static void removeByGroupId(long groupId)
+ throws com.liferay.portal.SystemException {
+ getPersistence().removeByGroupId(groupId);
+ }
+
+ public static void removeByG_C_EA(long groupId, long companyId,
+ java.lang.String emailAddress)
+ throws com.liferay.contacts.NoSuchCardException,
+ com.liferay.portal.SystemException {
+ getPersistence().removeByG_C_EA(groupId, companyId, emailAddress);
+ }
+
+ public static void removeAll() throws com.liferay.portal.SystemException {
+ getPersistence().removeAll();
+ }
+
+ public static int countByGroupId(long groupId)
+ throws com.liferay.portal.SystemException {
+ return getPersistence().countByGroupId(groupId);
+ }
+
+ public static int countByG_C_EA(long groupId, long companyId,
+ java.lang.String emailAddress)
+ throws com.liferay.portal.SystemException {
+ return getPersistence().countByG_C_EA(groupId, companyId, emailAddress);
+ }
+
+ public static int countAll() throws com.liferay.portal.SystemException {
+ return getPersistence().countAll();
+ }
+
+ public static CardPersistence getPersistence() {
+ return _persistence;
+ }
+
+ public void setPersistence(CardPersistence persistence) {
+ _persistence = persistence;
+ }
+
+ private static CardPersistence _persistence;
+}
\ No newline at end of file