X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=auth%2Fauth-batch%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faaf%2Fauth%2Fbatch%2Fhelpers%2FNsAttrib.java;h=53b36170b1a8c6d85b4940c6c632da6ef61d2f50;hb=78ccdcc1d1c29760e4cf833f94df62e1c5aa733f;hp=f5e36fa160c6ac40c6c7a6b81ddcd286082e3815;hpb=8748d6d6d0c654134712a26fa795520d895ca878;p=aaf%2Fauthz.git diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/NsAttrib.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/NsAttrib.java index f5e36fa1..53b36170 100644 --- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/NsAttrib.java +++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/NsAttrib.java @@ -9,9 +9,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -38,15 +38,8 @@ public class NsAttrib { public final String ns; public final String key; public final String value; - - - public NsAttrib(String ns, String key, String value) { - this.ns = ns; - this.key = key; - this.value = value; - } - - public static Creator v2_0_11 = new Creator() { + + public static final Creator v2_0_11 = new Creator() { @Override public NsAttrib create(Row row) { return new NsAttrib(row.getString(0), row.getString(1), row.getString(2)); @@ -57,7 +50,14 @@ public class NsAttrib { return "select ns,key,value from authz.ns_attrib"; } }; - + + + public NsAttrib(String ns, String key, String value) { + this.ns = ns; + this.key = key; + this.value = value; + } + public static void load(Trans trans, Session session, Creator creator, Visitor visitor) { trans.info().log( "query: " + creator.select() ); ResultSet results;