Update project structure to org.onap
[dmaap/datarouter.git] / datarouter-prov / src / main / java / org / onap / dmaap / datarouter / provisioning / beans / Loadable.java
diff --git a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/Loadable.java b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/Loadable.java
new file mode 100644 (file)
index 0000000..957d71d
--- /dev/null
@@ -0,0 +1,65 @@
+/*******************************************************************************\r
+ * ============LICENSE_START==================================================\r
+ * * org.onap.dmaap\r
+ * * ===========================================================================\r
+ * * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
+ * * ===========================================================================\r
+ * * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * * you may not use this file except in compliance with the License.\r
+ * * You may obtain a copy of the License at\r
+ * * \r
+ *  *      http://www.apache.org/licenses/LICENSE-2.0\r
+ * * \r
+ *  * Unless required by applicable law or agreed to in writing, software\r
+ * * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * * See the License for the specific language governing permissions and\r
+ * * limitations under the License.\r
+ * * ============LICENSE_END====================================================\r
+ * *\r
+ * * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
+ * *\r
+ ******************************************************************************/\r
+\r
+\r
+package org.onap.dmaap.datarouter.provisioning.beans;\r
+\r
+import java.sql.PreparedStatement;\r
+import java.sql.SQLException;\r
+\r
+import org.onap.dmaap.datarouter.provisioning.utils.LogfileLoader;\r
+\r
+/**\r
+ * This interface is used by bean classes that can be loaded into the LOG_RECORDS table using the\r
+ * PreparedStatement at {@link LogfileLoader}.INSERT_SQL.\r
+ *\r
+ * @author Robert Eby\r
+ * @version $Id: Loadable.java,v 1.2 2013/08/06 13:28:33 eby Exp $\r
+ */\r
+public interface Loadable {\r
+       /**\r
+        * Load the 18 fields in the PreparedStatement <i>ps</i>. The fields are:\r
+        * <ol>\r
+        * <li>type (String)</li>\r
+        * <li>event_time (long)</li>\r
+        * <li>publish ID (String)</li>\r
+        * <li>feed ID (int)</li>\r
+        * <li>request URI (String)</li>\r
+        * <li>method (String)</li>\r
+        * <li>content type (String)</li>\r
+        * <li>content length (long)</li>\r
+        * <li>feed File ID (String)</li>\r
+        * <li>remote address (String)</li>\r
+        * <li>user (String)</li>\r
+        * <li>status (int)</li>\r
+        * <li>delivery subscriber id (int)</li>\r
+        * <li>delivery File ID (String)</li>\r
+        * <li>result (int)</li>\r
+        * <li>attempts (int)</li>\r
+        * <li>reason (String)</li>\r
+        * <li>record ID (long)</li>\r
+        * </ol>\r
+        * @param ps the PreparedStatement to load\r
+        */\r
+       public void load(PreparedStatement ps) throws SQLException;\r
+}\r