1 22 package org.jboss.ejb.plugins.cmp.jdbc.metadata; 23 24 import org.jboss.system.ServiceMBeanSupport; 25 26 import javax.management.ObjectName ; 27 28 34 public class DataSourceMetaData 35 extends ServiceMBeanSupport 36 implements DataSourceMetaDataMBean 37 { 38 private ObjectName metadataLibrary; 39 private String typeMapping; 40 41 44 public String getTypeMapping() 45 { 46 return typeMapping; 47 } 48 49 52 public void setTypeMapping(String typeMapping) 53 { 54 this.typeMapping = typeMapping; 55 } 56 57 60 public ObjectName getMetadataLibrary() 61 { 62 return metadataLibrary; 63 } 64 65 68 public void setMetadataLibrary(ObjectName metadataLibrary) 69 { 70 this.metadataLibrary = metadataLibrary; 71 } 72 73 76 public JDBCTypeMappingMetaData getTypeMappingMetaData() throws Exception 77 { 78 return (JDBCTypeMappingMetaData)server.invoke( 79 metadataLibrary, 80 "findTypeMappingMetaData", 81 new Object []{typeMapping}, 82 new String []{String .class.getName()} 83 ); 84 } 85 } 86 | Popular Tags |