001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.Ticket;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       TicketPersistenceImpl
022     * @see       TicketUtil
023     * @generated
024     */
025    public interface TicketPersistence extends BasePersistence<Ticket> {
026            public void cacheResult(com.liferay.portal.model.Ticket ticket);
027    
028            public void cacheResult(
029                    java.util.List<com.liferay.portal.model.Ticket> tickets);
030    
031            public com.liferay.portal.model.Ticket create(long ticketId);
032    
033            public com.liferay.portal.model.Ticket remove(long ticketId)
034                    throws com.liferay.portal.NoSuchTicketException,
035                            com.liferay.portal.kernel.exception.SystemException;
036    
037            public com.liferay.portal.model.Ticket updateImpl(
038                    com.liferay.portal.model.Ticket ticket, boolean merge)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public com.liferay.portal.model.Ticket findByPrimaryKey(long ticketId)
042                    throws com.liferay.portal.NoSuchTicketException,
043                            com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portal.model.Ticket fetchByPrimaryKey(long ticketId)
046                    throws com.liferay.portal.kernel.exception.SystemException;
047    
048            public com.liferay.portal.model.Ticket findByKey(java.lang.String key)
049                    throws com.liferay.portal.NoSuchTicketException,
050                            com.liferay.portal.kernel.exception.SystemException;
051    
052            public com.liferay.portal.model.Ticket fetchByKey(java.lang.String key)
053                    throws com.liferay.portal.kernel.exception.SystemException;
054    
055            public com.liferay.portal.model.Ticket fetchByKey(java.lang.String key,
056                    boolean retrieveFromCache)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    
059            public java.util.List<com.liferay.portal.model.Ticket> findAll()
060                    throws com.liferay.portal.kernel.exception.SystemException;
061    
062            public java.util.List<com.liferay.portal.model.Ticket> findAll(int start,
063                    int end) throws com.liferay.portal.kernel.exception.SystemException;
064    
065            public java.util.List<com.liferay.portal.model.Ticket> findAll(int start,
066                    int end,
067                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
068                    throws com.liferay.portal.kernel.exception.SystemException;
069    
070            public void removeByKey(java.lang.String key)
071                    throws com.liferay.portal.NoSuchTicketException,
072                            com.liferay.portal.kernel.exception.SystemException;
073    
074            public void removeAll()
075                    throws com.liferay.portal.kernel.exception.SystemException;
076    
077            public int countByKey(java.lang.String key)
078                    throws com.liferay.portal.kernel.exception.SystemException;
079    
080            public int countAll()
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    }