📄 customervalue.java
字号:
/* * Generated by XDoclet - Do not edit! */package test.interfaces;/** * Value object for Customer. * * @xdoclet-generated at 22-10-04 * @copyright The XDoclet Team * @author XDoclet * @version 1.2.2 */public class CustomerValue extends java.lang.Object implements java.io.Serializable { private float credit; private boolean creditHasBeenSet = false; private java.lang.String[][] array; private boolean arrayHasBeenSet = false; private byte[] image; private boolean imageHasBeenSet = false; private float tax; private boolean taxHasBeenSet = false; private java.lang.String id; private boolean idHasBeenSet = false; private java.lang.String name; private boolean nameHasBeenSet = false; private java.lang.String firstName; private boolean firstNameHasBeenSet = false; private java.lang.String phone; private boolean phoneHasBeenSet = false; private java.lang.String fax; private boolean faxHasBeenSet = false; private java.util.Collection AccountViews = new java.util.ArrayList(); private java.util.Collection ShippingAddressValues = new java.util.ArrayList(); private test.interfaces.CustomerPK pk; private int _version = 0; public CustomerValue() { pk = new test.interfaces.CustomerPK(); } public CustomerValue( float credit,java.lang.String[][] array,byte[] image,float tax,java.lang.String id,java.lang.String name,java.lang.String firstName,java.lang.String phone,java.lang.String fax ) { this.credit = credit; creditHasBeenSet = true; this.array = array; arrayHasBeenSet = true; this.image = image; imageHasBeenSet = true; this.tax = tax; taxHasBeenSet = true; this.id = id; idHasBeenSet = true; this.name = name; nameHasBeenSet = true; this.firstName = firstName; firstNameHasBeenSet = true; this.phone = phone; phoneHasBeenSet = true; this.fax = fax; faxHasBeenSet = true; pk = new test.interfaces.CustomerPK(this.getId()); } //TODO Cloneable is better than this ! public CustomerValue( CustomerValue otherValue ) { this.credit = otherValue.credit; creditHasBeenSet = true; this.array = otherValue.array; arrayHasBeenSet = true; this.image = otherValue.image; imageHasBeenSet = true; this.tax = otherValue.tax; taxHasBeenSet = true; this.id = otherValue.id; idHasBeenSet = true; this.name = otherValue.name; nameHasBeenSet = true; this.firstName = otherValue.firstName; firstNameHasBeenSet = true; this.phone = otherValue.phone; phoneHasBeenSet = true; this.fax = otherValue.fax; faxHasBeenSet = true; // TODO Clone is better no ? this.AccountViews = otherValue.AccountViews; // TODO Clone is better no ? this.ShippingAddressValues = otherValue.ShippingAddressValues; pk = new test.interfaces.CustomerPK(this.getId()); } public test.interfaces.CustomerPK getPrimaryKey() { return pk; } public void setPrimaryKey( test.interfaces.CustomerPK pk ) { // it's also nice to update PK object - just in case // somebody would ask for it later... this.pk = pk; setId( pk.id ); } public float getCredit() { return this.credit; } public void setCredit( float credit ) { this.credit = credit; creditHasBeenSet = true; } public boolean creditHasBeenSet(){ return creditHasBeenSet; } public java.lang.String[][] getArray() { return this.array; } public byte[] getImage() { return this.image; } public float getTax() { return this.tax; } public java.lang.String getId() { return this.id; } public void setId( java.lang.String id ) { this.id = id; idHasBeenSet = true; pk.setId(id); } public boolean idHasBeenSet(){ return idHasBeenSet; } public java.lang.String getName() { return this.name; } public void setName( java.lang.String name ) { this.name = name; nameHasBeenSet = true; } public boolean nameHasBeenSet(){ return nameHasBeenSet; } public java.lang.String getFirstName() { return this.firstName; } public void setFirstName( java.lang.String firstName ) { this.firstName = firstName; firstNameHasBeenSet = true; } public boolean firstNameHasBeenSet(){ return firstNameHasBeenSet; } public java.lang.String getPhone() { return this.phone; } public void setPhone( java.lang.String phone ) { this.phone = phone; phoneHasBeenSet = true; } public boolean phoneHasBeenSet(){ return phoneHasBeenSet; } public java.lang.String getFax() { return this.fax; } public void setFax( java.lang.String fax ) { this.fax = fax; faxHasBeenSet = true; } public boolean faxHasBeenSet(){ return faxHasBeenSet; } protected java.util.Collection addedAccountViews = new java.util.ArrayList(); protected java.util.Collection onceAddedAccountViews = new java.util.ArrayList(); protected java.util.Collection removedAccountViews = new java.util.ArrayList(); protected java.util.Collection updatedAccountViews = new java.util.ArrayList(); public java.util.Collection getAddedAccountViews() { return addedAccountViews; } public java.util.Collection getOnceAddedAccountViews() { return onceAddedAccountViews; } public java.util.Collection getRemovedAccountViews() { return removedAccountViews; } public java.util.Collection getUpdatedAccountViews() { return updatedAccountViews; } public void setAddedAccountViews(java.util.Collection addedAccountViews) { this.addedAccountViews.clear(); this.addedAccountViews.addAll(addedAccountViews); } public void setOnceAddedAccountViews(java.util.Collection onceAddedAccountViews) { this.onceAddedAccountViews.clear(); this.onceAddedAccountViews.addAll(onceAddedAccountViews); } public void setRemovedAccountViews(java.util.Collection removedAccountViews) { this.removedAccountViews.clear(); this.removedAccountViews.addAll(removedAccountViews); } public void setUpdatedAccountViews(java.util.Collection updatedAccountViews) { this.updatedAccountViews.clear(); this.updatedAccountViews.addAll(updatedAccountViews); } public test.interfaces.AccountValue[] getAccountViews() { return (test.interfaces.AccountValue[])this.AccountViews.toArray(new test.interfaces.AccountValue[AccountViews.size()]); } public void setAccountViews(test.interfaces.AccountValue[] AccountViews) { this.AccountViews.clear(); for (int i=0; i < AccountViews.length; i++) this.AccountViews.add(AccountViews[i]); } public void clearAccountViews() { this.AccountViews.clear(); } public void addAccountView(test.interfaces.AccountValue added) { this.AccountViews.add(added); if (this.removedAccountViews.contains(added)) { this.removedAccountViews.remove(added); if (this.onceAddedAccountViews.contains(added)) { if (! this.addedAccountViews.contains(added)) this.addedAccountViews.add(added); } else if (! this.updatedAccountViews.contains(added)) { this.updatedAccountViews.add(added); } } else { if (! this.onceAddedAccountViews.contains(added)) this.onceAddedAccountViews.add(added); if (! this.addedAccountViews.contains(added)) this.addedAccountViews.add(added); } } public void removeAccountView(test.interfaces.AccountValue removed) { this.AccountViews.remove(removed); if (this.addedAccountViews.contains(removed)) this.addedAccountViews.remove(removed); else if (! this.removedAccountViews.contains(removed)) this.removedAccountViews.add(removed);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -