This is an automated email from the ASF dual-hosted git repository.
dschneider pushed a commit to branch feature/GEODE-3781
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/feature/GEODE-3781 by this
push:
new ad900a1 spotless
ad900a1 is described below
commit ad900a11523f1095859b328d7a35514e9f2afb98
Author: Darrel Schneider <[email protected]>
AuthorDate: Wed Oct 25 14:35:40 2017 -0700
spotless
---
.../java/org/apache/geode/connectors/jdbc/JDBCManager.java | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git
a/geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/JDBCManager.java
b/geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/JDBCManager.java
index c115b57..15daaed 100644
---
a/geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/JDBCManager.java
+++
b/geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/JDBCManager.java
@@ -128,13 +128,14 @@ public class JDBCManager {
columnValues.append(")");
return columnNames.append(columnValues).toString();
}
-
+
private Connection getConnection() {
return null; // NYI
}
- private final ConcurrentMap<String, PreparedStatement>
preparedStatementCache = new ConcurrentHashMap<>();
-
+ private final ConcurrentMap<String, PreparedStatement>
preparedStatementCache =
+ new ConcurrentHashMap<>();
+
private PreparedStatement getQueryStatement(List<ColumnValue> columnList,
String query) {
return preparedStatementCache.computeIfAbsent(query, k -> {
Connection con = getConnection();
@@ -145,12 +146,12 @@ public class JDBCManager {
}
});
}
-
+
private List<ColumnValue> getColumnToValueList(String tableName, Object key,
PdxInstance value,
Operation operation) {
Set<String> keyColumnNames = getKeyColumnNames(tableName);
List<String> fieldNames = value.getFieldNames();
- List<ColumnValue> result = new ArrayList<>(fieldNames.size()+1);
+ List<ColumnValue> result = new ArrayList<>(fieldNames.size() + 1);
for (String fieldName : fieldNames) {
String columnName = mapFieldNameToColumnName(fieldName, tableName);
if (columnName == null) {
@@ -158,7 +159,8 @@ public class JDBCManager {
if (isFieldExcluded(fieldName)) {
continue;
} else {
- throw new IllegalStateException("No column on table " + tableName +
" was found for the field named " + fieldName);
+ throw new IllegalStateException(
+ "No column on table " + tableName + " was found for the field
named " + fieldName);
}
}
boolean isKey = keyColumnNames.contains(columnName);
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].