| com.methodhead.persistable.Persistable com.methodhead.event.Event
Event | public class Event extends Persistable implements SiteContextCapable(Code) | | An event. The following fields are defined:
- int sitecontext_id = 0
- Date eventTime = new Date()
- String userName = ""
- String source = ""
- String description = ""
|
Constructor Summary | |
public | Event() | public | Event(DynaClass dynaClass) |
Method Summary | |
public void | deleteAll() Deletes all events for the site context. | public void | deleteBefore(Date date) Deletes all events that occured before date. | public List | getEvents(Date from, Date to, int page, int pageSize) Loads all events between from to in reverse
chronological order; the result set is limited to pageSize events
and the pageth page is returned. | public List | getEvents(Date from, Date to) Loads all events between from to in reverse
chronological order; the result set is limited to pageSize events
and the pageth page is returned. | public SiteContext | getSiteContext() Returns the site context associated with this object; if no site context
has been set, the default context (as returned by
com.methodhead.sitecontext.SiteContext.getDefaultContextSiteContext.getDefaultContext() ) is returned. | public void | log(String userName, String source, String description) Logs an event. | public static void | log(SiteContext siteContext, String userName, String source, String description) Logs an event. | public void | log(String description) | public static void | log(SiteContext siteContext, String description) | public void | saveNew() Sets sitecontext_id before calling super-class method. | public void | setSiteContext(SiteContext siteContext) |
Event | public Event(DynaClass dynaClass)(Code) | | |
deleteAll | public void deleteAll()(Code) | | Deletes all events for the site context.
|
deleteBefore | public void deleteBefore(Date date)(Code) | | Deletes all events that occured before date.
|
getEvents | public List getEvents(Date from, Date to, int page, int pageSize)(Code) | | Loads all events between from to in reverse
chronological order; the result set is limited to pageSize events
and the pageth page is returned. If from or
to, the result set in not bounded in that direction.
|
getEvents | public List getEvents(Date from, Date to)(Code) | | Loads all events between from to in reverse
chronological order; the result set is limited to pageSize events
and the pageth page is returned. If from or
to, the result set in not bounded in that direction.
|
log | public void log(String description)(Code) | | Logs an event; userName and source default to empty
strings;
|
log | public static void log(SiteContext siteContext, String description)(Code) | | Logs an event; userName and source default to empty
strings;
|
saveNew | public void saveNew()(Code) | | Sets sitecontext_id before calling super-class method.
|
Methods inherited from com.methodhead.persistable.Persistable | public static void deleteAll(DynaClass dynaClass, String whereClause) throws PersistableException(Code)(Java Doc) public void deleteAll(String whereClause) throws PersistableException(Code)(Java Doc) public boolean getBoolean(String property)(Code)(Java Doc) public Date getDate(String property)(Code)(Java Doc) public double getDouble(String property)(Code)(Java Doc) public int getInt(String property)(Code)(Java Doc) public static String getSqlLiteral(String value)(Code)(Java Doc) public static String getSqlLiteral(Boolean value)(Code)(Java Doc) public static String getSqlLiteral(Date value)(Code)(Java Doc) protected String getSqlLiteral(DynaProperty dynaProperty)(Code)(Java Doc) public String getString(String property)(Code)(Java Doc) public void load(String whereClause)(Code)(Java Doc) public static List loadAll(DynaClass dynaClass, String whereClause, String orderByClause)(Code)(Java Doc) public List loadAll(String whereClause, String orderByClause)(Code)(Java Doc) public void save(String whereClause) throws PersistableException(Code)(Java Doc) public void saveNew()(Code)(Java Doc) public void setAsObject(String property, Object value)(Code)(Java Doc) public void setAsString(String property, String value)(Code)(Java Doc) public void setBoolean(String property, boolean value)(Code)(Java Doc) public void setDate(String property, Date value)(Code)(Java Doc) public void setDouble(String property, double value)(Code)(Java Doc) public void setInt(String property, int value)(Code)(Java Doc) protected static void setProperty(DynaBean persistable, DynaProperty dynaProperty, ResultSet rs)(Code)(Java Doc) public void setString(String property, String value)(Code)(Java Doc)
|
|
|