View Javadoc

1   package com.melloware.jukes.db.audit;
2   
3   import java.util.Date;
4   
5   /**
6    * A marker interface for auditable persistent domain classes.  Classes that
7    * implement this interface will have their user and date information updated
8    * on creation or modification in the database using the Hibernate Interceptor
9    * called AuditInterceptor.
10   * <p>
11   * Copyright (c) 1999-2007 Melloware, Inc. <http://www.melloware.com>
12   * @author Emil A. Lefkof III <info@melloware.com>
13   * @version 4.0
14   * @see com.melloware.jukes.db.audit.AuditInterceptor
15   */
16  public interface Auditable {
17  
18      public Date getCreatedDate();
19  
20      public String getCreatedUser();
21  
22      public Long getId();
23  
24      public Date getModifiedDate();
25  
26      public String getModifiedUser();
27  
28      public void setCreatedDate(Date createdDate);
29  
30      public void setCreatedUser(String createdUser);
31  
32      public void setModifiedDate(Date modifiedDate);
33  
34      public void setModifiedUser(String modifiedUser);
35  }