1 // Do not edit this file! It was generated by Melati POEM's DSD preprocessor. 2 3 package org.paneris.bibliomania.generated; 4 5 6 import java.sql.Timestamp; 7 import org.melati.poem.AccessPoemException; 8 import org.melati.poem.Column; 9 import org.melati.poem.Field; 10 import org.melati.poem.JdbcPersistent; 11 import org.melati.poem.ValidationPoemException; 12 import org.paneris.bibliomania.BibliomaniaDatabaseTables; 13 import org.paneris.bibliomania.StockingsSearch; 14 import org.paneris.bibliomania.StockingsSearchTable; 15 16 17 /** 18 * Melati POEM generated abstract base class for a <code>Persistent</code> 19 * <code>StockingsSearch</code> Object. 20 * 21 * see org.melati.poem.prepro.TableDef#generatePersistentBaseJava 22 */ 23 public abstract class StockingsSearchBase extends JdbcPersistent { 24 25 26 /** 27 * Retrieves the Database object. 28 * 29 * see org.melati.poem.prepro.TableDef#generatePersistentBaseJava 30 * @return the database 31 */ 32 public BibliomaniaDatabaseTables getBibliomaniaDatabaseTables() { 33 return (BibliomaniaDatabaseTables)getDatabase(); 34 } 35 36 37 /** 38 * Retrieves the <code>StockingsSearchTable</code> table 39 * which this <code>Persistent</code> is from. 40 * 41 * see org.melati.poem.prepro.TableDef#generatePersistentBaseJava 42 * @return the StockingsSearchTable 43 */ 44 @SuppressWarnings("unchecked") 45 public StockingsSearchTable<StockingsSearch> getStockingsSearchTable() { 46 return (StockingsSearchTable<StockingsSearch>)getTable(); 47 } 48 49 @SuppressWarnings("unchecked") 50 private StockingsSearchTable<StockingsSearch> _getStockingsSearchTable() { 51 return (StockingsSearchTable<StockingsSearch>)getTable(); 52 } 53 54 // Fields in this table 55 /** 56 * id 57 */ 58 protected Integer id; 59 /** 60 * authorterm 61 */ 62 protected String authorterm; 63 /** 64 * titleterm 65 */ 66 protected String titleterm; 67 /** 68 * lastperformed 69 */ 70 protected Timestamp lastperformed; 71 /** 72 * lastaccessed 73 */ 74 protected Timestamp lastaccessed; 75 76 77 /** 78 * Retrieves the <code>Id</code> value, without locking, 79 * for this <code>StockingsSearch</code> <code>Persistent</code>. 80 * 81 * see org.melati.poem.prepro.FieldDef#generateBaseMethods 82 * @return the Integer id 83 */ 84 public Integer getId_unsafe() { 85 return id; 86 } 87 88 89 /** 90 * Sets the <code>Id</code> value directly, without checking, 91 * for this StockingsSearch <code>Persistent</code>. 92 * 93 * see org.melati.poem.prepro.FieldDef#generateBaseMethods 94 * @param cooked the pre-validated value to set 95 */ 96 public void setId_unsafe(Integer cooked) { 97 id = cooked; 98 } 99 100 /** 101 * Retrieves the Id value, with locking, for this 102 * <code>StockingsSearch</code> <code>Persistent</code>. 103 * 104 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 105 * @throws AccessPoemException 106 * if the current <code>AccessToken</code> 107 * does not confer write access rights 108 * @return the value of the field <code>Id</code> for this 109 * <code>StockingsSearch</code> <code>Persistent</code> 110 */ 111 112 public Integer getId() 113 throws AccessPoemException { 114 readLock(); 115 return getId_unsafe(); 116 } 117 118 119 /** 120 * Sets the <code>Id</code> value, with checking, for this 121 * <code>StockingsSearch</code> <code>Persistent</code>. 122 * 123 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 124 * @param cooked a validated <code>int</code> 125 * @throws AccessPoemException 126 * if the current <code>AccessToken</code> 127 * does not confer write access rights 128 * @throws ValidationPoemException 129 * if the value is not valid 130 */ 131 public void setId(Integer cooked) 132 throws AccessPoemException, ValidationPoemException { 133 _getStockingsSearchTable().getIdColumn(). 134 getType().assertValidCooked(cooked); 135 writeLock(); 136 setId_unsafe(cooked); 137 } 138 139 /** 140 * Sets the <code>Id</code> value, with checking, for this 141 * <code>StockingsSearch</code> <code>Persistent</code>. 142 * 143 * Generated by org.melati.poem.prepro.IntegerFieldDef#generateBaseMethods 144 * @param cooked a validated <code>int</code> 145 * @throws AccessPoemException 146 * if the current <code>AccessToken</code> 147 * does not confer write access rights 148 * @throws ValidationPoemException 149 * if the value is not valid 150 */ 151 152 public final void setId(int cooked) 153 throws AccessPoemException, ValidationPoemException { 154 setId(new Integer(cooked)); 155 } 156 157 158 /** 159 * Retrieves the <code>Id</code> value as a <code>Field</code> 160 * from this <code>StockingsSearch</code> <code>Persistent</code>. 161 * 162 * see org.melati.poem.prepro.FieldDef#generateFieldCreator 163 * @throws AccessPoemException 164 * if the current <code>AccessToken</code> 165 * does not confer write access rights 166 * @return the Integer id 167 */ 168 public Field<Integer> getIdField() throws AccessPoemException { 169 Column<Integer> c = _getStockingsSearchTable().getIdColumn(); 170 return new Field<Integer>((Integer)c.getRaw(this), c); 171 } 172 173 174 /** 175 * Retrieves the <code>Authorterm</code> value, without locking, 176 * for this <code>StockingsSearch</code> <code>Persistent</code>. 177 * 178 * see org.melati.poem.prepro.FieldDef#generateBaseMethods 179 * @return the String authorterm 180 */ 181 public String getAuthorterm_unsafe() { 182 return authorterm; 183 } 184 185 186 /** 187 * Sets the <code>Authorterm</code> value directly, without checking, 188 * for this StockingsSearch <code>Persistent</code>. 189 * 190 * see org.melati.poem.prepro.FieldDef#generateBaseMethods 191 * @param cooked the pre-validated value to set 192 */ 193 public void setAuthorterm_unsafe(String cooked) { 194 authorterm = cooked; 195 } 196 197 /** 198 * Retrieves the Authorterm value, with locking, for this 199 * <code>StockingsSearch</code> <code>Persistent</code>. 200 * 201 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 202 * @throws AccessPoemException 203 * if the current <code>AccessToken</code> 204 * does not confer write access rights 205 * @return the value of the field <code>Authorterm</code> for this 206 * <code>StockingsSearch</code> <code>Persistent</code> 207 */ 208 209 public String getAuthorterm() 210 throws AccessPoemException { 211 readLock(); 212 return getAuthorterm_unsafe(); 213 } 214 215 216 /** 217 * Sets the <code>Authorterm</code> value, with checking, for this 218 * <code>StockingsSearch</code> <code>Persistent</code>. 219 * 220 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 221 * @param cooked a validated <code>int</code> 222 * @throws AccessPoemException 223 * if the current <code>AccessToken</code> 224 * does not confer write access rights 225 * @throws ValidationPoemException 226 * if the value is not valid 227 */ 228 public void setAuthorterm(String cooked) 229 throws AccessPoemException, ValidationPoemException { 230 _getStockingsSearchTable().getAuthortermColumn(). 231 getType().assertValidCooked(cooked); 232 writeLock(); 233 setAuthorterm_unsafe(cooked); 234 } 235 236 237 /** 238 * Retrieves the <code>Authorterm</code> value as a <code>Field</code> 239 * from this <code>StockingsSearch</code> <code>Persistent</code>. 240 * 241 * see org.melati.poem.prepro.FieldDef#generateFieldCreator 242 * @throws AccessPoemException 243 * if the current <code>AccessToken</code> 244 * does not confer write access rights 245 * @return the String authorterm 246 */ 247 public Field<String> getAuthortermField() throws AccessPoemException { 248 Column<String> c = _getStockingsSearchTable().getAuthortermColumn(); 249 return new Field<String>((String)c.getRaw(this), c); 250 } 251 252 253 /** 254 * Retrieves the <code>Titleterm</code> value, without locking, 255 * for this <code>StockingsSearch</code> <code>Persistent</code>. 256 * 257 * see org.melati.poem.prepro.FieldDef#generateBaseMethods 258 * @return the String titleterm 259 */ 260 public String getTitleterm_unsafe() { 261 return titleterm; 262 } 263 264 265 /** 266 * Sets the <code>Titleterm</code> value directly, without checking, 267 * for this StockingsSearch <code>Persistent</code>. 268 * 269 * see org.melati.poem.prepro.FieldDef#generateBaseMethods 270 * @param cooked the pre-validated value to set 271 */ 272 public void setTitleterm_unsafe(String cooked) { 273 titleterm = cooked; 274 } 275 276 /** 277 * Retrieves the Titleterm value, with locking, for this 278 * <code>StockingsSearch</code> <code>Persistent</code>. 279 * 280 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 281 * @throws AccessPoemException 282 * if the current <code>AccessToken</code> 283 * does not confer write access rights 284 * @return the value of the field <code>Titleterm</code> for this 285 * <code>StockingsSearch</code> <code>Persistent</code> 286 */ 287 288 public String getTitleterm() 289 throws AccessPoemException { 290 readLock(); 291 return getTitleterm_unsafe(); 292 } 293 294 295 /** 296 * Sets the <code>Titleterm</code> value, with checking, for this 297 * <code>StockingsSearch</code> <code>Persistent</code>. 298 * 299 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 300 * @param cooked a validated <code>int</code> 301 * @throws AccessPoemException 302 * if the current <code>AccessToken</code> 303 * does not confer write access rights 304 * @throws ValidationPoemException 305 * if the value is not valid 306 */ 307 public void setTitleterm(String cooked) 308 throws AccessPoemException, ValidationPoemException { 309 _getStockingsSearchTable().getTitletermColumn(). 310 getType().assertValidCooked(cooked); 311 writeLock(); 312 setTitleterm_unsafe(cooked); 313 } 314 315 316 /** 317 * Retrieves the <code>Titleterm</code> value as a <code>Field</code> 318 * from this <code>StockingsSearch</code> <code>Persistent</code>. 319 * 320 * see org.melati.poem.prepro.FieldDef#generateFieldCreator 321 * @throws AccessPoemException 322 * if the current <code>AccessToken</code> 323 * does not confer write access rights 324 * @return the String titleterm 325 */ 326 public Field<String> getTitletermField() throws AccessPoemException { 327 Column<String> c = _getStockingsSearchTable().getTitletermColumn(); 328 return new Field<String>((String)c.getRaw(this), c); 329 } 330 331 332 /** 333 * Retrieves the <code>Lastperformed</code> value, without locking, 334 * for this <code>StockingsSearch</code> <code>Persistent</code>. 335 * 336 * see org.melati.poem.prepro.FieldDef#generateBaseMethods 337 * @return the Timestamp lastperformed 338 */ 339 public Timestamp getLastperformed_unsafe() { 340 return lastperformed; 341 } 342 343 344 /** 345 * Sets the <code>Lastperformed</code> value directly, without checking, 346 * for this StockingsSearch <code>Persistent</code>. 347 * 348 * see org.melati.poem.prepro.FieldDef#generateBaseMethods 349 * @param cooked the pre-validated value to set 350 */ 351 public void setLastperformed_unsafe(Timestamp cooked) { 352 lastperformed = cooked; 353 } 354 355 /** 356 * Retrieves the Lastperformed value, with locking, for this 357 * <code>StockingsSearch</code> <code>Persistent</code>. 358 * 359 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 360 * @throws AccessPoemException 361 * if the current <code>AccessToken</code> 362 * does not confer write access rights 363 * @return the value of the field <code>Lastperformed</code> for this 364 * <code>StockingsSearch</code> <code>Persistent</code> 365 */ 366 367 public Timestamp getLastperformed() 368 throws AccessPoemException { 369 readLock(); 370 return getLastperformed_unsafe(); 371 } 372 373 374 /** 375 * Sets the <code>Lastperformed</code> value, with checking, for this 376 * <code>StockingsSearch</code> <code>Persistent</code>. 377 * 378 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 379 * @param cooked a validated <code>int</code> 380 * @throws AccessPoemException 381 * if the current <code>AccessToken</code> 382 * does not confer write access rights 383 * @throws ValidationPoemException 384 * if the value is not valid 385 */ 386 public void setLastperformed(Timestamp cooked) 387 throws AccessPoemException, ValidationPoemException { 388 _getStockingsSearchTable().getLastperformedColumn(). 389 getType().assertValidCooked(cooked); 390 writeLock(); 391 setLastperformed_unsafe(cooked); 392 } 393 394 395 /** 396 * Retrieves the <code>Lastperformed</code> value as a <code>Field</code> 397 * from this <code>StockingsSearch</code> <code>Persistent</code>. 398 * 399 * see org.melati.poem.prepro.FieldDef#generateFieldCreator 400 * @throws AccessPoemException 401 * if the current <code>AccessToken</code> 402 * does not confer write access rights 403 * @return the Timestamp lastperformed 404 */ 405 public Field<Timestamp> getLastperformedField() throws AccessPoemException { 406 Column<Timestamp> c = _getStockingsSearchTable().getLastperformedColumn(); 407 return new Field<Timestamp>((Timestamp)c.getRaw(this), c); 408 } 409 410 411 /** 412 * Retrieves the <code>Lastaccessed</code> value, without locking, 413 * for this <code>StockingsSearch</code> <code>Persistent</code>. 414 * 415 * see org.melati.poem.prepro.FieldDef#generateBaseMethods 416 * @return the Timestamp lastaccessed 417 */ 418 public Timestamp getLastaccessed_unsafe() { 419 return lastaccessed; 420 } 421 422 423 /** 424 * Sets the <code>Lastaccessed</code> value directly, without checking, 425 * for this StockingsSearch <code>Persistent</code>. 426 * 427 * see org.melati.poem.prepro.FieldDef#generateBaseMethods 428 * @param cooked the pre-validated value to set 429 */ 430 public void setLastaccessed_unsafe(Timestamp cooked) { 431 lastaccessed = cooked; 432 } 433 434 /** 435 * Retrieves the Lastaccessed value, with locking, for this 436 * <code>StockingsSearch</code> <code>Persistent</code>. 437 * 438 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 439 * @throws AccessPoemException 440 * if the current <code>AccessToken</code> 441 * does not confer write access rights 442 * @return the value of the field <code>Lastaccessed</code> for this 443 * <code>StockingsSearch</code> <code>Persistent</code> 444 */ 445 446 public Timestamp getLastaccessed() 447 throws AccessPoemException { 448 readLock(); 449 return getLastaccessed_unsafe(); 450 } 451 452 453 /** 454 * Sets the <code>Lastaccessed</code> value, with checking, for this 455 * <code>StockingsSearch</code> <code>Persistent</code>. 456 * 457 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods 458 * @param cooked a validated <code>int</code> 459 * @throws AccessPoemException 460 * if the current <code>AccessToken</code> 461 * does not confer write access rights 462 * @throws ValidationPoemException 463 * if the value is not valid 464 */ 465 public void setLastaccessed(Timestamp cooked) 466 throws AccessPoemException, ValidationPoemException { 467 _getStockingsSearchTable().getLastaccessedColumn(). 468 getType().assertValidCooked(cooked); 469 writeLock(); 470 setLastaccessed_unsafe(cooked); 471 } 472 473 474 /** 475 * Retrieves the <code>Lastaccessed</code> value as a <code>Field</code> 476 * from this <code>StockingsSearch</code> <code>Persistent</code>. 477 * 478 * see org.melati.poem.prepro.FieldDef#generateFieldCreator 479 * @throws AccessPoemException 480 * if the current <code>AccessToken</code> 481 * does not confer write access rights 482 * @return the Timestamp lastaccessed 483 */ 484 public Field<Timestamp> getLastaccessedField() throws AccessPoemException { 485 Column<Timestamp> c = _getStockingsSearchTable().getLastaccessedColumn(); 486 return new Field<Timestamp>((Timestamp)c.getRaw(this), c); 487 } 488 489 } 490