1 22 23 package org.xquark.mapper; 24 25 import java.util.List ; 26 27 import org.xquark.xml.xdbc.XMLDBCException; 28 29 36 public interface RepositoryConnection 37 extends org.xquark.xml.xdbc.XMLConnection 38 { 39 43 public static final String TEXT_LENGTH_PROPERTY 44 = "http://www.xquark.org/repository/collection/properties/maxTextDataLength"; 45 public static final String EXTRA_DATA_LENGTH_PROPERTY 46 = "http://www.xquark.org/repository/collection/properties/maxExtraDataLength"; 47 public static final String MAPPING_ID_PROPERTY 48 = "http://www.xquark.org/repository/collection/properties/mappingId"; 49 public static final String DESC_PROPERTY 50 = "http://www.xquark.org/repository/collection/properties/description"; 51 public static final String DOC_OID_SIZE_PROPERTY 52 = "http://www.xquark.org/repository/collection/properties/docOIDSizeInBits"; 53 public static final String DOC_OID_PREALLOCATION_SIZE 54 = "http://www.xquark.org/repository/collection/properties/docOIDPreallocationSize"; 55 56 public static final String USE_SCHEMA_PREFIXES_FEATURE 60 = "http://www.xquark.org/repository/collection/features/storePrefixes"; 61 62 66 public static final String SCHEMA_COLLECTION = "SCHEMA$"; 67 68 public static final String MAPPING_COLLECTION = "MAPPING$"; 69 70 74 82 public void deleteConfiguration() throws XMLDBCException; 83 84 91 public void deleteRepository() throws XMLDBCException; 92 93 99 public void resetRepository() throws XMLDBCException; 100 101 107 public RepositoryCollection getSchemaCollection() throws XMLDBCException; 108 109 115 public RepositoryCollection getMappingCollection() throws XMLDBCException; 116 117 123 public RepositoryCollection getRepositoryCollection(String name) throws XMLDBCException; 124 125 132 public void setInteractiveMode(boolean interactive); 133 134 138 public boolean getInteractiveMode(); 139 140 144 149 public List getCollectionsUsingMapping(String mappingID) 150 throws XMLDBCException; 151 152 157 public List getCollectionsUsingNamespace(String namespace) 158 throws XMLDBCException; 159 160 165 public List getMappingsUsingNamespace(String namespace) 166 throws XMLDBCException; 167 } 168 169 170 | Popular Tags |