1 22 package org.jboss.ejb.plugins.cmp.jdbc.metadata; 23 24 import org.jboss.deployment.DeploymentException; 25 import org.jboss.metadata.MetaData; 26 import org.w3c.dom.Element ; 27 28 29 34 public class JDBCUserTypeMappingMetaData 35 { 36 37 private final String javaType; 38 39 private final String mappedType; 40 41 private final String mapper; 42 43 private final byte checkDirtyAfterGet; 44 45 private final String stateFactory; 46 47 public JDBCUserTypeMappingMetaData(Element userMappingEl) 48 throws DeploymentException 49 { 50 javaType = MetaData.getUniqueChildContent(userMappingEl, "java-type"); 51 mappedType = MetaData.getUniqueChildContent(userMappingEl, "mapped-type"); 52 mapper = MetaData.getUniqueChildContent(userMappingEl, "mapper"); 53 checkDirtyAfterGet = JDBCCMPFieldMetaData.readCheckDirtyAfterGet(userMappingEl); 54 stateFactory = MetaData.getOptionalChildContent(userMappingEl, "state-factory"); 55 } 56 57 public String getJavaType() 58 { 59 return javaType; 60 } 61 62 public String getMappedType() 63 { 64 return mappedType; 65 } 66 67 public String getMapper() 68 { 69 return mapper; 70 } 71 72 public byte checkDirtyAfterGet() 73 { 74 return checkDirtyAfterGet; 75 } 76 77 public String getStateFactory() 78 { 79 return stateFactory; 80 } 81 } 82 | Popular Tags |