* Base class the entities are derived from. Provides base functionality of
* an entity.
*
- * @version $Id: AbstractEntity.java,v 1.8.2.2 2004/02/08 21:05:00 zapata Exp $
+ * @version $Id: AbstractEntity.java,v 1.8.2.3 2004/11/21 22:07:13 zapata Exp $
*/
public class AbstractEntity implements Entity {
- protected static MirPropertiesConfiguration configuration;
+ protected static MirPropertiesConfiguration configuration = MirPropertiesConfiguration.instance();
protected Map values;
protected StorageObject storageObject;
protected LoggerWrapper logger;
- static {
- try {
- configuration = MirPropertiesConfiguration.instance();
- }
- catch (PropertiesConfigExc e) {
- throw new RuntimeException(e.getMessage());
- }
- }
-
public AbstractEntity() {
logger = new LoggerWrapper("Entity");
* Constructor
* @param StorageObject The StorageObject of the Entity.
*/
-
public AbstractEntity(StorageObject StorageObject) {
this();
* Returns the field names of the Entity
*/
public List getFieldNames() throws StorageObjectFailure {
- return storageObject.getFields();
+ return storageObject.getFieldNames();
}
/** Returns whether fieldName is a valid field name of this Entity.