org.opensubsystems.blog.persist
Interface EntryFactory

All Superinterfaces:
org.opensubsystems.core.persist.BasicDataFactory, org.opensubsystems.core.persist.DataFactory, org.opensubsystems.core.persist.ModifiableDataFactory
All Known Implementing Classes:
EntryDatabaseFactory

public interface EntryFactory
extends org.opensubsystems.core.persist.ModifiableDataFactory

This interface defines methods to create, retrieve and manipulate entries in the persistance store.

Version:
$Id: EntryFactory.java,v 1.4 2007/01/07 06:04:30 bastafidli Exp $
Author:
Miro Halas
Code reviewer:
Miro Halas
Code reviewed:
Initial revision

Method Summary
 java.util.List getAll(int iBlogId)
          Get all entries from blog
 Entry getLast(int iBlogId)
          Get last added entry added to the specified blog
 
Methods inherited from interface org.opensubsystems.core.persist.ModifiableDataFactory
save
 
Methods inherited from interface org.opensubsystems.core.persist.BasicDataFactory
create, create, delete
 
Methods inherited from interface org.opensubsystems.core.persist.DataFactory
get, getDataType
 

Method Detail

getAll

java.util.List getAll(int iBlogId)
                      throws org.opensubsystems.core.error.OSSException
Get all entries from blog

Parameters:
iBlogId - - ID of the blog to get entry from
Returns:
List - list of entries sorted from the most recent to the oldest one or null if none exists
Throws:
org.opensubsystems.core.error.OSSException - - an error has occured

getLast

Entry getLast(int iBlogId)
              throws org.opensubsystems.core.error.OSSException
Get last added entry added to the specified blog

Parameters:
iBlogId - - id of the blog to get entry from
Returns:
Entry - last added entry or null if no entry couldn't be found
Throws:
org.opensubsystems.core.error.OSSException - - an error has occured


Copyright © 2003 - 2007 OpenSubsystems s.r.o.