org.gcube.vremanagement.vremodeler.db
Class DBInterface

java.lang.Object
  extended by org.gcube.vremanagement.vremodeler.db.DBInterface

public class DBInterface
extends java.lang.Object

Author:
lucio

Constructor Summary
DBInterface()
           
 
Method Summary
static void close()
           
static java.sql.Connection connect()
           
static boolean dbAlreadyCreated()
           
static void deleteAll(java.lang.String table)
           
static void deleteElement(java.lang.String table, java.lang.String whereClause)
           
static void ExecuteUpdate(java.lang.String query)
           
static java.sql.Connection getConnection()
           
static void insertInto(java.lang.String table, java.lang.String[]... rows)
           
static void insertIntoListable(java.lang.String table, Listable... values)
           
static java.sql.ResultSet queryDB(java.lang.String query)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBInterface

public DBInterface()
Method Detail

dbAlreadyCreated

public static boolean dbAlreadyCreated()
Returns:
Throws:
java.sql.SQLException

connect

public static java.sql.Connection connect()
                                   throws java.sql.SQLException
Throws:
java.sql.SQLException

getConnection

public static java.sql.Connection getConnection()

ExecuteUpdate

public static void ExecuteUpdate(java.lang.String query)
                          throws java.lang.Exception
Parameters:
query -
Throws:
java.lang.Exception

insertIntoListable

public static void insertIntoListable(java.lang.String table,
                                      Listable... values)
                               throws GCUBEFault
Throws:
GCUBEFault

insertInto

public static void insertInto(java.lang.String table,
                              java.lang.String[]... rows)
                       throws GCUBEFault
Parameters:
table -
values -
Throws:
java.rmi.RemoteException
GCUBEFault

queryDB

public static java.sql.ResultSet queryDB(java.lang.String query)
                                  throws java.sql.SQLException
Parameters:
query -
Returns:
Throws:
java.sql.SQLException

deleteAll

public static void deleteAll(java.lang.String table)
                      throws java.sql.SQLException
Parameters:
table -
Throws:
java.sql.SQLException

deleteElement

public static void deleteElement(java.lang.String table,
                                 java.lang.String whereClause)
                          throws java.sql.SQLException
Throws:
java.sql.SQLException

close

public static void close()
                  throws java.sql.SQLException
Throws:
java.sql.SQLException