Adding JMCR-Stable version
[Benchmarks_CSolver.git] / JMCR-Stable / real-world application / jigsaw / src / org / w3c / tools / jdbc / JdbcBeanInterface.java
diff --git a/JMCR-Stable/real-world application/jigsaw/src/org/w3c/tools/jdbc/JdbcBeanInterface.java b/JMCR-Stable/real-world application/jigsaw/src/org/w3c/tools/jdbc/JdbcBeanInterface.java
new file mode 100644 (file)
index 0000000..fb2baf2
--- /dev/null
@@ -0,0 +1,121 @@
+// JdbcBeanInterface.java\r
+// $Id: JdbcBeanInterface.java,v 1.1 2010/06/15 12:27:30 smhuang Exp $\r
+// (c) COPYRIGHT MIT, INRIA and Keio, 2000.\r
+// Please first read the full copyright statement in file COPYRIGHT.html\r
+package org.w3c.tools.jdbc; \r
+\r
+import java.beans.PropertyChangeSupport;\r
+import java.beans.PropertyChangeListener;\r
+\r
+/**\r
+ * @version $Revision: 1.1 $\r
+ * @author  Benoît Mahé (bmahe@w3.org)\r
+ */\r
+public interface JdbcBeanInterface {\r
+\r
+    /**\r
+     * Set the JDBC driver\r
+     * @param jdbcDriver the jdbc driver\r
+     */\r
+    public void setJdbcDriver(String jdbcDriver);\r
+\r
+    /**\r
+     * Get the JDBC driver\r
+     * @return the jdbc driver\r
+     */\r
+    public String getJdbcDriver();\r
+\r
+    /**\r
+     * Set the Jdbc username property\r
+     * @param jdbcUser the username\r
+     */\r
+    public void setJdbcUser(String JdbcUser);\r
+\r
+    /**\r
+     * get the Jdbc username property\r
+     * @return the Jdbc username property\r
+     */\r
+    public String getJdbcUser();\r
+\r
+    /**\r
+     * Set the password property\r
+     * @param jdbcPassword the password\r
+     */\r
+    public void setJdbcPassword(String jdbcPassword);\r
+\r
+    /**\r
+     * Get the password property\r
+     * @return the Jdbc password \r
+     */\r
+    public String getJdbcPassword();\r
+\r
+    /**\r
+     * Set the Jdbc URI\r
+     * @param jdbcURI the URI (ie: <b>jdbc:protocol://host/db</b>)\r
+     */\r
+    public void setJdbcURI(String jdbcURI);\r
+\r
+    /**\r
+     * Get the Jdbc URI\r
+     * @return the URI (ie: <b>jdbc:protocol://host/db</b>)\r
+     */\r
+    public String getJdbcURI();\r
+\r
+    /**\r
+     * Set the max number os simultaneous Jdbc connections\r
+     * @param maxConn the max number of connections\r
+     */\r
+    public void setMaxConn(int maxConn);\r
+\r
+    /**\r
+     * Get the max number os simultaneous Jdbc connections\r
+     * @return the max number of connections\r
+     */\r
+    public int getMaxConn();\r
+\r
+    /**\r
+     * Set the name of the SQL table\r
+     * @param jdbcTable the SQL table name\r
+     */\r
+    public void setJdbcTable(String jdbcTable);\r
+\r
+    /**\r
+     * Return the name of the SQL table\r
+     * @return the SQL table name\r
+     */\r
+    public String getJdbcTable();\r
+\r
+    /**\r
+     * Set the read-only flag\r
+     * @param readonly\r
+     */\r
+    public void setReadOnly(boolean readonly);\r
+\r
+    /**\r
+     * Is this table read-only? (default is false)\r
+     * @return a boolean\r
+     */\r
+    public boolean getReadOnly();\r
+\r
+    public JdbcBeanInterface getDefault();\r
+\r
+    /**\r
+     * Get our SQL serializer\r
+     * @return a JdbcBeanSerializer instance\r
+     */\r
+    public JdbcBeanSerializer getSerializer();\r
+\r
+    /**\r
+     * Add a PropertyChangeListener to the listener list. The listener \r
+     * is registered for all properties.\r
+     * @param listener The PropertyChangeListener to be added\r
+     */\r
+    public void addPropertyChangeListener(PropertyChangeListener listener);\r
+\r
+    /**\r
+     * Remove a PropertyChangeListener to the listener list. \r
+     * @param listener The PropertyChangeListener to be removed.\r
+     */\r
+    public void removePropertyChangeListener(PropertyChangeListener listener);\r
+\r
+}\r