1 25 26 29 package net.killingar.forum.internal; 30 31 import java.sql.Timestamp ; 32 33 public class Event extends NamedItemImpl implements OwnerIDItem 34 { 35 public long ownerID = -1, groupID = -1; 36 public Timestamp time, created; 37 public boolean frozen; 38 public String description; 39 40 public Event(long _ID, long _ownerID, long _groupID, String _name, String _description, Timestamp _time, Timestamp _created, boolean _frozen) 41 { 42 super(_ID, _name); 43 description = _description; 44 if ("".equals(description)) 45 description = null; 46 ownerID = _ownerID; 47 groupID = _groupID; 48 time = _time; 49 created = _created; 50 frozen = _frozen; 51 } 52 53 public Event(long _groupID, String _name, String _description, Timestamp _time) 54 { 55 super(-1, _name); 56 description = _description; 57 if ("".equals(description)) 58 description = null; 59 groupID = _groupID; 60 time = _time; 61 } 62 63 public String getDescription() { return description; } 64 public long getOwnerID() { return ownerID; } 65 public long getGroupID() { return groupID; } 66 public Timestamp getTime() { return time; } 67 public Timestamp getCreated() { return created; } 68 public boolean getFrozen() { return frozen; } 69 public String toString() { return "{"+getId()+", name: '"+getName()+"', frozen: "+frozen+"}"; } 70 } | Popular Tags |