01: /*
02: * Copyright (c) 2003 - 2007 OpenSubsystems s.r.o. Slovak Republic. All rights reserved.
03: *
04: * Project: OpenChronicle
05: *
06: * $Id: EntryFactory.java,v 1.4 2007/02/20 02:14:50 bastafidli Exp $
07: *
08: * This program is free software; you can redistribute it and/or modify
09: * it under the terms of the GNU General Public License as published by
10: * the Free Software Foundation; version 2 of the License.
11: *
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15: * GNU General Public License for more details.
16: *
17: * You should have received a copy of the GNU General Public License
18: * along with this program; if not, write to the Free Software
19: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20: */
21:
22: package org.opensubsystems.blog.persist;
23:
24: import org.opensubsystems.blog.data.Entry;
25: import org.opensubsystems.core.error.OSSException;
26: import org.opensubsystems.core.persist.ModifiableDataFactory;
27: import org.opensubsystems.patterns.listdata.persist.ListFactory;
28:
29: /**
30: * This interface defines methods to create, retrieve and manipulate entries
31: * in the persistance store.
32: *
33: * @version $Id: EntryFactory.java,v 1.4 2007/02/20 02:14:50 bastafidli Exp $
34: * @author Miro Halas
35: * @code.reviewer Miro Halas
36: * @code.reviewed Initial revision
37: */
38: public interface EntryFactory extends ModifiableDataFactory,
39: ListFactory {
40: /**
41: * Get last added entry added to the specified blog
42: *
43: * @param iBlogId - id of the blog to get entry from
44: * @return Entry - last added entry or null if no entry couldn't be found
45: * @throws OSSException - an error has occured
46: */
47: Entry getLast(int iBlogId) throws OSSException;
48: }
|