diff options
Diffstat (limited to 'org/madore/damlengine/WeblogSummary.java')
-rw-r--r-- | org/madore/damlengine/WeblogSummary.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/org/madore/damlengine/WeblogSummary.java b/org/madore/damlengine/WeblogSummary.java index 662c1d2..6c2dc4c 100644 --- a/org/madore/damlengine/WeblogSummary.java +++ b/org/madore/damlengine/WeblogSummary.java @@ -14,18 +14,18 @@ public final class WeblogSummary { String date; String lang; String title; String titleXml; - String doSinglePage; + String specialName; boolean hasCut; HashSet<String> catSet; public EntrySummary(int id, String date, String lang, String title, String titleXml, - String doSinglePage, boolean hasCut) { + String specialName, boolean hasCut) { this.id = id; this.date = date; this.lang = lang; this.title = title; this.titleXml = titleXml; - this.doSinglePage = doSinglePage; + this.specialName = specialName; this.hasCut = hasCut; this.catSet = null; } @@ -51,7 +51,7 @@ public final class WeblogSummary { singleton.obtainedTime = System.currentTimeMillis(); final Connection conn = WeblogDatabaseConnection.getConnection(); final PreparedStatement selSt - = conn.prepareStatement("SELECT id , edate , lang , title , title_xml , do_single_page , has_cut FROM entries"); + = conn.prepareStatement("SELECT id , edate , lang , title , title_xml , special_name , has_cut FROM entries"); final ResultSet selRes = selSt.executeQuery(); while ( selRes.next() ) { int id = selRes.getInt(1); @@ -59,9 +59,9 @@ public final class WeblogSummary { String lang = selRes.getString(3); String title = selRes.getString(4); String titleXml = selRes.getString(5); - String doSinglePage = selRes.getString(6); + String specialName = selRes.getString(6); boolean hasCut = selRes.getBoolean(7); - singleton.entries.put(id, new EntrySummary(id, date, lang, title, titleXml, doSinglePage, hasCut)); + singleton.entries.put(id, new EntrySummary(id, date, lang, title, titleXml, specialName, hasCut)); } final PreparedStatement catSt = conn.prepareStatement("SELECT id , code FROM incat"); |