1 /*
2 * This class was automatically generated with
3 * <a href="http://castor.exolab.org">Castor 0.9.4</a>, using an
4 * XML Schema.
5 * $Id$
6 */
7
8 package org.enableit.db.beans;
9
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
13
14 import java.io.IOException;
15 import java.io.Reader;
16 import java.io.Serializable;
17 import java.io.Writer;
18 import org.exolab.castor.xml.*;
19 import org.exolab.castor.xml.MarshalException;
20 import org.exolab.castor.xml.ValidationException;
21 import org.xml.sax.ContentHandler;
22
23 /***
24 *
25 *
26 * @version $Revision$ $Date$
27 **/
28 public class JdbcMapping implements java.io.Serializable {
29
30
31 //--------------------------/
32 //- Class/Member Variables -/
33 //--------------------------/
34
35 private java.lang.String _jdbc;
36
37 private java.lang.String _name;
38
39
40 //----------------/
41 //- Constructors -/
42 //----------------/
43
44 public JdbcMapping() {
45 super();
46 } //-- org.enableit.db.beans.JdbcMapping()
47
48
49 //-----------/
50 //- Methods -/
51 //-----------/
52
53 /***
54 * Returns the value of field 'jdbc'.
55 *
56 * @return the value of field 'jdbc'.
57 **/
58 public java.lang.String getJdbc()
59 {
60 return this._jdbc;
61 } //-- java.lang.String getJdbc()
62
63 /***
64 * Returns the value of field 'name'.
65 *
66 * @return the value of field 'name'.
67 **/
68 public java.lang.String getName()
69 {
70 return this._name;
71 } //-- java.lang.String getName()
72
73 /***
74 **/
75 public boolean isValid()
76 {
77 try {
78 validate();
79 }
80 catch (org.exolab.castor.xml.ValidationException vex) {
81 return false;
82 }
83 return true;
84 } //-- boolean isValid()
85
86 /***
87 *
88 *
89 * @param out
90 **/
91 public void marshal(java.io.Writer out)
92 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
93 {
94
95 Marshaller.marshal(this, out);
96 } //-- void marshal(java.io.Writer)
97
98 /***
99 *
100 *
101 * @param handler
102 **/
103 public void marshal(org.xml.sax.ContentHandler handler)
104 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
105 {
106
107 Marshaller.marshal(this, handler);
108 } //-- void marshal(org.xml.sax.ContentHandler)
109
110 /***
111 * Sets the value of field 'jdbc'.
112 *
113 * @param jdbc the value of field 'jdbc'.
114 **/
115 public void setJdbc(java.lang.String jdbc)
116 {
117 this._jdbc = jdbc;
118 } //-- void setJdbc(java.lang.String)
119
120 /***
121 * Sets the value of field 'name'.
122 *
123 * @param name the value of field 'name'.
124 **/
125 public void setName(java.lang.String name)
126 {
127 this._name = name;
128 } //-- void setName(java.lang.String)
129
130 /***
131 *
132 *
133 * @param reader
134 **/
135 public static org.enableit.db.beans.JdbcMapping unmarshal(java.io.Reader reader)
136 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
137 {
138 return (org.enableit.db.beans.JdbcMapping) Unmarshaller.unmarshal(org.enableit.db.beans.JdbcMapping.class, reader);
139 } //-- org.enableit.db.beans.JdbcMapping unmarshal(java.io.Reader)
140
141 /***
142 **/
143 public void validate()
144 throws org.exolab.castor.xml.ValidationException
145 {
146 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
147 validator.validate(this);
148 } //-- void validate()
149
150 }
This page was automatically generated by Maven