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);
}
* 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 {
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
*/
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;