1 22 23 package org.xquark.xml.xdbc; 24 25 36 public interface XMLConnection { 37 38 39 40 41 42 43 44 45 public static final short TRANSACTION_NONE = 0; 46 47 48 public static final short TRANSACTION_READ_UNCOMMITTED = 1; 49 50 51 public static final short TRANSACTION_READ_COMMITTED = 2; 52 53 54 public static final short TRANSACTION_REPEATABLE_READ = 4; 55 56 57 public static final short TRANSACTION_SERIALIZABLE = 8; 58 59 60 public static final short XQUERY_STRING_TYPE = 0; 61 62 63 public static final short XPATH_STRING_TYPE = 1; 64 65 66 67 68 69 73 public void close() throws XMLDBCException; 74 75 80 public boolean isClosed() throws XMLDBCException; 81 82 87 public boolean isReadOnly() throws XMLDBCException; 88 89 96 public void setReadOnly(boolean readOnlyMode) throws XMLDBCException, XMLDBCNotSupportedException; 97 98 107 public XMLDataSourceMetaData getMetaData() throws XMLDBCException; 108 109 117 public XMLDataSourceMetaData getMetaData(boolean refresh) throws XMLDBCException; 118 119 124 public String getUserName() throws XMLDBCException; 125 126 131 public String getURL() throws XMLDBCException; 132 133 134 135 136 137 143 public XMLStatement createStatement() throws XMLDBCException; 144 145 152 public XMLStatement createStatement(short queryType) throws XMLDBCException; 153 154 165 public PreparedXMLStatement prepareStatement(String query) throws XMLDBCException, XMLDBCNotSupportedException; 166 167 168 169 170 171 177 public Configurable createCollectionConfig() throws XMLDBCException, XMLDBCNotSupportedException; 178 179 188 public XMLCollection createCollection(String name, String description, Configurable config) throws XMLDBCException, XMLDBCNotSupportedException; 189 190 196 public void deleteCollection(String name) throws XMLDBCException, XMLDBCNotSupportedException; 197 198 205 public void renameCollection(String oldname, String newname) throws XMLDBCException, XMLDBCNotSupportedException; 206 207 213 public int deleteAllCollections() throws XMLDBCException, XMLDBCNotSupportedException; 214 215 224 public XMLCollection getCollection(String name) throws XMLDBCException, XMLDBCNotSupportedException; 225 226 227 228 229 230 238 public void commit() throws XMLDBCException, XMLDBCNotSupportedException; 239 240 247 public void setAutoCommit(boolean autoCommitMode) throws XMLDBCException, XMLDBCNotSupportedException; 248 249 255 public boolean getAutoCommit() throws XMLDBCException, XMLDBCNotSupportedException; 256 257 263 public void rollback() throws XMLDBCException, XMLDBCNotSupportedException; 264 265 271 public short getTransactionIsolation() throws XMLDBCException, XMLDBCNotSupportedException; 272 273 282 public void setTransactionIsolation(short level) throws XMLDBCException, XMLDBCNotSupportedException; 283 284 288 public void setBaseURI(String baseURI); 289 } 290 291 | Popular Tags |