voji.db
Class Database
java.lang.Object
|
+--voji.db.Database
- public class Database
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Database
public Database()
addDatabaseListener
public static void addDatabaseListener(DatabaseListener listener)
fireDatabaseChanged
protected static void fireDatabaseChanged()
connect
public static void connect(java.sql.Connection newConnection)
throws java.sql.SQLException
java.sql.SQLException
connect
public static void connect(java.lang.String driver,
java.lang.String url,
java.lang.String user,
java.lang.String password)
throws java.lang.ClassNotFoundException,
java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLException
connect
public static void connect(java.lang.String url,
java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
java.sql.SQLException
connect
public static void connect(java.util.Properties info)
throws java.lang.ClassNotFoundException,
java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLException
getConnection
public static java.sql.Connection getConnection()
createStatement
public static java.sql.Statement createStatement()
throws java.sql.SQLException
java.sql.SQLException
prepareStatement
public static java.sql.PreparedStatement prepareStatement(java.lang.String sql)
throws java.sql.SQLException
java.sql.SQLException
prepareCall
public static java.sql.CallableStatement prepareCall(java.lang.String sql)
throws java.sql.SQLException
java.sql.SQLException
executeQuery
public static java.sql.ResultSet executeQuery(java.lang.String sql)
throws java.sql.SQLException
java.sql.SQLException
executeUpdate
public static int executeUpdate(java.lang.String sql)
throws java.sql.SQLException
java.sql.SQLException