1 29 30 package com.caucho.amber.cfg; 31 32 import com.caucho.vfs.Path; 33 34 import java.util.ArrayList ; 35 36 39 public class PersistenceConfig { 40 private Path _root; 41 42 private ArrayList <PersistenceUnitConfig> _unitList 43 = new ArrayList <PersistenceUnitConfig>(); 44 45 public void setRoot(Path root) 46 { 47 _root = root; 48 } 49 50 public Path getRoot() 51 { 52 return _root; 53 } 54 55 public void setVersion(String version) 56 { 57 } 58 59 public void setSchemaLocation(String location) 60 { 61 } 62 63 66 public void addPersistenceUnit(PersistenceUnitConfig unit) 67 { 68 _unitList.add(unit); 69 } 70 71 74 public ArrayList <PersistenceUnitConfig> getUnitList() 75 { 76 return _unitList; 77 } 78 } 79 | Popular Tags |