FileDocCategorySizeDatePackage
RemoveComment.javaAPI DocExample1017Mon Mar 31 23:08:52 BST 2003org.dasein.gb.persist

RemoveComment

public class RemoveComment extends org.dasein.persist.Execution

Fields Summary
private static final String
DELETE
private static final int
COMMENT_ID
Constructors Summary
Methods Summary
public java.lang.StringgetDataSource()

        return "jdbc/kyra";
    
public static org.dasein.gb.persist.RemoveCommentgetInstance()

        return (RemoveComment)Execution.getInstance(RemoveComment.class);
    
public java.lang.StringgetStatement()

        return DELETE;
    
public java.util.HashMaprun()

    
          
        long cid = ((Long)data.get(Comment.COMMENT_ID)).longValue();

        statement.setLong(COMMENT_ID, cid);
        if( statement.executeUpdate() != 1 ) {
            throw new PersistenceException("Bizarre number of rows deleted.");
        }
        return null;