gr.forth.ics.rdfsuite.rssdb.storage
Class StorageUtilities

java.lang.Object
  extended by gr.forth.ics.rdfsuite.rssdb.storage.StorageUtilities

public class StorageUtilities
extends java.lang.Object


Field Summary
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
StorageUtilities(RDFDB_Model model)
           
 
Method Summary
 void clearConnection()
           
 void closeConnection(java.sql.Connection con)
           
 void commitTransaction()
           
 int getDBMSRepresentation(java.lang.String dbURL, java.util.Properties prop)
          Returns the type of the db Representation (SPECIFIC, SPECIFIC_NOSUBTABLE, SPECIFIC_UNIQUETABLE, EMPTY)
 java.util.ArrayList getStoredNamespaces()
           
 void initDBGeneratorID()
           
 java.sql.Connection openConnection(java.lang.String dbURL, java.util.Properties prop)
           
 void rollbackTransaction()
          Rollback the transaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log
Constructor Detail

StorageUtilities

public StorageUtilities(RDFDB_Model model)
Method Detail

openConnection

public java.sql.Connection openConnection(java.lang.String dbURL,
                                          java.util.Properties prop)
                                   throws java.sql.SQLException
Parameters:
dbURL -
prop -
Returns:
Throws:
java.sql.SQLException - if some query aborts

getDBMSRepresentation

public int getDBMSRepresentation(java.lang.String dbURL,
                                 java.util.Properties prop)
                          throws java.sql.SQLException,
                                 gr.forth.ics.rdfsuite.services.exceptions.PostgresConnectionException
Returns the type of the db Representation (SPECIFIC, SPECIFIC_NOSUBTABLE, SPECIFIC_UNIQUETABLE, EMPTY)

Throws:
java.sql.SQLException - if some query aborts
gr.forth.ics.rdfsuite.services.exceptions.PostgresConnectionException

closeConnection

public void closeConnection(java.sql.Connection con)
                     throws java.sql.SQLException
Parameters:
con -
Throws:
java.sql.SQLException - if some query aborts

getStoredNamespaces

public java.util.ArrayList getStoredNamespaces()
                                        throws java.sql.SQLException
Returns:
Throws:
java.sql.SQLException - if some query aborts

initDBGeneratorID

public void initDBGeneratorID()
                       throws java.sql.SQLException
Throws:
java.sql.SQLException - if some query aborts

commitTransaction

public void commitTransaction()
                       throws java.sql.SQLException
Throws:
java.sql.SQLException - if some query aborts

rollbackTransaction

public void rollbackTransaction()
                         throws java.sql.SQLException
Rollback the transaction

Throws:
java.sql.SQLException - if some query aborts

clearConnection

public void clearConnection()