1 22 23 package org.xquark.xquery.xdbc; 24 25 import java.util.List ; 26 import java.util.Set ; 27 28 import org.xquark.xml.xdbc.*; 29 30 31 public class XMLDataSourceMetaDataConnectionWrapper implements XMLDataSourceMetaData { 32 33 private XMLDataSourceMetaData metadata; 34 private XMLConnection connection; 35 36 public XMLDataSourceMetaDataConnectionWrapper(XMLConnection connection, XMLDataSourceMetaData metadata) { 37 this.metadata = metadata; 38 this.connection = connection; 39 } 40 41 public XMLConnection getConnection() { 42 return connection; 43 } 44 45 48 public Set getCapabilities() { 49 return metadata.getCapabilities(); 50 } 51 52 57 public List getCollectionNames() throws XMLDBCException, XMLDBCNotSupportedException { 58 return metadata.getCollectionNames(); 59 } 60 61 65 public XMLDocument getMetaData() throws XMLDBCException { 66 return metadata.getMetaData(); 67 } 68 69 74 public XMLDocument getPathSet(String colName) throws XMLDBCException { 75 return metadata.getPathSet(colName); 76 } 77 78 83 public Object getProperty(String propertyId) throws XMLDBCNotRecognizedException { 84 return metadata.getProperty(propertyId); 85 } 86 87 90 public String [] getPropertyList() { 91 return metadata.getPropertyList(); 92 } 93 94 99 public XMLDocument getSchema(String targetNamespace) throws XMLDBCException { 100 return metadata.getSchema(targetNamespace); 101 } 102 103 107 public List getSchemaNamespaces() throws XMLDBCException { 108 return metadata.getSchemaNamespaces(); 109 } 110 111 } 112 | Popular Tags |