comparison flys-aft/src/main/java/de/intevation/db/SymbolicStatement.java @ 4736:b195fede1c3b

Remove trailing whitespace.
author Sascha L. Teichmann <teichmann@intevation.de>
date Wed, 02 Jan 2013 13:18:31 +0100
parents 981de0b77c6b
children f939e1e6cfa4
comparison
equal deleted inserted replaced
4735:94b39073f0f7 4736:b195fede1c3b
44 log.error("cannot close statement", sqle); 44 log.error("cannot close statement", sqle);
45 } 45 }
46 } 46 }
47 47
48 public Instance setInt(String key, int value) 48 public Instance setInt(String key, int value)
49 throws SQLException 49 throws SQLException
50 { 50 {
51 List<Integer> pos = positions.get(key.toLowerCase()); 51 List<Integer> pos = positions.get(key.toLowerCase());
52 if (pos != null) { 52 if (pos != null) {
53 for (Integer p: pos) { 53 for (Integer p: pos) {
54 stmnt.setInt(p, value); 54 stmnt.setInt(p, value);
57 57
58 return this; 58 return this;
59 } 59 }
60 60
61 public Instance setString(String key, String value) 61 public Instance setString(String key, String value)
62 throws SQLException 62 throws SQLException
63 { 63 {
64 List<Integer> pos = positions.get(key.toLowerCase()); 64 List<Integer> pos = positions.get(key.toLowerCase());
65 if (pos != null) { 65 if (pos != null) {
66 for (Integer p: pos) { 66 for (Integer p: pos) {
67 stmnt.setString(p, value); 67 stmnt.setString(p, value);
69 } 69 }
70 return this; 70 return this;
71 } 71 }
72 72
73 public Instance setObject(String key, Object value) 73 public Instance setObject(String key, Object value)
74 throws SQLException 74 throws SQLException
75 { 75 {
76 List<Integer> pos = positions.get(key.toLowerCase()); 76 List<Integer> pos = positions.get(key.toLowerCase());
77 if (pos != null) { 77 if (pos != null) {
78 for (Integer p: pos) { 78 for (Integer p: pos) {
79 stmnt.setObject(p, value); 79 stmnt.setObject(p, value);
81 } 81 }
82 return this; 82 return this;
83 } 83 }
84 84
85 public Instance setTimestamp(String key, Timestamp value) 85 public Instance setTimestamp(String key, Timestamp value)
86 throws SQLException 86 throws SQLException
87 { 87 {
88 List<Integer> pos = positions.get(key.toLowerCase()); 88 List<Integer> pos = positions.get(key.toLowerCase());
89 if (pos != null) { 89 if (pos != null) {
90 for (Integer p: pos) { 90 for (Integer p: pos) {
91 stmnt.setTimestamp(p, value); 91 stmnt.setTimestamp(p, value);
93 } 93 }
94 return this; 94 return this;
95 } 95 }
96 96
97 public Instance setDouble(String key, double value) 97 public Instance setDouble(String key, double value)
98 throws SQLException 98 throws SQLException
99 { 99 {
100 List<Integer> pos = positions.get(key.toLowerCase()); 100 List<Integer> pos = positions.get(key.toLowerCase());
101 if (pos != null) { 101 if (pos != null) {
102 for (Integer p: pos) { 102 for (Integer p: pos) {
103 stmnt.setDouble(p, value); 103 stmnt.setDouble(p, value);
105 } 105 }
106 return this; 106 return this;
107 } 107 }
108 108
109 public Instance setLong(String key, long value) 109 public Instance setLong(String key, long value)
110 throws SQLException 110 throws SQLException
111 { 111 {
112 List<Integer> pos = positions.get(key.toLowerCase()); 112 List<Integer> pos = positions.get(key.toLowerCase());
113 if (pos != null) { 113 if (pos != null) {
114 for (Integer p: pos) { 114 for (Integer p: pos) {
115 stmnt.setLong(p, value); 115 stmnt.setLong(p, value);
117 } 117 }
118 return this; 118 return this;
119 } 119 }
120 120
121 public Instance setNull(String key, int sqlType) 121 public Instance setNull(String key, int sqlType)
122 throws SQLException 122 throws SQLException
123 { 123 {
124 List<Integer> pos = positions.get(key.toLowerCase()); 124 List<Integer> pos = positions.get(key.toLowerCase());
125 if (pos != null) { 125 if (pos != null) {
126 for (Integer p: pos) { 126 for (Integer p: pos) {
127 stmnt.setNull(p, sqlType); 127 stmnt.setNull(p, sqlType);

http://dive4elements.wald.intevation.org