org.davesag.generica.peer
Class ContentPeer
java.lang.Object
org.davesag.generica.peer.ContentPeer
- public class ContentPeer
- extends Object
This peer manipulates Content
hibernate.
- Since:
- Generica 1.0
- Version:
- CVS Revision $Id: ContentPeer.java,v 1.4 2004/03/30 13:00:41 davesag Exp $
- Author:
- Dave Sag
http://www.davesag.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentPeer
public ContentPeer()
loadLatest
public static Content loadLatest(Session sess,
Locale loc,
String classname)
- Loads the most recently modified
Content optionally using
the locale as a qualifier.
- Parameters:
sess - The Hiberante Session.loc - The Locale we are interested in, or null if we don't
care about locale.classname - The specific Content you want.
- Returns:
- A piece of
Content or null if there
is none.
- Throws:
RuntimeException - if the params are invalid.
loadLatestForDate
public static Content loadLatestForDate(Session sess,
Locale loc,
Date date,
String classname)
- Loads the most recently modified
Content created on the
date given and optionally using the locale as a qualifier.
- Parameters:
sess - The Hiberante Session.loc - The Locale we are interested in, or null if we don't
care about locale.date - The date we are interested in. defaaults to today if
no date supplied.classname - The specific Content you want.
- Returns:
- A piece of
Content or null if there
is none.
- Throws:
RuntimeException - if the params are invalid.
Dave Sag Generica API version 0.5.9 - (prerelease) Copyright © 2003 - 2004 Dave Sag.