View Javadoc
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 Column implements java.io.Serializable { 29 30 31 //--------------------------/ 32 //- Class/Member Variables -/ 33 //--------------------------/ 34 35 private java.lang.String _description; 36 37 private java.lang.String _tableName; 38 39 private java.lang.String _colName; 40 41 private java.lang.String _colType; 42 43 private java.lang.String _null; 44 45 private java.lang.String _primaryKey; 46 47 private ForeignKey _foreignKey; 48 49 private java.lang.String _default; 50 51 52 //----------------/ 53 //- Constructors -/ 54 //----------------/ 55 56 public Column() { 57 super(); 58 } //-- org.enableit.db.beans.Column() 59 60 61 //-----------/ 62 //- Methods -/ 63 //-----------/ 64 65 /*** 66 * Returns the value of field 'colName'. 67 * 68 * @return the value of field 'colName'. 69 **/ 70 public java.lang.String getColName() 71 { 72 return this._colName; 73 } //-- java.lang.String getColName() 74 75 /*** 76 * Returns the value of field 'colType'. 77 * 78 * @return the value of field 'colType'. 79 **/ 80 public java.lang.String getColType() 81 { 82 return this._colType; 83 } //-- java.lang.String getColType() 84 85 /*** 86 * Returns the value of field 'default'. 87 * 88 * @return the value of field 'default'. 89 **/ 90 public java.lang.String getDefault() 91 { 92 return this._default; 93 } //-- java.lang.String getDefault() 94 95 /*** 96 * Returns the value of field 'description'. 97 * 98 * @return the value of field 'description'. 99 **/ 100 public java.lang.String getDescription() 101 { 102 return this._description; 103 } //-- java.lang.String getDescription() 104 105 /*** 106 * Returns the value of field 'foreignKey'. 107 * 108 * @return the value of field 'foreignKey'. 109 **/ 110 public ForeignKey getForeignKey() 111 { 112 return this._foreignKey; 113 } //-- ForeignKey getForeignKey() 114 115 /*** 116 * Returns the value of field 'null'. 117 * 118 * @return the value of field 'null'. 119 **/ 120 public java.lang.String getNull() 121 { 122 return this._null; 123 } //-- java.lang.String getNull() 124 125 /*** 126 * Returns the value of field 'primaryKey'. 127 * 128 * @return the value of field 'primaryKey'. 129 **/ 130 public java.lang.String getPrimaryKey() 131 { 132 return this._primaryKey; 133 } //-- java.lang.String getPrimaryKey() 134 135 /*** 136 * Returns the value of field 'tableName'. 137 * 138 * @return the value of field 'tableName'. 139 **/ 140 public java.lang.String getTableName() 141 { 142 return this._tableName; 143 } //-- java.lang.String getTableName() 144 145 /*** 146 **/ 147 public boolean isValid() 148 { 149 try { 150 validate(); 151 } 152 catch (org.exolab.castor.xml.ValidationException vex) { 153 return false; 154 } 155 return true; 156 } //-- boolean isValid() 157 158 /*** 159 * 160 * 161 * @param out 162 **/ 163 public void marshal(java.io.Writer out) 164 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 165 { 166 167 Marshaller.marshal(this, out); 168 } //-- void marshal(java.io.Writer) 169 170 /*** 171 * 172 * 173 * @param handler 174 **/ 175 public void marshal(org.xml.sax.ContentHandler handler) 176 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 177 { 178 179 Marshaller.marshal(this, handler); 180 } //-- void marshal(org.xml.sax.ContentHandler) 181 182 /*** 183 * Sets the value of field 'colName'. 184 * 185 * @param colName the value of field 'colName'. 186 **/ 187 public void setColName(java.lang.String colName) 188 { 189 this._colName = colName; 190 } //-- void setColName(java.lang.String) 191 192 /*** 193 * Sets the value of field 'colType'. 194 * 195 * @param colType the value of field 'colType'. 196 **/ 197 public void setColType(java.lang.String colType) 198 { 199 this._colType = colType; 200 } //-- void setColType(java.lang.String) 201 202 /*** 203 * Sets the value of field 'default'. 204 * 205 * @param _default 206 * @param default the value of field 'default'. 207 **/ 208 public void setDefault(java.lang.String _default) 209 { 210 this._default = _default; 211 } //-- void setDefault(java.lang.String) 212 213 /*** 214 * Sets the value of field 'description'. 215 * 216 * @param description the value of field 'description'. 217 **/ 218 public void setDescription(java.lang.String description) 219 { 220 this._description = description; 221 } //-- void setDescription(java.lang.String) 222 223 /*** 224 * Sets the value of field 'foreignKey'. 225 * 226 * @param foreignKey the value of field 'foreignKey'. 227 **/ 228 public void setForeignKey(ForeignKey foreignKey) 229 { 230 this._foreignKey = foreignKey; 231 } //-- void setForeignKey(ForeignKey) 232 233 /*** 234 * Sets the value of field 'null'. 235 * 236 * @param _null 237 * @param null the value of field 'null'. 238 **/ 239 public void setNull(java.lang.String _null) 240 { 241 this._null = _null; 242 } //-- void setNull(java.lang.String) 243 244 /*** 245 * Sets the value of field 'primaryKey'. 246 * 247 * @param primaryKey the value of field 'primaryKey'. 248 **/ 249 public void setPrimaryKey(java.lang.String primaryKey) 250 { 251 this._primaryKey = primaryKey; 252 } //-- void setPrimaryKey(java.lang.String) 253 254 /*** 255 * Sets the value of field 'tableName'. 256 * 257 * @param tableName the value of field 'tableName'. 258 **/ 259 public void setTableName(java.lang.String tableName) 260 { 261 this._tableName = tableName; 262 } //-- void setTableName(java.lang.String) 263 264 /*** 265 * 266 * 267 * @param reader 268 **/ 269 public static org.enableit.db.beans.Column unmarshal(java.io.Reader reader) 270 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 271 { 272 return (org.enableit.db.beans.Column) Unmarshaller.unmarshal(org.enableit.db.beans.Column.class, reader); 273 } //-- org.enableit.db.beans.Column unmarshal(java.io.Reader) 274 275 /*** 276 **/ 277 public void validate() 278 throws org.exolab.castor.xml.ValidationException 279 { 280 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 281 validator.validate(this); 282 } //-- void validate() 283 284 }

This page was automatically generated by Maven