01: package org.dbbrowser.db.engine.model;
02:
03: /**
04: * A view class holds information about a view
05: * @author amangat
06: *
07: */
08: public class View {
09: private String schemaName = null;
10: private String viewName = null;
11: private String viewDefinition = null;
12:
13: /**
14: * Constructer
15: * @param schemaName
16: * @param viewName
17: * @param viewDefinition
18: */
19: public View(String schemaName, String viewName,
20: String viewDefinition) {
21: this .schemaName = schemaName;
22: this .viewName = viewName;
23: this .viewDefinition = viewDefinition;
24: }
25:
26: /**
27: * Returns the schema name
28: * @return
29: */
30: public String getSchemaName() {
31: return this .schemaName;
32: }
33:
34: /**
35: * Returns the view name
36: * @return
37: */
38: public String getViewName() {
39: return this .viewName;
40: }
41:
42: /**
43: * Returns the SQL used to create the view
44: * @return
45: */
46: public String getViewDefinition() {
47: return this.viewDefinition;
48: }
49: }
|