View Javadoc
1   package com.randomnoun.common.db.to;
2   
3   import java.util.Map;
4   
5   public class RoutineTO {
6   	
7   	private SchemaTO schema;
8   	private String name;
9   	private String type; // PROCEDURE, FUNCTION
10  	private String dataType;  // function only
11  	private Long dataTypeLength; // character length
12  	// private Long dataTypeByteLength;
13  	private Long dataTypeNumericPrecision;
14  	private Long dataTypeNumericScale;
15  	private Long dataTypeDateTimePrecision;
16  	private String charsetName;
17  	private String collationName;
18  	
19  	// private String dtdIdentifier; // functions only, is the dataType + extra bits
20  	// private String bodyLanguage; // always 'SQL'
21  	private String definer;
22  	
23  	private String comment;
24  	private String definition;
25  	private boolean deterministic;
26  	private String dataAccess;  //  The value is one of CONTAINS SQL, NO SQL, READS SQL DATA, or MODIFIES SQL DATA.
27  	private String securityType; // The routine SQL SECURITY characteristic. The value is one of DEFINER or INVOKER.
28  	
29  	private String sqlMode; // eg IGNORE_SPACE,STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION
30  	
31  	private Map<String, RoutineParameterTO> routineParameterMap;
32  	
33  	public RoutineTO(SchemaTO schema, String name) {
34  		this.schema = schema;
35  		this.name = name;
36  	}
37  
38  	public SchemaTO getSchema() {
39  		return schema;
40  	}
41  
42  	public void setSchema(SchemaTO schema) {
43  		this.schema = schema;
44  	}
45  
46  	public String getName() {
47  		return name;
48  	}
49  
50  	public void setName(String name) {
51  		this.name = name;
52  	}
53  
54  	public String getType() {
55  		return type;
56  	}
57  
58  	public void setType(String type) {
59  		this.type = type;
60  	}
61  
62  	public String getDataType() {
63  		return dataType;
64  	}
65  
66  	public void setDataType(String dataType) {
67  		this.dataType = dataType;
68  	}
69  
70  
71  	public String getCharsetName() {
72  		return charsetName;
73  	}
74  
75  	public void setCharsetName(String charsetName) {
76  		this.charsetName = charsetName;
77  	}
78  
79  	public String getCollationName() {
80  		return collationName;
81  	}
82  
83  	public void setCollationName(String collationName) {
84  		this.collationName = collationName;
85  	}
86  
87  	public String getDefiner() {
88  		return definer;
89  	}
90  
91  	public void setDefiner(String definer) {
92  		this.definer = definer;
93  	}
94  
95  	public String getComment() {
96  		return comment;
97  	}
98  
99  	public void setComment(String comment) {
100 		this.comment = comment;
101 	}
102 
103 	public String getDefinition() {
104 		return definition;
105 	}
106 
107 	public void setDefinition(String definition) {
108 		this.definition = definition;
109 	}
110 
111 	public boolean isDeterministic() {
112 		return deterministic;
113 	}
114 
115 	public void setDeterministic(boolean deterministic) {
116 		this.deterministic = deterministic;
117 	}
118 
119 	public String getDataAccess() {
120 		return dataAccess;
121 	}
122 
123 	public void setDataAccess(String dataAccess) {
124 		this.dataAccess = dataAccess;
125 	}
126 
127 	public String getSecurityType() {
128 		return securityType;
129 	}
130 
131 	public void setSecurityType(String securityType) {
132 		this.securityType = securityType;
133 	}
134 
135 	public String getSqlMode() {
136 		return sqlMode;
137 	}
138 
139 	public void setSqlMode(String sqlMode) {
140 		this.sqlMode = sqlMode;
141 	}
142 
143 	public Map<String, RoutineParameterTO> getRoutineParameterMap() {
144 		return routineParameterMap;
145 	}
146 
147 	public void setRoutineParameterMap(Map<String, RoutineParameterTO> routineParameterMap) {
148 		this.routineParameterMap = routineParameterMap;
149 	}
150 
151 	public Long getDataTypeLength() {
152 		return dataTypeLength;
153 	}
154 
155 	public void setDataTypeLength(Long dataTypeLength) {
156 		this.dataTypeLength = dataTypeLength;
157 	}
158 
159 	public Long getDataTypeNumericPrecision() {
160 		return dataTypeNumericPrecision;
161 	}
162 
163 	public void setDataTypeNumericPrecision(Long dataTypeNumericPrecision) {
164 		this.dataTypeNumericPrecision = dataTypeNumericPrecision;
165 	}
166 
167 	public Long getDataTypeNumericScale() {
168 		return dataTypeNumericScale;
169 	}
170 
171 	public void setDataTypeNumericScale(Long dataTypeNumericScale) {
172 		this.dataTypeNumericScale = dataTypeNumericScale;
173 	}
174 
175 	public Long getDataTypeDateTimePrecision() {
176 		return dataTypeDateTimePrecision;
177 	}
178 
179 	public void setDataTypeDateTimePrecision(Long dataTypeDateTimePrecision) {
180 		this.dataTypeDateTimePrecision = dataTypeDateTimePrecision;
181 	}
182 
183 }