1 package org.dom4j.persistence; 2 3 import java.net.URL; 4 5 /*** 6 * Überschrift: HL7 API 7 * Beschreibung: 8 * Copyright: Copyright (c) 2001 9 * Organisation: ceyoniq healthcare 10 * @author 11 * @version 1.0 12 */ 13 14 public class MarshallingContext { 15 16 protected Class driver; 17 protected URL databaseLocation; 18 protected String strategy; 19 protected boolean isAutoCommiting; 20 21 public MarshallingContext(boolean isAutoCommiting) { 22 this.isAutoCommiting = isAutoCommiting; 23 } 24 25 public void setDatabaseDriver(Class driver) { 26 this.driver = driver; 27 } 28 29 public Class getDatabaseDriver() { 30 return this.driver; 31 } 32 33 public boolean isAutoCommiting() { 34 return this.isAutoCommiting; 35 } 36 37 public void setDatabaseLocation(URL location) { 38 this.databaseLocation = location; 39 } 40 41 public URL getDatabaseLocation() { 42 return this.databaseLocation; 43 } 44 45 public void setMarshallingStrategy(String strategy) { 46 this.strategy = strategy; 47 } 48 49 public String getMarshallingStrategy() { 50 return this.strategy; 51 } 52 }