001package org.dom4j.persistence; 002 003import java.net.URL; 004 005/** 006 * berschrift: HL7 API 007 * Beschreibung: 008 * Copyright: Copyright (c) 2001 009 * Organisation: ceyoniq healthcare 010 * @author 011 * @version 1.0 012 */ 013 014public class MarshallingContext { 015 016 protected Class driver; 017 protected URL databaseLocation; 018 protected String strategy; 019 protected boolean isAutoCommiting; 020 021 public MarshallingContext(boolean isAutoCommting) { 022 this.isAutoCommiting = isAutoCommiting; 023 } 024 025 public void setDatabaseDriver(Class driver) { 026 this.driver = driver; 027 } 028 029 public Class getDatabaseDriver() { 030 return this.driver; 031 } 032 033 public boolean isAutoCommiting() { 034 return this.isAutoCommiting; 035 } 036 037 public void setDatabaseLocation(URL location) { 038 this.databaseLocation = location; 039 } 040 041 public URL getDatabaseLocation() { 042 return this.databaseLocation; 043 } 044 045 public void setMarshallingStrategy(String strategy) { 046 this.strategy = strategy; 047 } 048 049 public String getMarshallingStrategy() { 050 return this.strategy; 051 } 052}