| 1 | |
|
| 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.BooleanPoemType; |
| 9 | |
import org.melati.poem.Capability; |
| 10 | |
import org.melati.poem.Column; |
| 11 | |
import org.melati.poem.Database; |
| 12 | |
import org.melati.poem.DefinitionSource; |
| 13 | |
import org.melati.poem.DisplayLevel; |
| 14 | |
import org.melati.poem.Field; |
| 15 | |
import org.melati.poem.IntegerPoemType; |
| 16 | |
import org.melati.poem.JdbcPersistent; |
| 17 | |
import org.melati.poem.Persistent; |
| 18 | |
import org.melati.poem.PoemException; |
| 19 | |
import org.melati.poem.ReferencePoemType; |
| 20 | |
import org.melati.poem.Searchability; |
| 21 | |
import org.melati.poem.StringPoemType; |
| 22 | |
import org.melati.poem.TimestampPoemType; |
| 23 | |
import org.melati.poem.TroidPoemType; |
| 24 | |
import org.melati.poem.ValidationPoemException; |
| 25 | |
import org.paneris.bibliomania.Advert; |
| 26 | |
import org.paneris.bibliomania.Author; |
| 27 | |
import org.paneris.bibliomania.BibliomaniaDatabaseTables; |
| 28 | |
import org.paneris.bibliomania.Book; |
| 29 | |
import org.paneris.bibliomania.Section; |
| 30 | |
import org.paneris.bibliomania.UnitTable; |
| 31 | |
|
| 32 | |
|
| 33 | |
|
| 34 | |
|
| 35 | |
|
| 36 | |
|
| 37 | |
|
| 38 | |
|
| 39 | |
public class BookTableBase<T extends Book> extends UnitTable<T> { |
| 40 | |
|
| 41 | 2 | private Column<Integer> col_id = null; |
| 42 | 2 | private Column<Integer> col_section = null; |
| 43 | 2 | private Column<Integer> col_author = null; |
| 44 | 2 | private Column<Integer> col_advert = null; |
| 45 | 2 | private Column<Integer> col_authorsequence = null; |
| 46 | 2 | private Column<String> col_title = null; |
| 47 | 2 | private Column<String> col_fulltitleifdifferent = null; |
| 48 | 2 | private Column<Boolean> col_paginated = null; |
| 49 | 2 | private Column<String> col_metatag_description = null; |
| 50 | 2 | private Column<String> col_metatag_keywords = null; |
| 51 | 2 | private Column<Timestamp> col_lastbookshopsearch = null; |
| 52 | 2 | private Column<Integer> col_overridecanreadcontent = null; |
| 53 | 2 | private Column<String> col_summary = null; |
| 54 | 2 | private Column<Boolean> col_hasnofrontpage = null; |
| 55 | 2 | private Column<Boolean> col_nonstandard = null; |
| 56 | |
|
| 57 | |
|
| 58 | |
|
| 59 | |
|
| 60 | |
|
| 61 | |
|
| 62 | |
|
| 63 | |
|
| 64 | |
|
| 65 | |
|
| 66 | |
|
| 67 | |
public BookTableBase( |
| 68 | |
Database database, String name, |
| 69 | |
DefinitionSource definitionSource) throws PoemException { |
| 70 | 2 | super(database, name, definitionSource); |
| 71 | 2 | } |
| 72 | |
|
| 73 | |
|
| 74 | |
|
| 75 | |
|
| 76 | |
|
| 77 | |
|
| 78 | |
|
| 79 | |
|
| 80 | |
public BibliomaniaDatabaseTables getBibliomaniaDatabaseTables() { |
| 81 | 12 | return (BibliomaniaDatabaseTables)getDatabase(); |
| 82 | |
} |
| 83 | |
|
| 84 | |
|
| 85 | |
|
| 86 | |
|
| 87 | |
|
| 88 | |
|
| 89 | |
|
| 90 | |
public void init() throws PoemException { |
| 91 | 2 | super.init(); |
| 92 | 2 | defineColumn(col_id = |
| 93 | |
new Column<Integer>(this, "id", |
| 94 | |
new TroidPoemType(), |
| 95 | 2 | DefinitionSource.dsd) { |
| 96 | |
public Object getCooked(Persistent g) |
| 97 | |
throws AccessPoemException, PoemException { |
| 98 | 0 | return ((Book)g).getId(); |
| 99 | |
} |
| 100 | |
|
| 101 | |
public void setCooked(Persistent g, Object cooked) |
| 102 | |
throws AccessPoemException, ValidationPoemException { |
| 103 | 0 | ((Book)g).setId((Integer)cooked); |
| 104 | 0 | } |
| 105 | |
|
| 106 | |
public Field<Integer> asField(Persistent g) { |
| 107 | 0 | return ((Book)g).getIdField(); |
| 108 | |
} |
| 109 | |
|
| 110 | |
public boolean defaultUserEditable() { |
| 111 | 0 | return false; |
| 112 | |
} |
| 113 | |
|
| 114 | |
public boolean defaultUserCreateable() { |
| 115 | 0 | return false; |
| 116 | |
} |
| 117 | |
|
| 118 | |
public int defaultDisplayOrder() { |
| 119 | 0 | return 0; |
| 120 | |
} |
| 121 | |
|
| 122 | |
public Object getRaw_unsafe(Persistent g) |
| 123 | |
throws AccessPoemException { |
| 124 | 1 | return ((Book)g).getId_unsafe(); |
| 125 | |
} |
| 126 | |
|
| 127 | |
public void setRaw_unsafe(Persistent g, Object raw) |
| 128 | |
throws AccessPoemException { |
| 129 | 3327 | ((Book)g).setId_unsafe((Integer)raw); |
| 130 | 3327 | } |
| 131 | |
|
| 132 | |
public Object getRaw(Persistent g) |
| 133 | |
throws AccessPoemException { |
| 134 | 0 | return ((Book)g).getId(); |
| 135 | |
} |
| 136 | |
|
| 137 | |
public void setRaw(Persistent g, Object raw) |
| 138 | |
throws AccessPoemException { |
| 139 | 0 | ((Book)g).setId((Integer)raw); |
| 140 | 0 | } |
| 141 | |
}); |
| 142 | |
|
| 143 | 2 | defineColumn(col_section = |
| 144 | |
new Column<Integer>(this, "section", |
| 145 | |
new ReferencePoemType(getBibliomaniaDatabaseTables(). |
| 146 | |
getSectionTable(), false), |
| 147 | 2 | DefinitionSource.dsd) { |
| 148 | |
public Object getCooked(Persistent g) |
| 149 | |
throws AccessPoemException, PoemException { |
| 150 | 0 | return ((Book)g).getSection(); |
| 151 | |
} |
| 152 | |
|
| 153 | |
public void setCooked(Persistent g, Object cooked) |
| 154 | |
throws AccessPoemException, ValidationPoemException { |
| 155 | 0 | ((Book)g).setSection((Section)cooked); |
| 156 | 0 | } |
| 157 | |
|
| 158 | |
public Field<Integer> asField(Persistent g) { |
| 159 | 0 | return ((Book)g).getSectionField(); |
| 160 | |
} |
| 161 | |
|
| 162 | |
public int defaultDisplayOrder() { |
| 163 | 0 | return 1; |
| 164 | |
} |
| 165 | |
|
| 166 | |
public String defaultDescription() { |
| 167 | 0 | return "The category under which the book falls"; |
| 168 | |
} |
| 169 | |
|
| 170 | |
public Object getRaw_unsafe(Persistent g) |
| 171 | |
throws AccessPoemException { |
| 172 | 1 | return ((Book)g).getSection_unsafe(); |
| 173 | |
} |
| 174 | |
|
| 175 | |
public void setRaw_unsafe(Persistent g, Object raw) |
| 176 | |
throws AccessPoemException { |
| 177 | 1663 | ((Book)g).setSection_unsafe((Integer)raw); |
| 178 | 1663 | } |
| 179 | |
|
| 180 | |
public Object getRaw(Persistent g) |
| 181 | |
throws AccessPoemException { |
| 182 | 0 | return ((Book)g).getSectionTroid(); |
| 183 | |
} |
| 184 | |
|
| 185 | |
public void setRaw(Persistent g, Object raw) |
| 186 | |
throws AccessPoemException { |
| 187 | 0 | ((Book)g).setSectionTroid((Integer)raw); |
| 188 | 0 | } |
| 189 | |
}); |
| 190 | |
|
| 191 | 2 | defineColumn(col_author = |
| 192 | |
new Column<Integer>(this, "author", |
| 193 | |
new ReferencePoemType(getBibliomaniaDatabaseTables(). |
| 194 | |
getAuthorTable(), false), |
| 195 | 2 | DefinitionSource.dsd) { |
| 196 | |
public Object getCooked(Persistent g) |
| 197 | |
throws AccessPoemException, PoemException { |
| 198 | 0 | return ((Book)g).getAuthor(); |
| 199 | |
} |
| 200 | |
|
| 201 | |
public void setCooked(Persistent g, Object cooked) |
| 202 | |
throws AccessPoemException, ValidationPoemException { |
| 203 | 0 | ((Book)g).setAuthor((Author)cooked); |
| 204 | 0 | } |
| 205 | |
|
| 206 | |
public Field<Integer> asField(Persistent g) { |
| 207 | 0 | return ((Book)g).getAuthorField(); |
| 208 | |
} |
| 209 | |
|
| 210 | |
public int defaultDisplayOrder() { |
| 211 | 0 | return 2; |
| 212 | |
} |
| 213 | |
|
| 214 | |
public String defaultDescription() { |
| 215 | 0 | return "The book's author"; |
| 216 | |
} |
| 217 | |
|
| 218 | |
public String defaultRenderinfo() { |
| 219 | 0 | return "SelectionWindow"; |
| 220 | |
} |
| 221 | |
|
| 222 | |
public Object getRaw_unsafe(Persistent g) |
| 223 | |
throws AccessPoemException { |
| 224 | 1 | return ((Book)g).getAuthor_unsafe(); |
| 225 | |
} |
| 226 | |
|
| 227 | |
public void setRaw_unsafe(Persistent g, Object raw) |
| 228 | |
throws AccessPoemException { |
| 229 | 1663 | ((Book)g).setAuthor_unsafe((Integer)raw); |
| 230 | 1663 | } |
| 231 | |
|
| 232 | |
public Object getRaw(Persistent g) |
| 233 | |
throws AccessPoemException { |
| 234 | 0 | return ((Book)g).getAuthorTroid(); |
| 235 | |
} |
| 236 | |
|
| 237 | |
public void setRaw(Persistent g, Object raw) |
| 238 | |
throws AccessPoemException { |
| 239 | 0 | ((Book)g).setAuthorTroid((Integer)raw); |
| 240 | 0 | } |
| 241 | |
}); |
| 242 | |
|
| 243 | 2 | defineColumn(col_advert = |
| 244 | |
new Column<Integer>(this, "advert", |
| 245 | |
new ReferencePoemType(getBibliomaniaDatabaseTables(). |
| 246 | |
getAdvertTable(), true), |
| 247 | 2 | DefinitionSource.dsd) { |
| 248 | |
public Object getCooked(Persistent g) |
| 249 | |
throws AccessPoemException, PoemException { |
| 250 | 0 | return ((Book)g).getAdvert(); |
| 251 | |
} |
| 252 | |
|
| 253 | |
public void setCooked(Persistent g, Object cooked) |
| 254 | |
throws AccessPoemException, ValidationPoemException { |
| 255 | 0 | ((Book)g).setAdvert((Advert)cooked); |
| 256 | 0 | } |
| 257 | |
|
| 258 | |
public Field<Integer> asField(Persistent g) { |
| 259 | 0 | return ((Book)g).getAdvertField(); |
| 260 | |
} |
| 261 | |
|
| 262 | |
public int defaultDisplayOrder() { |
| 263 | 0 | return 3; |
| 264 | |
} |
| 265 | |
|
| 266 | |
public String defaultDescription() { |
| 267 | 0 | return "Advert for this book"; |
| 268 | |
} |
| 269 | |
|
| 270 | |
public Object getRaw_unsafe(Persistent g) |
| 271 | |
throws AccessPoemException { |
| 272 | 1 | return ((Book)g).getAdvert_unsafe(); |
| 273 | |
} |
| 274 | |
|
| 275 | |
public void setRaw_unsafe(Persistent g, Object raw) |
| 276 | |
throws AccessPoemException { |
| 277 | 1663 | ((Book)g).setAdvert_unsafe((Integer)raw); |
| 278 | 1663 | } |
| 279 | |
|
| 280 | |
public Object getRaw(Persistent g) |
| 281 | |
throws AccessPoemException { |
| 282 | 0 | return ((Book)g).getAdvertTroid(); |
| 283 | |
} |
| 284 | |
|
| 285 | |
public void setRaw(Persistent g, Object raw) |
| 286 | |
throws AccessPoemException { |
| 287 | 0 | ((Book)g).setAdvertTroid((Integer)raw); |
| 288 | 0 | } |
| 289 | |
}); |
| 290 | |
|
| 291 | 2 | defineColumn(col_authorsequence = |
| 292 | |
new Column<Integer>(this, "authorsequence", |
| 293 | |
new IntegerPoemType(false), |
| 294 | 2 | DefinitionSource.dsd) { |
| 295 | |
public Object getCooked(Persistent g) |
| 296 | |
throws AccessPoemException, PoemException { |
| 297 | 0 | return ((Book)g).getAuthorsequence(); |
| 298 | |
} |
| 299 | |
|
| 300 | |
public void setCooked(Persistent g, Object cooked) |
| 301 | |
throws AccessPoemException, ValidationPoemException { |
| 302 | 0 | ((Book)g).setAuthorsequence((Integer)cooked); |
| 303 | 0 | } |
| 304 | |
|
| 305 | |
public Field<Integer> asField(Persistent g) { |
| 306 | 0 | return ((Book)g).getAuthorsequenceField(); |
| 307 | |
} |
| 308 | |
|
| 309 | |
public boolean defaultUserEditable() { |
| 310 | 0 | return false; |
| 311 | |
} |
| 312 | |
|
| 313 | |
public boolean defaultUserCreateable() { |
| 314 | 0 | return false; |
| 315 | |
} |
| 316 | |
|
| 317 | |
public DisplayLevel defaultDisplayLevel() { |
| 318 | 0 | return DisplayLevel.record; |
| 319 | |
} |
| 320 | |
|
| 321 | |
public Searchability defaultSearchability() { |
| 322 | 0 | return Searchability.no; |
| 323 | |
} |
| 324 | |
|
| 325 | |
public int defaultDisplayOrder() { |
| 326 | 0 | return 4; |
| 327 | |
} |
| 328 | |
|
| 329 | |
public String defaultDescription() { |
| 330 | 0 | return "An internal number used to distinguish between books by the same author in creating textIDs for the full text indexing subsystem"; |
| 331 | |
} |
| 332 | |
|
| 333 | |
public boolean defaultIndexed() { |
| 334 | 0 | return true; |
| 335 | |
} |
| 336 | |
|
| 337 | |
public Object getRaw_unsafe(Persistent g) |
| 338 | |
throws AccessPoemException { |
| 339 | 1 | return ((Book)g).getAuthorsequence_unsafe(); |
| 340 | |
} |
| 341 | |
|
| 342 | |
public void setRaw_unsafe(Persistent g, Object raw) |
| 343 | |
throws AccessPoemException { |
| 344 | 1663 | ((Book)g).setAuthorsequence_unsafe((Integer)raw); |
| 345 | 1663 | } |
| 346 | |
|
| 347 | |
public Object getRaw(Persistent g) |
| 348 | |
throws AccessPoemException { |
| 349 | 0 | return ((Book)g).getAuthorsequence(); |
| 350 | |
} |
| 351 | |
|
| 352 | |
public void setRaw(Persistent g, Object raw) |
| 353 | |
throws AccessPoemException { |
| 354 | 0 | ((Book)g).setAuthorsequence((Integer)raw); |
| 355 | 0 | } |
| 356 | |
}); |
| 357 | |
|
| 358 | 2 | defineColumn(col_title = |
| 359 | |
new Column<String>(this, "title", |
| 360 | |
new StringPoemType(false, -1), |
| 361 | 2 | DefinitionSource.dsd) { |
| 362 | |
public Object getCooked(Persistent g) |
| 363 | |
throws AccessPoemException, PoemException { |
| 364 | 0 | return ((Book)g).getTitle(); |
| 365 | |
} |
| 366 | |
|
| 367 | |
public void setCooked(Persistent g, Object cooked) |
| 368 | |
throws AccessPoemException, ValidationPoemException { |
| 369 | 0 | ((Book)g).setTitle((String)cooked); |
| 370 | 0 | } |
| 371 | |
|
| 372 | |
public Field<String> asField(Persistent g) { |
| 373 | 0 | return ((Book)g).getTitleField(); |
| 374 | |
} |
| 375 | |
|
| 376 | |
public DisplayLevel defaultDisplayLevel() { |
| 377 | 0 | return DisplayLevel.primary; |
| 378 | |
} |
| 379 | |
|
| 380 | |
public Searchability defaultSearchability() { |
| 381 | 0 | return Searchability.primary; |
| 382 | |
} |
| 383 | |
|
| 384 | |
public Integer defaultDisplayOrderPriority() { |
| 385 | 0 | return new Integer(0); |
| 386 | |
} |
| 387 | |
|
| 388 | |
public String defaultDisplayName() { |
| 389 | 0 | return "Short title"; |
| 390 | |
} |
| 391 | |
|
| 392 | |
public int defaultDisplayOrder() { |
| 393 | 0 | return 5; |
| 394 | |
} |
| 395 | |
|
| 396 | |
public String defaultDescription() { |
| 397 | 0 | return "A manageably short version of the book's title"; |
| 398 | |
} |
| 399 | |
|
| 400 | |
public Object getRaw_unsafe(Persistent g) |
| 401 | |
throws AccessPoemException { |
| 402 | 3 | return ((Book)g).getTitle_unsafe(); |
| 403 | |
} |
| 404 | |
|
| 405 | |
public void setRaw_unsafe(Persistent g, Object raw) |
| 406 | |
throws AccessPoemException { |
| 407 | 1663 | ((Book)g).setTitle_unsafe((String)raw); |
| 408 | 1663 | } |
| 409 | |
|
| 410 | |
public Object getRaw(Persistent g) |
| 411 | |
throws AccessPoemException { |
| 412 | 0 | return ((Book)g).getTitle(); |
| 413 | |
} |
| 414 | |
|
| 415 | |
public void setRaw(Persistent g, Object raw) |
| 416 | |
throws AccessPoemException { |
| 417 | 0 | ((Book)g).setTitle((String)raw); |
| 418 | 0 | } |
| 419 | |
}); |
| 420 | |
|
| 421 | 2 | defineColumn(col_fulltitleifdifferent = |
| 422 | |
new Column<String>(this, "fulltitleifdifferent", |
| 423 | |
new StringPoemType(true, -1), |
| 424 | 2 | DefinitionSource.dsd) { |
| 425 | |
public Object getCooked(Persistent g) |
| 426 | |
throws AccessPoemException, PoemException { |
| 427 | 0 | return ((Book)g).getFulltitleifdifferent(); |
| 428 | |
} |
| 429 | |
|
| 430 | |
public void setCooked(Persistent g, Object cooked) |
| 431 | |
throws AccessPoemException, ValidationPoemException { |
| 432 | 0 | ((Book)g).setFulltitleifdifferent((String)cooked); |
| 433 | 0 | } |
| 434 | |
|
| 435 | |
public Field<String> asField(Persistent g) { |
| 436 | 0 | return ((Book)g).getFulltitleifdifferentField(); |
| 437 | |
} |
| 438 | |
|
| 439 | |
public DisplayLevel defaultDisplayLevel() { |
| 440 | 0 | return DisplayLevel.record; |
| 441 | |
} |
| 442 | |
|
| 443 | |
public String defaultDisplayName() { |
| 444 | 0 | return "Full title"; |
| 445 | |
} |
| 446 | |
|
| 447 | |
public int defaultDisplayOrder() { |
| 448 | 0 | return 6; |
| 449 | |
} |
| 450 | |
|
| 451 | |
public String defaultDescription() { |
| 452 | 0 | return "The `full Monty' version of the book's title, if different"; |
| 453 | |
} |
| 454 | |
|
| 455 | |
public Object getRaw_unsafe(Persistent g) |
| 456 | |
throws AccessPoemException { |
| 457 | 1 | return ((Book)g).getFulltitleifdifferent_unsafe(); |
| 458 | |
} |
| 459 | |
|
| 460 | |
public void setRaw_unsafe(Persistent g, Object raw) |
| 461 | |
throws AccessPoemException { |
| 462 | 1663 | ((Book)g).setFulltitleifdifferent_unsafe((String)raw); |
| 463 | 1663 | } |
| 464 | |
|
| 465 | |
public Object getRaw(Persistent g) |
| 466 | |
throws AccessPoemException { |
| 467 | 0 | return ((Book)g).getFulltitleifdifferent(); |
| 468 | |
} |
| 469 | |
|
| 470 | |
public void setRaw(Persistent g, Object raw) |
| 471 | |
throws AccessPoemException { |
| 472 | 0 | ((Book)g).setFulltitleifdifferent((String)raw); |
| 473 | 0 | } |
| 474 | |
}); |
| 475 | |
|
| 476 | 2 | defineColumn(col_paginated = |
| 477 | |
new Column<Boolean>(this, "paginated", |
| 478 | |
new BooleanPoemType(false), |
| 479 | 2 | DefinitionSource.dsd) { |
| 480 | |
public Object getCooked(Persistent g) |
| 481 | |
throws AccessPoemException, PoemException { |
| 482 | 0 | return ((Book)g).getPaginated(); |
| 483 | |
} |
| 484 | |
|
| 485 | |
public void setCooked(Persistent g, Object cooked) |
| 486 | |
throws AccessPoemException, ValidationPoemException { |
| 487 | 0 | ((Book)g).setPaginated((Boolean)cooked); |
| 488 | 0 | } |
| 489 | |
|
| 490 | |
public Field<Boolean> asField(Persistent g) { |
| 491 | 0 | return ((Book)g).getPaginatedField(); |
| 492 | |
} |
| 493 | |
|
| 494 | |
public DisplayLevel defaultDisplayLevel() { |
| 495 | 0 | return DisplayLevel.record; |
| 496 | |
} |
| 497 | |
|
| 498 | |
public int defaultDisplayOrder() { |
| 499 | 0 | return 7; |
| 500 | |
} |
| 501 | |
|
| 502 | |
public String defaultDescription() { |
| 503 | 0 | return "Whether the book's chapters should be displayed in pre-paginated form"; |
| 504 | |
} |
| 505 | |
|
| 506 | |
public Object getRaw_unsafe(Persistent g) |
| 507 | |
throws AccessPoemException { |
| 508 | 1 | return ((Book)g).getPaginated_unsafe(); |
| 509 | |
} |
| 510 | |
|
| 511 | |
public void setRaw_unsafe(Persistent g, Object raw) |
| 512 | |
throws AccessPoemException { |
| 513 | 1663 | ((Book)g).setPaginated_unsafe((Boolean)raw); |
| 514 | 1663 | } |
| 515 | |
|
| 516 | |
public Object getRaw(Persistent g) |
| 517 | |
throws AccessPoemException { |
| 518 | 0 | return ((Book)g).getPaginated(); |
| 519 | |
} |
| 520 | |
|
| 521 | |
public void setRaw(Persistent g, Object raw) |
| 522 | |
throws AccessPoemException { |
| 523 | 0 | ((Book)g).setPaginated((Boolean)raw); |
| 524 | 0 | } |
| 525 | |
}); |
| 526 | |
|
| 527 | 2 | defineColumn(col_metatag_description = |
| 528 | |
new Column<String>(this, "metatag_description", |
| 529 | |
new StringPoemType(true, -1), |
| 530 | 2 | DefinitionSource.dsd) { |
| 531 | |
public Object getCooked(Persistent g) |
| 532 | |
throws AccessPoemException, PoemException { |
| 533 | 0 | return ((Book)g).getMetatag_description(); |
| 534 | |
} |
| 535 | |
|
| 536 | |
public void setCooked(Persistent g, Object cooked) |
| 537 | |
throws AccessPoemException, ValidationPoemException { |
| 538 | 0 | ((Book)g).setMetatag_description((String)cooked); |
| 539 | 0 | } |
| 540 | |
|
| 541 | |
public Field<String> asField(Persistent g) { |
| 542 | 0 | return ((Book)g).getMetatag_descriptionField(); |
| 543 | |
} |
| 544 | |
|
| 545 | |
public DisplayLevel defaultDisplayLevel() { |
| 546 | 0 | return DisplayLevel.record; |
| 547 | |
} |
| 548 | |
|
| 549 | |
public Searchability defaultSearchability() { |
| 550 | 0 | return Searchability.no; |
| 551 | |
} |
| 552 | |
|
| 553 | |
public int defaultDisplayOrder() { |
| 554 | 0 | return 8; |
| 555 | |
} |
| 556 | |
|
| 557 | |
public Object getRaw_unsafe(Persistent g) |
| 558 | |
throws AccessPoemException { |
| 559 | 1 | return ((Book)g).getMetatag_description_unsafe(); |
| 560 | |
} |
| 561 | |
|
| 562 | |
public void setRaw_unsafe(Persistent g, Object raw) |
| 563 | |
throws AccessPoemException { |
| 564 | 1663 | ((Book)g).setMetatag_description_unsafe((String)raw); |
| 565 | 1663 | } |
| 566 | |
|
| 567 | |
public Object getRaw(Persistent g) |
| 568 | |
throws AccessPoemException { |
| 569 | 0 | return ((Book)g).getMetatag_description(); |
| 570 | |
} |
| 571 | |
|
| 572 | |
public void setRaw(Persistent g, Object raw) |
| 573 | |
throws AccessPoemException { |
| 574 | 0 | ((Book)g).setMetatag_description((String)raw); |
| 575 | 0 | } |
| 576 | |
}); |
| 577 | |
|
| 578 | 2 | defineColumn(col_metatag_keywords = |
| 579 | |
new Column<String>(this, "metatag_keywords", |
| 580 | |
new StringPoemType(true, -1), |
| 581 | 2 | DefinitionSource.dsd) { |
| 582 | |
public Object getCooked(Persistent g) |
| 583 | |
throws AccessPoemException, PoemException { |
| 584 | 0 | return ((Book)g).getMetatag_keywords(); |
| 585 | |
} |
| 586 | |
|
| 587 | |
public void setCooked(Persistent g, Object cooked) |
| 588 | |
throws AccessPoemException, ValidationPoemException { |
| 589 | 0 | ((Book)g).setMetatag_keywords((String)cooked); |
| 590 | 0 | } |
| 591 | |
|
| 592 | |
public Field<String> asField(Persistent g) { |
| 593 | 0 | return ((Book)g).getMetatag_keywordsField(); |
| 594 | |
} |
| 595 | |
|
| 596 | |
public DisplayLevel defaultDisplayLevel() { |
| 597 | 0 | return DisplayLevel.record; |
| 598 | |
} |
| 599 | |
|
| 600 | |
public Searchability defaultSearchability() { |
| 601 | 0 | return Searchability.no; |
| 602 | |
} |
| 603 | |
|
| 604 | |
public int defaultDisplayOrder() { |
| 605 | 0 | return 9; |
| 606 | |
} |
| 607 | |
|
| 608 | |
public Object getRaw_unsafe(Persistent g) |
| 609 | |
throws AccessPoemException { |
| 610 | 1 | return ((Book)g).getMetatag_keywords_unsafe(); |
| 611 | |
} |
| 612 | |
|
| 613 | |
public void setRaw_unsafe(Persistent g, Object raw) |
| 614 | |
throws AccessPoemException { |
| 615 | 1663 | ((Book)g).setMetatag_keywords_unsafe((String)raw); |
| 616 | 1663 | } |
| 617 | |
|
| 618 | |
public Object getRaw(Persistent g) |
| 619 | |
throws AccessPoemException { |
| 620 | 0 | return ((Book)g).getMetatag_keywords(); |
| 621 | |
} |
| 622 | |
|
| 623 | |
public void setRaw(Persistent g, Object raw) |
| 624 | |
throws AccessPoemException { |
| 625 | 0 | ((Book)g).setMetatag_keywords((String)raw); |
| 626 | 0 | } |
| 627 | |
}); |
| 628 | |
|
| 629 | 2 | defineColumn(col_lastbookshopsearch = |
| 630 | |
new Column<Timestamp>(this, "lastbookshopsearch", |
| 631 | |
new TimestampPoemType(true), |
| 632 | 2 | DefinitionSource.dsd) { |
| 633 | |
public Object getCooked(Persistent g) |
| 634 | |
throws AccessPoemException, PoemException { |
| 635 | 0 | return ((Book)g).getLastbookshopsearch(); |
| 636 | |
} |
| 637 | |
|
| 638 | |
public void setCooked(Persistent g, Object cooked) |
| 639 | |
throws AccessPoemException, ValidationPoemException { |
| 640 | 0 | ((Book)g).setLastbookshopsearch((Timestamp)cooked); |
| 641 | 0 | } |
| 642 | |
|
| 643 | |
public Field<Timestamp> asField(Persistent g) { |
| 644 | 0 | return ((Book)g).getLastbookshopsearchField(); |
| 645 | |
} |
| 646 | |
|
| 647 | |
public DisplayLevel defaultDisplayLevel() { |
| 648 | 0 | return DisplayLevel.record; |
| 649 | |
} |
| 650 | |
|
| 651 | |
public String defaultDisplayName() { |
| 652 | 0 | return "Last bookshop search"; |
| 653 | |
} |
| 654 | |
|
| 655 | |
public int defaultDisplayOrder() { |
| 656 | 0 | return 10; |
| 657 | |
} |
| 658 | |
|
| 659 | |
public String defaultDescription() { |
| 660 | 0 | return "When a search was last made for stockings of this book in the online bookshops"; |
| 661 | |
} |
| 662 | |
|
| 663 | |
public boolean defaultIndexed() { |
| 664 | 0 | return true; |
| 665 | |
} |
| 666 | |
|
| 667 | |
public Object getRaw_unsafe(Persistent g) |
| 668 | |
throws AccessPoemException { |
| 669 | 1 | return ((Book)g).getLastbookshopsearch_unsafe(); |
| 670 | |
} |
| 671 | |
|
| 672 | |
public void setRaw_unsafe(Persistent g, Object raw) |
| 673 | |
throws AccessPoemException { |
| 674 | 1663 | ((Book)g).setLastbookshopsearch_unsafe((Timestamp)raw); |
| 675 | 1663 | } |
| 676 | |
|
| 677 | |
public Object getRaw(Persistent g) |
| 678 | |
throws AccessPoemException { |
| 679 | 0 | return ((Book)g).getLastbookshopsearch(); |
| 680 | |
} |
| 681 | |
|
| 682 | |
public void setRaw(Persistent g, Object raw) |
| 683 | |
throws AccessPoemException { |
| 684 | 0 | ((Book)g).setLastbookshopsearch((Timestamp)raw); |
| 685 | 0 | } |
| 686 | |
}); |
| 687 | |
|
| 688 | 2 | defineColumn(col_overridecanreadcontent = |
| 689 | |
new Column<Integer>(this, "overridecanreadcontent", |
| 690 | |
new ReferencePoemType(getBibliomaniaDatabaseTables(). |
| 691 | |
getCapabilityTable(), true), |
| 692 | 2 | DefinitionSource.dsd) { |
| 693 | |
public Object getCooked(Persistent g) |
| 694 | |
throws AccessPoemException, PoemException { |
| 695 | 0 | return ((Book)g).getOverridecanreadcontent(); |
| 696 | |
} |
| 697 | |
|
| 698 | |
public void setCooked(Persistent g, Object cooked) |
| 699 | |
throws AccessPoemException, ValidationPoemException { |
| 700 | 0 | ((Book)g).setOverridecanreadcontent((Capability)cooked); |
| 701 | 0 | } |
| 702 | |
|
| 703 | |
public Field<Integer> asField(Persistent g) { |
| 704 | 0 | return ((Book)g).getOverridecanreadcontentField(); |
| 705 | |
} |
| 706 | |
|
| 707 | |
public DisplayLevel defaultDisplayLevel() { |
| 708 | 0 | return DisplayLevel.record; |
| 709 | |
} |
| 710 | |
|
| 711 | |
public Searchability defaultSearchability() { |
| 712 | 0 | return Searchability.no; |
| 713 | |
} |
| 714 | |
|
| 715 | |
public String defaultDisplayName() { |
| 716 | 0 | return "`Read content' capability"; |
| 717 | |
} |
| 718 | |
|
| 719 | |
public int defaultDisplayOrder() { |
| 720 | 0 | return 11; |
| 721 | |
} |
| 722 | |
|
| 723 | |
public String defaultDescription() { |
| 724 | 0 | return "The capability required for reading the book (defaults to that for section)"; |
| 725 | |
} |
| 726 | |
|
| 727 | |
public Object getRaw_unsafe(Persistent g) |
| 728 | |
throws AccessPoemException { |
| 729 | 1 | return ((Book)g).getOverridecanreadcontent_unsafe(); |
| 730 | |
} |
| 731 | |
|
| 732 | |
public void setRaw_unsafe(Persistent g, Object raw) |
| 733 | |
throws AccessPoemException { |
| 734 | 1663 | ((Book)g).setOverridecanreadcontent_unsafe((Integer)raw); |
| 735 | 1663 | } |
| 736 | |
|
| 737 | |
public Object getRaw(Persistent g) |
| 738 | |
throws AccessPoemException { |
| 739 | 0 | return ((Book)g).getOverridecanreadcontentTroid(); |
| 740 | |
} |
| 741 | |
|
| 742 | |
public void setRaw(Persistent g, Object raw) |
| 743 | |
throws AccessPoemException { |
| 744 | 0 | ((Book)g).setOverridecanreadcontentTroid((Integer)raw); |
| 745 | 0 | } |
| 746 | |
}); |
| 747 | |
|
| 748 | 2 | defineColumn(col_summary = |
| 749 | |
new Column<String>(this, "summary", |
| 750 | |
new StringPoemType(true, -1), |
| 751 | 2 | DefinitionSource.dsd) { |
| 752 | |
public Object getCooked(Persistent g) |
| 753 | |
throws AccessPoemException, PoemException { |
| 754 | 0 | return ((Book)g).getSummary(); |
| 755 | |
} |
| 756 | |
|
| 757 | |
public void setCooked(Persistent g, Object cooked) |
| 758 | |
throws AccessPoemException, ValidationPoemException { |
| 759 | 0 | ((Book)g).setSummary((String)cooked); |
| 760 | 0 | } |
| 761 | |
|
| 762 | |
public Field<String> asField(Persistent g) { |
| 763 | 0 | return ((Book)g).getSummaryField(); |
| 764 | |
} |
| 765 | |
|
| 766 | |
public DisplayLevel defaultDisplayLevel() { |
| 767 | 0 | return DisplayLevel.record; |
| 768 | |
} |
| 769 | |
|
| 770 | |
public Searchability defaultSearchability() { |
| 771 | 0 | return Searchability.no; |
| 772 | |
} |
| 773 | |
|
| 774 | |
public int defaultDisplayOrder() { |
| 775 | 0 | return 12; |
| 776 | |
} |
| 777 | |
|
| 778 | |
public String defaultDescription() { |
| 779 | 0 | return "The book's blurb, to appear on its TOC page"; |
| 780 | |
} |
| 781 | |
|
| 782 | |
public int defaultWidth() { |
| 783 | 0 | return 80; |
| 784 | |
} |
| 785 | |
|
| 786 | |
public int defaultHeight() { |
| 787 | 0 | return 20; |
| 788 | |
} |
| 789 | |
|
| 790 | |
public Object getRaw_unsafe(Persistent g) |
| 791 | |
throws AccessPoemException { |
| 792 | 1 | return ((Book)g).getSummary_unsafe(); |
| 793 | |
} |
| 794 | |
|
| 795 | |
public void setRaw_unsafe(Persistent g, Object raw) |
| 796 | |
throws AccessPoemException { |
| 797 | 1663 | ((Book)g).setSummary_unsafe((String)raw); |
| 798 | 1663 | } |
| 799 | |
|
| 800 | |
public Object getRaw(Persistent g) |
| 801 | |
throws AccessPoemException { |
| 802 | 0 | return ((Book)g).getSummary(); |
| 803 | |
} |
| 804 | |
|
| 805 | |
public void setRaw(Persistent g, Object raw) |
| 806 | |
throws AccessPoemException { |
| 807 | 0 | ((Book)g).setSummary((String)raw); |
| 808 | 0 | } |
| 809 | |
}); |
| 810 | |
|
| 811 | 2 | defineColumn(col_hasnofrontpage = |
| 812 | |
new Column<Boolean>(this, "hasnofrontpage", |
| 813 | |
new BooleanPoemType(false), |
| 814 | 2 | DefinitionSource.dsd) { |
| 815 | |
public Object getCooked(Persistent g) |
| 816 | |
throws AccessPoemException, PoemException { |
| 817 | 0 | return ((Book)g).getHasnofrontpage(); |
| 818 | |
} |
| 819 | |
|
| 820 | |
public void setCooked(Persistent g, Object cooked) |
| 821 | |
throws AccessPoemException, ValidationPoemException { |
| 822 | 0 | ((Book)g).setHasnofrontpage((Boolean)cooked); |
| 823 | 0 | } |
| 824 | |
|
| 825 | |
public Field<Boolean> asField(Persistent g) { |
| 826 | 0 | return ((Book)g).getHasnofrontpageField(); |
| 827 | |
} |
| 828 | |
|
| 829 | |
public DisplayLevel defaultDisplayLevel() { |
| 830 | 0 | return DisplayLevel.record; |
| 831 | |
} |
| 832 | |
|
| 833 | |
public Searchability defaultSearchability() { |
| 834 | 0 | return Searchability.no; |
| 835 | |
} |
| 836 | |
|
| 837 | |
public String defaultDisplayName() { |
| 838 | 0 | return "Has no front page"; |
| 839 | |
} |
| 840 | |
|
| 841 | |
public int defaultDisplayOrder() { |
| 842 | 0 | return 13; |
| 843 | |
} |
| 844 | |
|
| 845 | |
public String defaultDescription() { |
| 846 | 0 | return "Whether the book should simply display the first page of its content instead of a `front page'"; |
| 847 | |
} |
| 848 | |
|
| 849 | |
public Object getRaw_unsafe(Persistent g) |
| 850 | |
throws AccessPoemException { |
| 851 | 1 | return ((Book)g).getHasnofrontpage_unsafe(); |
| 852 | |
} |
| 853 | |
|
| 854 | |
public void setRaw_unsafe(Persistent g, Object raw) |
| 855 | |
throws AccessPoemException { |
| 856 | 1663 | ((Book)g).setHasnofrontpage_unsafe((Boolean)raw); |
| 857 | 1663 | } |
| 858 | |
|
| 859 | |
public Object getRaw(Persistent g) |
| 860 | |
throws AccessPoemException { |
| 861 | 0 | return ((Book)g).getHasnofrontpage(); |
| 862 | |
} |
| 863 | |
|
| 864 | |
public void setRaw(Persistent g, Object raw) |
| 865 | |
throws AccessPoemException { |
| 866 | 0 | ((Book)g).setHasnofrontpage((Boolean)raw); |
| 867 | 0 | } |
| 868 | |
}); |
| 869 | |
|
| 870 | 2 | defineColumn(col_nonstandard = |
| 871 | |
new Column<Boolean>(this, "nonstandard", |
| 872 | |
new BooleanPoemType(false), |
| 873 | 2 | DefinitionSource.dsd) { |
| 874 | |
public Object getCooked(Persistent g) |
| 875 | |
throws AccessPoemException, PoemException { |
| 876 | 0 | return ((Book)g).getNonstandard(); |
| 877 | |
} |
| 878 | |
|
| 879 | |
public void setCooked(Persistent g, Object cooked) |
| 880 | |
throws AccessPoemException, ValidationPoemException { |
| 881 | 0 | ((Book)g).setNonstandard((Boolean)cooked); |
| 882 | 0 | } |
| 883 | |
|
| 884 | |
public Field<Boolean> asField(Persistent g) { |
| 885 | 0 | return ((Book)g).getNonstandardField(); |
| 886 | |
} |
| 887 | |
|
| 888 | |
public DisplayLevel defaultDisplayLevel() { |
| 889 | 0 | return DisplayLevel.record; |
| 890 | |
} |
| 891 | |
|
| 892 | |
public Searchability defaultSearchability() { |
| 893 | 0 | return Searchability.no; |
| 894 | |
} |
| 895 | |
|
| 896 | |
public String defaultDisplayName() { |
| 897 | 0 | return "Non-standard"; |
| 898 | |
} |
| 899 | |
|
| 900 | |
public int defaultDisplayOrder() { |
| 901 | 0 | return 14; |
| 902 | |
} |
| 903 | |
|
| 904 | |
public String defaultDescription() { |
| 905 | 0 | return "Whether the book has its own non-standard template"; |
| 906 | |
} |
| 907 | |
|
| 908 | |
public Object getRaw_unsafe(Persistent g) |
| 909 | |
throws AccessPoemException { |
| 910 | 1 | return ((Book)g).getNonstandard_unsafe(); |
| 911 | |
} |
| 912 | |
|
| 913 | |
public void setRaw_unsafe(Persistent g, Object raw) |
| 914 | |
throws AccessPoemException { |
| 915 | 1663 | ((Book)g).setNonstandard_unsafe((Boolean)raw); |
| 916 | 1663 | } |
| 917 | |
|
| 918 | |
public Object getRaw(Persistent g) |
| 919 | |
throws AccessPoemException { |
| 920 | 0 | return ((Book)g).getNonstandard(); |
| 921 | |
} |
| 922 | |
|
| 923 | |
public void setRaw(Persistent g, Object raw) |
| 924 | |
throws AccessPoemException { |
| 925 | 0 | ((Book)g).setNonstandard((Boolean)raw); |
| 926 | 0 | } |
| 927 | |
}); |
| 928 | 2 | } |
| 929 | |
|
| 930 | |
|
| 931 | |
|
| 932 | |
|
| 933 | |
|
| 934 | |
|
| 935 | |
|
| 936 | |
|
| 937 | |
|
| 938 | |
public final Column<Integer> getIdColumn() { |
| 939 | 0 | return col_id; |
| 940 | |
} |
| 941 | |
|
| 942 | |
|
| 943 | |
|
| 944 | |
|
| 945 | |
|
| 946 | |
|
| 947 | |
|
| 948 | |
|
| 949 | |
|
| 950 | |
public final Column<Integer> getSectionColumn() { |
| 951 | 1 | return col_section; |
| 952 | |
} |
| 953 | |
|
| 954 | |
|
| 955 | |
|
| 956 | |
|
| 957 | |
|
| 958 | |
|
| 959 | |
|
| 960 | |
|
| 961 | |
|
| 962 | |
public final Column<Integer> getAuthorColumn() { |
| 963 | 1 | return col_author; |
| 964 | |
} |
| 965 | |
|
| 966 | |
|
| 967 | |
|
| 968 | |
|
| 969 | |
|
| 970 | |
|
| 971 | |
|
| 972 | |
|
| 973 | |
|
| 974 | |
public final Column<Integer> getAdvertColumn() { |
| 975 | 0 | return col_advert; |
| 976 | |
} |
| 977 | |
|
| 978 | |
|
| 979 | |
|
| 980 | |
|
| 981 | |
|
| 982 | |
|
| 983 | |
|
| 984 | |
|
| 985 | |
|
| 986 | |
public final Column<Integer> getAuthorsequenceColumn() { |
| 987 | 0 | return col_authorsequence; |
| 988 | |
} |
| 989 | |
|
| 990 | |
|
| 991 | |
|
| 992 | |
|
| 993 | |
|
| 994 | |
|
| 995 | |
|
| 996 | |
|
| 997 | |
|
| 998 | |
public final Column<String> getTitleColumn() { |
| 999 | 5 | return col_title; |
| 1000 | |
} |
| 1001 | |
|
| 1002 | |
|
| 1003 | |
|
| 1004 | |
|
| 1005 | |
|
| 1006 | |
|
| 1007 | |
|
| 1008 | |
|
| 1009 | |
|
| 1010 | |
public final Column<String> getFulltitleifdifferentColumn() { |
| 1011 | 0 | return col_fulltitleifdifferent; |
| 1012 | |
} |
| 1013 | |
|
| 1014 | |
|
| 1015 | |
|
| 1016 | |
|
| 1017 | |
|
| 1018 | |
|
| 1019 | |
|
| 1020 | |
|
| 1021 | |
|
| 1022 | |
public final Column<Boolean> getPaginatedColumn() { |
| 1023 | 0 | return col_paginated; |
| 1024 | |
} |
| 1025 | |
|
| 1026 | |
|
| 1027 | |
|
| 1028 | |
|
| 1029 | |
|
| 1030 | |
|
| 1031 | |
|
| 1032 | |
|
| 1033 | |
|
| 1034 | |
public final Column<String> getMetatag_descriptionColumn() { |
| 1035 | 0 | return col_metatag_description; |
| 1036 | |
} |
| 1037 | |
|
| 1038 | |
|
| 1039 | |
|
| 1040 | |
|
| 1041 | |
|
| 1042 | |
|
| 1043 | |
|
| 1044 | |
|
| 1045 | |
|
| 1046 | |
public final Column<String> getMetatag_keywordsColumn() { |
| 1047 | 0 | return col_metatag_keywords; |
| 1048 | |
} |
| 1049 | |
|
| 1050 | |
|
| 1051 | |
|
| 1052 | |
|
| 1053 | |
|
| 1054 | |
|
| 1055 | |
|
| 1056 | |
|
| 1057 | |
|
| 1058 | |
public final Column<Timestamp> getLastbookshopsearchColumn() { |
| 1059 | 0 | return col_lastbookshopsearch; |
| 1060 | |
} |
| 1061 | |
|
| 1062 | |
|
| 1063 | |
|
| 1064 | |
|
| 1065 | |
|
| 1066 | |
|
| 1067 | |
|
| 1068 | |
|
| 1069 | |
|
| 1070 | |
public final Column<Integer> getOverridecanreadcontentColumn() { |
| 1071 | 0 | return col_overridecanreadcontent; |
| 1072 | |
} |
| 1073 | |
|
| 1074 | |
|
| 1075 | |
|
| 1076 | |
|
| 1077 | |
|
| 1078 | |
|
| 1079 | |
|
| 1080 | |
|
| 1081 | |
|
| 1082 | |
public final Column<String> getSummaryColumn() { |
| 1083 | 0 | return col_summary; |
| 1084 | |
} |
| 1085 | |
|
| 1086 | |
|
| 1087 | |
|
| 1088 | |
|
| 1089 | |
|
| 1090 | |
|
| 1091 | |
|
| 1092 | |
|
| 1093 | |
|
| 1094 | |
public final Column<Boolean> getHasnofrontpageColumn() { |
| 1095 | 0 | return col_hasnofrontpage; |
| 1096 | |
} |
| 1097 | |
|
| 1098 | |
|
| 1099 | |
|
| 1100 | |
|
| 1101 | |
|
| 1102 | |
|
| 1103 | |
|
| 1104 | |
|
| 1105 | |
|
| 1106 | |
public final Column<Boolean> getNonstandardColumn() { |
| 1107 | 0 | return col_nonstandard; |
| 1108 | |
} |
| 1109 | |
|
| 1110 | |
|
| 1111 | |
|
| 1112 | |
|
| 1113 | |
|
| 1114 | |
|
| 1115 | |
|
| 1116 | |
|
| 1117 | |
|
| 1118 | |
public Book getBookObject(Integer troid) { |
| 1119 | 126 | return (Book)getObject(troid); |
| 1120 | |
} |
| 1121 | |
|
| 1122 | |
|
| 1123 | |
|
| 1124 | |
|
| 1125 | |
|
| 1126 | |
|
| 1127 | |
|
| 1128 | |
|
| 1129 | |
|
| 1130 | |
public Book getBookObject(int troid) { |
| 1131 | 0 | return (Book)getObject(troid); |
| 1132 | |
} |
| 1133 | |
|
| 1134 | |
protected JdbcPersistent _newPersistent() { |
| 1135 | 1663 | return new Book(); |
| 1136 | |
} |
| 1137 | |
public String defaultDescription() { |
| 1138 | 0 | return "A book or other work"; |
| 1139 | |
} |
| 1140 | |
|
| 1141 | |
public int defaultDisplayOrder() { |
| 1142 | 0 | return 400; |
| 1143 | |
} |
| 1144 | |
} |
| 1145 | |
|