org.gcube.vremanagement.vremodeler.db
Class DBInterface
java.lang.Object
org.gcube.vremanagement.vremodeler.db.DBInterface
public class DBInterface
- extends java.lang.Object
- Author:
- lucio
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBInterface
public DBInterface()
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