diff options
author | David A. Madore <david+git@madore.org> | 2014-10-12 21:03:33 +0200 |
---|---|---|
committer | David A. Madore <david+git@madore.org> | 2014-10-12 21:03:33 +0200 |
commit | 6c4cab0a9f5dbc019d81eeaeae46c8f17c7bdca7 (patch) | |
tree | dc5c645bc34c95feb9fd1b26cb670880e2a72dcf /org/madore/damlengine/WeblogSummary.java | |
parent | af3d007e78246144f2f50aaadc05f81bae000f84 (diff) | |
download | damlengine-6c4cab0a9f5dbc019d81eeaeae46c8f17c7bdca7.tar.gz damlengine-6c4cab0a9f5dbc019d81eeaeae46c8f17c7bdca7.tar.bz2 damlengine-6c4cab0a9f5dbc019d81eeaeae46c8f17c7bdca7.zip |
Rename the "do_single_page" database column to "special_name", and update Java variables accordingly.
The SQL command is:
ALTER TABLE entries RENAME do_single_page TO special_name ;
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"); |