X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=datarouter-prov%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fdmaap%2Fdatarouter%2Fprovisioning%2Fbeans%2FSyncable.java;h=5f9235b2bfcd35e3755967d0ea9ee360145691c5;hb=bc1df610cddfb558cf6bde90c269b4af59768648;hp=8e6b9c9cb73705c0a43b07ddfed68184d2c03e28;hpb=e4b20cc6f7c31f48ddd0de5bcd054b09a35cd510;p=dmaap%2Fdatarouter.git diff --git a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/Syncable.java b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/Syncable.java index 8e6b9c9c..5f9235b2 100644 --- a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/Syncable.java +++ b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/Syncable.java @@ -7,9 +7,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. @@ -36,22 +36,24 @@ import org.json.JSONObject; * @author Robert Eby * @version $Id: Syncable.java,v 1.1 2013/07/05 13:48:05 eby Exp $ */ + public abstract class Syncable implements Deleteable, Insertable, Updateable, JSONable { - @Override - abstract public JSONObject asJSONObject(); + @Override + public abstract JSONObject asJSONObject(); - @Override - abstract public boolean doUpdate(Connection c); + @Override + public abstract boolean doUpdate(Connection conn); - @Override - abstract public boolean doInsert(Connection c); + @Override + public abstract boolean doInsert(Connection conn); - @Override - abstract public boolean doDelete(Connection c); + @Override + public abstract boolean doDelete(Connection conn); - /** - * Get the "natural key" for this object type, as a String. - * @return the key - */ - abstract public String getKey(); + /** + * Get the "natural key" for this object type, as a String. + * + * @return the key + */ + public abstract String getKey(); }