Merge "Sonar Fix: MiscID.java"
diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/MiscID.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/MiscID.java
index 35f03c7..4d46c20 100644
--- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/MiscID.java
+++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/MiscID.java
@@ -53,6 +53,7 @@
public String sponsor;
public String created;
public String renewal;
+ public static String SELECT_QUERY = "SELECT ";
private static final String FIELD_STRING = "id,created,sponsor,renewal";
@@ -85,15 +86,15 @@
public static void load(Trans trans, Session session ) {
- load(trans, session,"SELECT " + FIELD_STRING + " FROM authz.miscid;",data);
+ load(trans, session,SELECT_QUERY + FIELD_STRING + " FROM authz.miscid;",data);
}
public static void load(Trans trans, Session session, Map<String,MiscID> map ) {
- load(trans, session,"SELECT " + FIELD_STRING + " FROM authz.miscid;",map);
+ load(trans, session,SELECT_QUERY + FIELD_STRING + " FROM authz.miscid;",map);
}
public static void loadOne(Trans trans, Session session, String id ) {
- load(trans, session,"SELECT " + FIELD_STRING + " FROM authz.miscid WHERE id ='" + id + "';", data);
+ load(trans, session,SELECT_QUERY + FIELD_STRING + " FROM authz.miscid WHERE id ='" + id + "';", data);
}
public static void load(Trans trans, Session session, String query, Map<String,MiscID> map) {