FileDocCategorySizeDatePackage
CommentDAO.javaAPI DocExample1474Mon Mar 31 23:08:52 BST 2003org.dasein.gb.persist

CommentDAO

public abstract class CommentDAO extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidcreate(java.util.HashMap data)

        CreateComment.getInstance().execute(data);
    
public static java.util.ArrayListgetApproved()

        HashMap data = new HashMap();

        data.put(Comment.APPROVED, new Boolean(true));
        data = ListComments.getInstance().execute(data);
        return (ArrayList)data.get(ListComments.COMMENTS);
    
public static java.util.HashMapgetComment(long cid)

        HashMap data = new HashMap();

        data.put(Comment.COMMENT_ID, new Long(cid));
        data = LoadComment.getInstance().execute(data);
        return data;
    
public static java.util.ArrayListgetPending()

        HashMap data = new HashMap();

        data.put(Comment.APPROVED, new Boolean(false));
        data = ListComments.getInstance().execute(data);
        return (ArrayList)data.get(ListComments.COMMENTS);
    
public static voidremove(java.util.HashMap data)

        RemoveComment.getInstance().execute(data);
    
public static voidsave(java.util.HashMap data)

        SaveComment.getInstance().execute(data);