View Javadoc

1   package org.kuali.common.jdbc.context;
2   
3   import java.util.Properties;
4   
5   import org.kuali.common.jdbc.DefaultJdbcService;
6   import org.kuali.common.jdbc.JdbcService;
7   import org.kuali.common.util.SimpleFormatter;
8   
9   public class DatabaseResetContext {
10  
11  	public static final String DEFAULT_SCHEMA_PROPERTY_PREFIX = "sql.schema.loc";
12  	public static final String DEFAULT_DATA_PROPERTY_PREFIX = "sql.data.loc";
13  	public static final String DEFAULT_CONSTRAINT_PROPERTY_PREFIX = "sql.constraints.loc";
14  	public static final String DEFAULT_LOCATION_LIST_PATTERN = ".loc.list";
15  
16  	JdbcService service = new DefaultJdbcService();
17  	SimpleFormatter formatter = new SimpleFormatter();
18  	String locationListPattern = DEFAULT_LOCATION_LIST_PATTERN;
19  	String schemaPropertyPrefix = DEFAULT_SCHEMA_PROPERTY_PREFIX;
20  	String dataPropertyPrefix = DEFAULT_DATA_PROPERTY_PREFIX;
21  	String constraintPropertyPrefix = DEFAULT_CONSTRAINT_PROPERTY_PREFIX;
22  
23  	String encoding;
24  	Properties properties;
25  	DatabaseProcessContext databaseProcessContext;
26  	JdbcContext normalJdbcContext;
27  	JdbcContext dbaJdbcContext;
28  	String dbaSql;
29  
30  	public String getEncoding() {
31  		return encoding;
32  	}
33  
34  	public void setEncoding(String encoding) {
35  		this.encoding = encoding;
36  	}
37  
38  	public SimpleFormatter getFormatter() {
39  		return formatter;
40  	}
41  
42  	public void setFormatter(SimpleFormatter formatter) {
43  		this.formatter = formatter;
44  	}
45  
46  	public Properties getProperties() {
47  		return properties;
48  	}
49  
50  	public void setProperties(Properties properties) {
51  		this.properties = properties;
52  	}
53  
54  	public DatabaseProcessContext getDatabaseProcessContext() {
55  		return databaseProcessContext;
56  	}
57  
58  	public void setDatabaseProcessContext(DatabaseProcessContext process) {
59  		this.databaseProcessContext = process;
60  	}
61  
62  	public JdbcService getService() {
63  		return service;
64  	}
65  
66  	public void setService(JdbcService service) {
67  		this.service = service;
68  	}
69  
70  	public JdbcContext getNormalJdbcContext() {
71  		return normalJdbcContext;
72  	}
73  
74  	public void setNormalJdbcContext(JdbcContext normal) {
75  		this.normalJdbcContext = normal;
76  	}
77  
78  	public JdbcContext getDbaJdbcContext() {
79  		return dbaJdbcContext;
80  	}
81  
82  	public void setDbaJdbcContext(JdbcContext dba) {
83  		this.dbaJdbcContext = dba;
84  	}
85  
86  	public String getSchemaPropertyPrefix() {
87  		return schemaPropertyPrefix;
88  	}
89  
90  	public void setSchemaPropertyPrefix(String schemaPropertyPrefix) {
91  		this.schemaPropertyPrefix = schemaPropertyPrefix;
92  	}
93  
94  	public String getDataPropertyPrefix() {
95  		return dataPropertyPrefix;
96  	}
97  
98  	public void setDataPropertyPrefix(String dataPropertyPrefix) {
99  		this.dataPropertyPrefix = dataPropertyPrefix;
100 	}
101 
102 	public String getConstraintPropertyPrefix() {
103 		return constraintPropertyPrefix;
104 	}
105 
106 	public void setConstraintPropertyPrefix(String constraintPropertyPrefix) {
107 		this.constraintPropertyPrefix = constraintPropertyPrefix;
108 	}
109 
110 	public String getLocationListPattern() {
111 		return locationListPattern;
112 	}
113 
114 	public void setLocationListPattern(String locationListSuffix) {
115 		this.locationListPattern = locationListSuffix;
116 	}
117 
118 	public String getDbaSql() {
119 		return dbaSql;
120 	}
121 
122 	public void setDbaSql(String dbaSql) {
123 		this.dbaSql = dbaSql;
124 	}
125 
126 }