adding doc
authorgrok <grok>
Thu, 28 Jul 2005 21:44:01 +0000 (21:44 +0000)
committergrok <grok>
Thu, 28 Jul 2005 21:44:01 +0000 (21:44 +0000)
source/mir/bundle/Bundle.java
source/mir/entity/Entity.java
source/mir/entity/adapter/EntityAdapter.java

index cec44e4..3e46b85 100755 (executable)
@@ -31,6 +31,10 @@ package mir.bundle;
 
 import java.util.List;
 
+/**
+ * bundles are key/value pairs in a text file, used for config 
+ * and internationalization
+ */
 public interface Bundle {
   public String getValue(String aKey, List anArguments);
 }
index eb4b8b1..498d972 100755 (executable)
@@ -39,7 +39,7 @@ import mir.storage.DatabaseFailure;
  * An <code>Entity</code> represents a persistent data object, typically
  *   stored in a database.<p>
  *
- * @version $Id: Entity.java,v 1.21.2.12 2005/03/26 11:26:23 zapata Exp $
+ * @version $Id: Entity.java,v 1.21.2.13 2005/07/28 21:44:01 grok Exp $
  */
 
 public interface Entity {
@@ -64,7 +64,7 @@ public interface Entity {
   public void setId(String id);
 
   /**
-   * Insers Entity into the database via Database
+   * Inserts Entity into the database via Database
    * @return Primary Key of the Entity
    * @exception DatabaseExc
    */
index 4314dc8..2fff4d2 100755 (executable)
@@ -39,6 +39,16 @@ import java.util.Set;
 import mir.entity.Entity;
 import mir.util.CachingRewindableIterator;
 
+/** An EntityAdapter is a wrapper around an Entity meant to add
+ * missing functionality. It provides "calculated fields" 
+ * which mir installations can extend reasonably easilly.
+ * "calculated fields" compute values that are not directly present
+ * in the db table. For example:  
+ * a field to have the number of comments associated with an article;
+ * a field to get the list of hidden comments associated with an article;
+ * etc.
+ * <p>This whole framework is meant to be replaced by hibernate</p>
+ */
 public class EntityAdapter implements Map {
   private Entity entity;
   private EntityAdapterDefinition definition;