1 23 24 package org.objectweb.jorm.mapper.rdb.metainfo; 25 26 import org.objectweb.jorm.metainfo.api.MetaObject; 27 import org.objectweb.jorm.metainfo.api.Mapping; 28 import org.objectweb.jorm.metainfo.api.MappingPrinter; 29 import org.objectweb.jorm.metainfo.api.MappingFactory; 30 import org.objectweb.jorm.metainfo.lib.BasicMetaObject; 31 32 36 public class RdbMappingFactory 37 extends BasicMetaObject 38 implements MappingFactory { 39 40 public RdbMappingFactory() { 41 super(null); 42 } 43 44 50 public Mapping createMapping(String mapperName, MetaObject parent) { 51 RdbMapping mapping = new RdbMapping(mapperName, parent); 52 setLoggingOnChild(mapping); 53 return mapping; 54 } 55 56 public MappingPrinter createMappingPrinter() { 57 return new RdbMappingPrinter(); 58 } 59 } 60 | Popular Tags |