gr.forth.ics.rdfsuite.rssdb.storage
Class StorageUtilities
java.lang.Object
gr.forth.ics.rdfsuite.rssdb.storage.StorageUtilities
public class StorageUtilities
- extends java.lang.Object
|
Field Summary |
protected static org.apache.log4j.Logger |
log
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.log4j.Logger log
StorageUtilities
public StorageUtilities(RDFDB_Model model)
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()