001: package org.julp.examples;
002:
003: public class Item extends org.julp.AbstractDomainObject implements
004: java.io.Serializable, Cloneable {
005:
006: public Item() {
007: }
008:
009: protected java.lang.Integer invoiceId;
010: protected java.lang.Integer item;
011: protected java.lang.Integer productId;
012: protected java.lang.Integer quantity;
013: protected java.math.BigDecimal cost;
014:
015: public java.lang.Integer getInvoiceId() {
016: return this .invoiceId;
017: }
018:
019: public void setInvoiceId(java.lang.Integer invoiceId) {
020: if (!isLoading()) {
021: /* DBColumn nullability: NoNulls - modify as needed */
022: if (invoiceId == null) {
023: throw new IllegalArgumentException(
024: "Missing field: invoiceId");
025: }
026: if (!invoiceId.equals(this .invoiceId)) {
027: this .modified = true;
028: }
029: }
030: this .invoiceId = invoiceId;
031: }
032:
033: public java.lang.Integer getItem() {
034: return this .item;
035: }
036:
037: public void setItem(java.lang.Integer item) {
038: if (!isLoading()) {
039: /* DBColumn nullability: NoNulls - modify as needed */
040: if (item == null) {
041: throw new IllegalArgumentException(
042: "Missing field: item");
043: }
044: if (!item.equals(this .item)) {
045: this .modified = true;
046: }
047: }
048: this .item = item;
049: }
050:
051: public java.lang.Integer getProductId() {
052: return this .productId;
053: }
054:
055: public void setProductId(java.lang.Integer productId) {
056: if (!isLoading()) {
057: /* DBColumn nullability: NoNulls - modify as needed */
058: if (productId == null) {
059: throw new IllegalArgumentException(
060: "Missing field: productId");
061: }
062: if (!productId.equals(this .productId)) {
063: this .modified = true;
064: }
065: }
066: this .productId = productId;
067: }
068:
069: public java.lang.Integer getQuantity() {
070: return this .quantity;
071: }
072:
073: public void setQuantity(java.lang.Integer quantity) {
074: if (!isLoading()) {
075: /* DBColumn nullability: NoNulls - modify as needed */
076: if (quantity == null) {
077: throw new IllegalArgumentException(
078: "Missing field: quantity");
079: }
080: if (!quantity.equals(this .quantity)) {
081: this .modified = true;
082: }
083: }
084: this .quantity = quantity;
085: }
086:
087: public java.math.BigDecimal getCost() {
088: return this .cost;
089: }
090:
091: public void setCost(java.math.BigDecimal cost) {
092: if (!isLoading()) {
093: /* DBColumn nullability: NoNulls - modify as needed */
094: if (cost == null) {
095: throw new IllegalArgumentException(
096: "Missing field: cost");
097: }
098: if (!cost.equals(this .cost)) {
099: this .modified = true;
100: }
101: }
102: this.cost = cost;
103: }
104:
105: }
|