1 5 6 package com.hp.hpl.jena.db; 7 8 import java.sql.*; 9 10 import com.hp.hpl.jena.db.impl.*; 11 import com.hp.hpl.jena.rdf.model.Model; 12 import com.hp.hpl.jena.util.iterator.ExtendedIterator; 13 14 21 22 public interface IDBConnection { 23 24 27 public Connection getConnection() throws SQLException; 28 29 32 public void close() throws SQLException; 33 34 40 public void cleanDB() throws SQLException; 41 42 48 public boolean isFormatOK() throws RDFRDBException; 49 50 81 public void setDatabaseProperties(Model propertyModel) throws RDFRDBException; 82 83 100 public Model getDatabaseProperties() throws RDFRDBException; 101 102 110 111 public void setDatabaseType( String databaseType ); 112 113 121 122 public Model getDefaultModelProperties() throws RDFRDBException; 123 124 129 public String getDatabaseType(); 130 131 144 146 158 160 167 169 175 public ExtendedIterator getAllModelNames() throws RDFRDBException; 176 177 185 public boolean containsModel(String name) throws RDFRDBException; 186 187 198 public boolean containsDefaultModel() throws RDFRDBException; 199 200 206 207 public IRDBDriver getDriver() throws RDFRDBException; 208 209 214 public void setDriver(IRDBDriver driver); 215 216 225 public IRDBDriver getDriver(String layout, String database) throws RDFRDBException; 226 227 } 228 229 | Popular Tags |