private static DatabaseContent instance;
private static EntityRelation relationComments;
- private static EntityRelation relationFeature;
// Contructors / Singleton
relationComments =
new EntityRelation("id", "to_media", DatabaseComment.getInstance(), EntityRelation.TO_MANY);
- relationFeature =
- new EntityRelation("id", "to_feature", DatabaseFeature.getInstance(), EntityRelation.TO_ONE);
theEntityClass = mircoders.entity.EntityContent.class;
}
executeUpdate(stmt,sql);
logger.debug("set unproduced: "+where);
}
- catch (Exception e) {_throwStorageObjectException(e, "-- set unproduced failed");}
+ catch (Exception e) {
+ _throwStorageObjectException(e, "-- set unproduced failed");
+ }
finally { freeConnection(con,stmt);}
}
}
/**
- * returns the features that belong to the article (via entityrelation)
+ *
+ * @param id
+ * @return
+ * @throws StorageObjectFailure
*/
- public EntityList getFeature(EntityContent entC) throws StorageObjectFailure {
- return relationFeature.getMany(entC);
- }
public boolean delete(String id) throws StorageObjectFailure
{