summaryrefslogtreecommitdiffstats
path: root/org/madore/damlengine/WeblogSelect.java
diff options
context:
space:
mode:
Diffstat (limited to 'org/madore/damlengine/WeblogSelect.java')
-rw-r--r--org/madore/damlengine/WeblogSelect.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org/madore/damlengine/WeblogSelect.java b/org/madore/damlengine/WeblogSelect.java
index 9e1c6a2..8ebdaf4 100644
--- a/org/madore/damlengine/WeblogSelect.java
+++ b/org/madore/damlengine/WeblogSelect.java
@@ -33,6 +33,10 @@ public final class WeblogSelect {
templateResourceName = "weblog-recent-template.daml";
selSt = conn.prepareStatement("SELECT id , content FROM entries ORDER BY id DESC LIMIT ?");
selSt.setInt(1,((Context.WeblogRecentSelectionContext)wsc).count);
+ } else if ( wsc instanceof Context.WeblogSingleSelectionContext ) {
+ templateResourceName = "weblog-single-template.daml";
+ selSt = conn.prepareStatement("SELECT id , content FROM entries WHERE id=?");
+ selSt.setInt(1,((Context.WeblogSingleSelectionContext)wsc).number);
} else
throw new IllegalArgumentException("don't know how to perform this selection");