1 4 package test.interfaces; 5 6 19 public class CustomerValue 20 extends java.lang.Object 21 implements java.io.Serializable , java.lang.Cloneable 22 { 23 24 private float credit; 25 private boolean creditHasBeenSet = false; 26 27 private java.lang.String [][] array; 28 private boolean arrayHasBeenSet = false; 29 30 private byte[] image; 31 private boolean imageHasBeenSet = false; 32 33 private float tax; 34 private boolean taxHasBeenSet = false; 35 36 private java.lang.String id; 37 private boolean idHasBeenSet = false; 38 39 private java.lang.String name; 40 private boolean nameHasBeenSet = false; 41 42 private java.lang.String firstName; 43 private boolean firstNameHasBeenSet = false; 44 45 private java.lang.String phone; 46 private boolean phoneHasBeenSet = false; 47 48 private java.lang.String fax; 49 private boolean faxHasBeenSet = false; 50 private java.util.Collection AccountViews = wrapCollection(new java.util.ArrayList () ); 51 52 private java.util.Collection ShippingAddressValues = wrapCollection(new java.util.ArrayList () ); 53 54 private test.interfaces.CustomerPK primaryKey; 55 56 private int _version = 0; 57 58 public CustomerValue() 59 { 60 primaryKey = new test.interfaces.CustomerPK(); 61 } 62 63 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 ) 64 { 65 setCredit(credit); 66 setArray(array); 67 setImage(image); 68 setTax(tax); 69 setId(id); 70 setName(name); 71 setFirstName(firstName); 72 setPhone(phone); 73 setFax(fax); 74 primaryKey = new test.interfaces.CustomerPK(this.getId()); 75 } 76 77 80 public CustomerValue( CustomerValue otherValue ) 81 { 82 this.credit = otherValue.credit; 83 creditHasBeenSet = true; 84 this.array = otherValue.array; 85 arrayHasBeenSet = true; 86 this.image = otherValue.image; 87 imageHasBeenSet = true; 88 this.tax = otherValue.tax; 89 taxHasBeenSet = true; 90 this.id = otherValue.id; 91 idHasBeenSet = true; 92 this.name = otherValue.name; 93 nameHasBeenSet = true; 94 this.firstName = otherValue.firstName; 95 firstNameHasBeenSet = true; 96 this.phone = otherValue.phone; 97 phoneHasBeenSet = true; 98 this.fax = otherValue.fax; 99 faxHasBeenSet = true; 100 this.AccountViews.addAll(otherValue.AccountViews); 101 this.ShippingAddressValues.addAll(otherValue.ShippingAddressValues); 102 103 primaryKey = new test.interfaces.CustomerPK(this.getId()); 104 } 105 106 public test.interfaces.CustomerPK getPrimaryKey() 107 { 108 return primaryKey; 109 } 110 111 public void setPrimaryKey( test.interfaces.CustomerPK primaryKey) 112 { 113 this.primaryKey = primaryKey; 116 setId( primaryKey.id ); 117 } 118 119 public float getCredit() 120 { 121 return this.credit; 122 } 123 124 public void setCredit( float credit ) 125 { 126 this.credit = credit; 127 creditHasBeenSet = true; 128 129 } 130 131 public boolean creditHasBeenSet(){ 132 return creditHasBeenSet; 133 } 134 public java.lang.String [][] getArray() 135 { 136 return this.array; 137 } 138 139 private void setArray( java.lang.String [][] array ) 140 { 141 this.array = array; 142 arrayHasBeenSet = true; 143 144 } 145 146 public byte[] getImage() 147 { 148 return this.image; 149 } 150 151 private void setImage( byte[] image ) 152 { 153 this.image = image; 154 imageHasBeenSet = true; 155 156 } 157 158 public float getTax() 159 { 160 return this.tax; 161 } 162 163 private void setTax( float tax ) 164 { 165 this.tax = tax; 166 taxHasBeenSet = true; 167 168 } 169 170 public java.lang.String getId() 171 { 172 return this.id; 173 } 174 175 public void setId( java.lang.String id ) 176 { 177 this.id = id; 178 idHasBeenSet = true; 179 180 primaryKey.setId(id); 181 } 182 183 public boolean idHasBeenSet(){ 184 return idHasBeenSet; 185 } 186 public java.lang.String getName() 187 { 188 return this.name; 189 } 190 191 public void setName( java.lang.String name ) 192 { 193 this.name = name; 194 nameHasBeenSet = true; 195 196 } 197 198 public boolean nameHasBeenSet(){ 199 return nameHasBeenSet; 200 } 201 public java.lang.String getFirstName() 202 { 203 return this.firstName; 204 } 205 206 public void setFirstName( java.lang.String firstName ) 207 { 208 this.firstName = firstName; 209 firstNameHasBeenSet = true; 210 211 } 212 213 public boolean firstNameHasBeenSet(){ 214 return firstNameHasBeenSet; 215 } 216 public java.lang.String getPhone() 217 { 218 return this.phone; 219 } 220 221 public void setPhone( java.lang.String phone ) 222 { 223 this.phone = phone; 224 phoneHasBeenSet = true; 225 226 } 227 228 public boolean phoneHasBeenSet(){ 229 return phoneHasBeenSet; 230 } 231 public java.lang.String getFax() 232 { 233 return this.fax; 234 } 235 236 public void setFax( java.lang.String fax ) 237 { 238 this.fax = fax; 239 faxHasBeenSet = true; 240 241 } 242 243 public boolean faxHasBeenSet(){ 244 return faxHasBeenSet; 245 } 246 247 protected java.util.Collection addedAccountViews = wrapCollection(new java.util.ArrayList ()); 248 protected java.util.Collection onceAddedAccountViews = wrapCollection(new java.util.ArrayList ()); 249 protected java.util.Collection removedAccountViews = wrapCollection(new java.util.ArrayList ()); 250 protected java.util.Collection updatedAccountViews = wrapCollection(new java.util.ArrayList ()); 251 252 255 public java.util.Collection getAddedAccountViews() { return wrapReadOnly(addedAccountViews); } 256 257 260 public java.util.Collection getOnceAddedAccountViews() { return wrapReadOnly(onceAddedAccountViews); } 261 264 public java.util.Collection getRemovedAccountViews() { return wrapReadOnly(removedAccountViews); } 265 268 public java.util.Collection getUpdatedAccountViews() { return wrapReadOnly(updatedAccountViews); } 269 272 public java.util.Collection getAccountViewCollection() { return wrapReadOnly(AccountViews); } 273 274 289 public void setAddedAccountViews(java.util.Collection addedAccountViews) 290 { 291 java.util.List tempList = java.util.Arrays.asList(addedAccountViews.toArray()); 293 this.addedAccountViews.clear(); 294 this.addedAccountViews.addAll(tempList); 295 } 296 297 312 public void setOnceAddedAccountViews(java.util.Collection onceAddedAccountViews) 313 { 314 java.util.List tempList = java.util.Arrays.asList(onceAddedAccountViews.toArray()); 316 this.onceAddedAccountViews.clear(); 317 this.onceAddedAccountViews.addAll(tempList); 318 } 319 320 335 public void setRemovedAccountViews(java.util.Collection removedAccountViews) 336 { 337 java.util.List tempList = java.util.Arrays.asList(removedAccountViews.toArray()); 339 this.removedAccountViews.clear(); 340 this.removedAccountViews.addAll(tempList); 341 } 342 343 358 public void setUpdatedAccountViews(java.util.Collection updatedAccountViews) 359 { 360 java.util.List tempList = java.util.Arrays.asList(updatedAccountViews.toArray()); 362 this.updatedAccountViews.clear(); 363 this.updatedAccountViews.addAll(tempList); 364 } 365 366 376 public test.interfaces.AccountValue[] getAccountViews() 377 { 378 return (test.interfaces.AccountValue[])this.AccountViews.toArray(new test.interfaces.AccountValue[AccountViews.size()]); 379 } 380 381 391 public void setAccountViews(test.interfaces.AccountValue[] AccountViews) 392 { 393 this.AccountViews.clear(); 394 for (int i=0; i < AccountViews.length; i++) { 395 this.AccountViews.add(AccountViews[i]); 396 } 397 } 398 399 public void clearAccountViews() 400 { 401 this.AccountViews.clear(); 402 } 403 404 412 public void addAccountView(test.interfaces.AccountValue added) 413 { 414 this.AccountViews.add(added); 415 416 if (this.removedAccountViews.contains(added)) 417 { 418 this.removedAccountViews.remove(added); 419 if (this.onceAddedAccountViews.contains(added)) 420 { 421 if (! this.addedAccountViews.contains(added)) 422 this.addedAccountViews.add(added); 423 } 424 else if (! this.updatedAccountViews.contains(added)) 425 { 426 this.updatedAccountViews.add(added); 427 } 428 } 429 else 430 { 431 if (! this.onceAddedAccountViews.contains(added)) 432 this.onceAddedAccountViews.add(added); 433 if (! this.addedAccountViews.contains(added)) 434 this.addedAccountViews.add(added); 435 } 436 } 437 438 445 public void removeAccountView(test.interfaces.AccountValue removed) 446 { 447 this.AccountViews.remove(removed); 448 449 if (this.addedAccountViews.contains(removed)) 450 this.addedAccountViews.remove(removed); 451 else if (! this.removedAccountViews.contains(removed)) 452 this.removedAccountViews.add(removed); 453 454 if (this.updatedAccountViews.contains(removed)) 455 this.updatedAccountViews.remove(removed); 456 } 457 458 public void updateAccountView(test.interfaces.AccountValue updated) 459 { 460 if ( !this.updatedAccountViews.contains(updated) && !this.addedAccountViews.contains(updated)) 461 this.updatedAccountViews.add(updated); 462 463 if (this.removedAccountViews.contains(updated)) 464 this.removedAccountViews.remove(updated); 465 } 466 467 public void cleanAccountView(){ 468 this.addedAccountViews.clear(); 469 this.onceAddedAccountViews.clear(); 470 this.removedAccountViews.clear(); 471 this.updatedAccountViews.clear(); 472 } 473 474 public void copyAccountViewsFrom(test.interfaces.CustomerValue from) 475 { 476 this.AccountViews.clear(); 477 this.AccountViews.addAll(from.AccountViews); 478 } 479 protected java.util.Collection addedShippingAddressValues = wrapCollection(new java.util.ArrayList ()); 480 protected java.util.Collection onceAddedShippingAddressValues = wrapCollection(new java.util.ArrayList ()); 481 protected java.util.Collection removedShippingAddressValues = wrapCollection(new java.util.ArrayList ()); 482 protected java.util.Collection updatedShippingAddressValues = wrapCollection(new java.util.ArrayList ()); 483 484 487 public java.util.Collection getAddedShippingAddressValues() { return wrapReadOnly(addedShippingAddressValues); } 488 489 492 public java.util.Collection getOnceAddedShippingAddressValues() { return wrapReadOnly(onceAddedShippingAddressValues); } 493 496 public java.util.Collection getRemovedShippingAddressValues() { return wrapReadOnly(removedShippingAddressValues); } 497 500 public java.util.Collection getUpdatedShippingAddressValues() { return wrapReadOnly(updatedShippingAddressValues); } 501 504 public java.util.Collection getShippingAddressValueCollection() { return wrapReadOnly(ShippingAddressValues); } 505 506 521 public void setAddedShippingAddressValues(java.util.Collection addedShippingAddressValues) 522 { 523 java.util.List tempList = java.util.Arrays.asList(addedShippingAddressValues.toArray()); 525 this.addedShippingAddressValues.clear(); 526 this.addedShippingAddressValues.addAll(tempList); 527 } 528 529 544 public void setOnceAddedShippingAddressValues(java.util.Collection onceAddedShippingAddressValues) 545 { 546 java.util.List tempList = java.util.Arrays.asList(onceAddedShippingAddressValues.toArray()); 548 this.onceAddedShippingAddressValues.clear(); 549 this.onceAddedShippingAddressValues.addAll(tempList); 550 } 551 552 567 public void setRemovedShippingAddressValues(java.util.Collection removedShippingAddressValues) 568 { 569 java.util.List tempList = java.util.Arrays.asList(removedShippingAddressValues.toArray()); 571 this.removedShippingAddressValues.clear(); 572 this.removedShippingAddressValues.addAll(tempList); 573 } 574 575 590 public void setUpdatedShippingAddressValues(java.util.Collection updatedShippingAddressValues) 591 { 592 java.util.List tempList = java.util.Arrays.asList(updatedShippingAddressValues.toArray()); 594 this.updatedShippingAddressValues.clear(); 595 this.updatedShippingAddressValues.addAll(tempList); 596 } 597 598 608 public test.interfaces.AddressValue[] getShippingAddressValues() 609 { 610 return (test.interfaces.AddressValue[])this.ShippingAddressValues.toArray(new test.interfaces.AddressValue[ShippingAddressValues.size()]); 611 } 612 613 623 public void setShippingAddressValues(test.interfaces.AddressValue[] ShippingAddressValues) 624 { 625 this.ShippingAddressValues.clear(); 626 for (int i=0; i < ShippingAddressValues.length; i++) { 627 this.ShippingAddressValues.add(ShippingAddressValues[i]); 628 } 629 } 630 631 public void clearShippingAddressValues() 632 { 633 this.ShippingAddressValues.clear(); 634 } 635 636 644 public void addShippingAddressValue(test.interfaces.AddressValue added) 645 { 646 this.ShippingAddressValues.add(added); 647 648 if (this.removedShippingAddressValues.contains(added)) 649 { 650 this.removedShippingAddressValues.remove(added); 651 if (this.onceAddedShippingAddressValues.contains(added)) 652 { 653 if (! this.addedShippingAddressValues.contains(added)) 654 this.addedShippingAddressValues.add(added); 655 } 656 else if (! this.updatedShippingAddressValues.contains(added)) 657 { 658 this.updatedShippingAddressValues.add(added); 659 } 660 } 661 else 662 { 663 if (! this.onceAddedShippingAddressValues.contains(added)) 664 this.onceAddedShippingAddressValues.add(added); 665 if (! this.addedShippingAddressValues.contains(added)) 666 this.addedShippingAddressValues.add(added); 667 } 668 } 669 670 677 public void removeShippingAddressValue(test.interfaces.AddressValue removed) 678 { 679 this.ShippingAddressValues.remove(removed); 680 681 if (this.addedShippingAddressValues.contains(removed)) 682 this.addedShippingAddressValues.remove(removed); 683 else if (! this.removedShippingAddressValues.contains(removed)) 684 this.removedShippingAddressValues.add(removed); 685 686 if (this.updatedShippingAddressValues.contains(removed)) 687 this.updatedShippingAddressValues.remove(removed); 688 } 689 690 public void updateShippingAddressValue(test.interfaces.AddressValue updated) 691 { 692 if ( !this.updatedShippingAddressValues.contains(updated) && !this.addedShippingAddressValues.contains(updated)) 693 this.updatedShippingAddressValues.add(updated); 694 695 if (this.removedShippingAddressValues.contains(updated)) 696 this.removedShippingAddressValues.remove(updated); 697 } 698 699 public void cleanShippingAddressValue(){ 700 this.addedShippingAddressValues.clear(); 701 this.onceAddedShippingAddressValues.clear(); 702 this.removedShippingAddressValues.clear(); 703 this.updatedShippingAddressValues.clear(); 704 } 705 706 public void copyShippingAddressValuesFrom(test.interfaces.CustomerValue from) 707 { 708 this.ShippingAddressValues.clear(); 709 this.ShippingAddressValues.addAll(from.ShippingAddressValues); 710 } 711 712 public int getVersion() 713 { 714 return _version; 715 } 716 public void setVersion(int version) 717 { 718 this._version = version; 719 } 720 721 public String toString() 722 { 723 StringBuffer str = new StringBuffer ("{"); 724 725 str.append("credit=" + getCredit() + " " + "array=" + getArray() + " " + "image=" + getImage() + " " + "tax=" + getTax() + " " + "id=" + getId() + " " + "name=" + getName() + " " + "firstName=" + getFirstName() + " " + "phone=" + getPhone() + " " + "fax=" + getFax()); 726 str.append(",version="); 727 str.append(_version); 728 str.append('}'); 729 730 return(str.toString()); 731 } 732 733 738 protected boolean hasIdentity() 739 { 740 boolean ret = true; 741 ret = ret && idHasBeenSet; 742 return ret; 743 } 744 745 749 public boolean isIdentical(Object other) 750 { 751 if (other instanceof CustomerValue) 752 { 753 CustomerValue that = (CustomerValue) other; 754 boolean lEquals = true; 755 lEquals = lEquals && this.credit == that.credit; 756 if( this.array == null ) 757 { 758 lEquals = lEquals && ( that.array == null ); 759 } 760 else 761 { 762 lEquals = lEquals && this.array.equals( that.array ); 763 } 764 lEquals = lEquals && this.image == that.image; 765 lEquals = lEquals && this.tax == that.tax; 766 if( this.name == null ) 767 { 768 lEquals = lEquals && ( that.name == null ); 769 } 770 else 771 { 772 lEquals = lEquals && this.name.equals( that.name ); 773 } 774 if( this.firstName == null ) 775 { 776 lEquals = lEquals && ( that.firstName == null ); 777 } 778 else 779 { 780 lEquals = lEquals && this.firstName.equals( that.firstName ); 781 } 782 if( this.phone == null ) 783 { 784 lEquals = lEquals && ( that.phone == null ); 785 } 786 else 787 { 788 lEquals = lEquals && this.phone.equals( that.phone ); 789 } 790 if( this.fax == null ) 791 { 792 lEquals = lEquals && ( that.fax == null ); 793 } 794 else 795 { 796 lEquals = lEquals && this.fax.equals( that.fax ); 797 } 798 if( this.getAccountViews() == null ) 799 { 800 lEquals = lEquals && ( that.getAccountViews() == null ); 801 } 802 else 803 { 804 lEquals = lEquals && java.util.Arrays.equals(this.getAccountViews() , that.getAccountViews()) ; 805 } 806 if( this.getShippingAddressValues() == null ) 807 { 808 lEquals = lEquals && ( that.getShippingAddressValues() == null ); 809 } 810 else 811 { 812 lEquals = lEquals && java.util.Arrays.equals(this.getShippingAddressValues() , that.getShippingAddressValues()) ; 813 } 814 815 return lEquals; 816 } 817 else 818 { 819 return false; 820 } 821 } 822 823 public boolean equals(Object other) { 824 825 if (!(other instanceof CustomerValue)) { 827 return false; 828 } 829 830 return equals((CustomerValue) other); 831 } 832 833 838 public boolean equals(CustomerValue that) { 839 840 if (this == that) { 842 return true; 843 } 844 if(null == that) { 846 return false; 847 } 848 849 if(this.credit != that.credit) { 850 return false; 851 } 852 853 if(this.array != that.array) { 854 855 if( this.array == null || that.array == null ) { 856 return false; 857 } 858 859 if(!this.array.equals(that.array)) { 860 return false; 861 } 862 863 } 864 865 if(!java.util.Arrays.equals(this.image, that.image)) { 866 return false; 867 } 868 869 if(this.tax != that.tax) { 870 return false; 871 } 872 873 if(this.id != that.id) { 874 875 if( this.id == null || that.id == null ) { 876 return false; 877 } 878 879 if(!this.id.equals(that.id)) { 880 return false; 881 } 882 883 } 884 885 if(this.name != that.name) { 886 887 if( this.name == null || that.name == null ) { 888 return false; 889 } 890 891 if(!this.name.equals(that.name)) { 892 return false; 893 } 894 895 } 896 897 if(this.firstName != that.firstName) { 898 899 if( this.firstName == null || that.firstName == null ) { 900 return false; 901 } 902 903 if(!this.firstName.equals(that.firstName)) { 904 return false; 905 } 906 907 } 908 909 if(this.phone != that.phone) { 910 911 if( this.phone == null || that.phone == null ) { 912 return false; 913 } 914 915 if(!this.phone.equals(that.phone)) { 916 return false; 917 } 918 919 } 920 921 if(this.fax != that.fax) { 922 923 if( this.fax == null || that.fax == null ) { 924 return false; 925 } 926 927 if(!this.fax.equals(that.fax)) { 928 return false; 929 } 930 931 } 932 933 940 return true; 941 942 } 943 944 public Object clone() throws java.lang.CloneNotSupportedException { 945 CustomerValue other = (CustomerValue) super.clone(); 946 947 { 948 java.util.Collection tempData; 950 tempData = wrapCollection(new java.util.ArrayList ()); 951 tempData.addAll(this.AccountViews); 952 this.AccountViews = tempData; 953 tempData = wrapCollection(new java.util.ArrayList ()); 954 tempData.addAll(this.addedAccountViews); 955 this.addedAccountViews = tempData; 956 tempData = wrapCollection(new java.util.ArrayList ()); 957 tempData.addAll(this.onceAddedAccountViews); 958 this.onceAddedAccountViews = tempData; 959 tempData = wrapCollection(new java.util.ArrayList ()); 960 tempData.addAll(this.removedAccountViews); 961 this.removedAccountViews = tempData; 962 tempData = wrapCollection(new java.util.ArrayList ()); 963 tempData.addAll(this.updatedAccountViews); 964 this.updatedAccountViews = tempData; 965 } 966 { 967 java.util.Collection tempData; 969 tempData = wrapCollection(new java.util.ArrayList ()); 970 tempData.addAll(this.ShippingAddressValues); 971 this.ShippingAddressValues = tempData; 972 tempData = wrapCollection(new java.util.ArrayList ()); 973 tempData.addAll(this.addedShippingAddressValues); 974 this.addedShippingAddressValues = tempData; 975 tempData = wrapCollection(new java.util.ArrayList ()); 976 tempData.addAll(this.onceAddedShippingAddressValues); 977 this.onceAddedShippingAddressValues = tempData; 978 tempData = wrapCollection(new java.util.ArrayList ()); 979 tempData.addAll(this.removedShippingAddressValues); 980 this.removedShippingAddressValues = tempData; 981 tempData = wrapCollection(new java.util.ArrayList ()); 982 tempData.addAll(this.updatedShippingAddressValues); 983 this.updatedShippingAddressValues = tempData; 984 } 985 986 return other; 987 } 988 989 public ReadOnlyCustomerValue getReadOnlyCustomerValue() { 990 return new ReadOnlyCustomerValue(); 991 } 992 993 public int hashCode(){ 994 int result = 17; 995 result = 37*result + Float.floatToIntBits(credit); 996 997 result = 37*result + ((this.array != null) ? this.array.hashCode() : 0); 998 999 if (image != null) { 1000 for (int i=0; i<image.length; i++) 1001 { 1002 long l = image[i]; 1003 result = 37*result + (int)(l^(l>>>32)); 1004 } 1005 } 1006 1007 result = 37*result + Float.floatToIntBits(tax); 1008 1009 result = 37*result + ((this.id != null) ? this.id.hashCode() : 0); 1010 1011 result = 37*result + ((this.name != null) ? this.name.hashCode() : 0); 1012 1013 result = 37*result + ((this.firstName != null) ? this.firstName.hashCode() : 0); 1014 1015 result = 37*result + ((this.phone != null) ? this.phone.hashCode() : 0); 1016 1017 result = 37*result + ((this.fax != null) ? this.fax.hashCode() : 0); 1018 1019 1026 return result; 1027 } 1028 1029 1036 private static java.util.Collection wrapCollection(java.util.Collection input) { 1037 return java.util.Collections.synchronizedCollection(input); 1038 } 1039 1046 private static java.util.Set wrapCollection(java.util.Set input) { 1047 return java.util.Collections.synchronizedSet(input); 1048 } 1049 1055 private static java.util.Collection wrapReadOnly(java.util.Collection input) { 1056 return java.util.Collections.unmodifiableCollection(input); 1057 } 1058 1064 private static java.util.Set wrapReadOnly(java.util.Set input) { 1065 return java.util.Collections.unmodifiableSet(input); 1066 } 1067 1068 private final class ReadOnlyCustomerValue 1069 implements java.lang.Cloneable , java.io.Serializable 1070 { 1071 private CustomerValue underlying() { 1072 return CustomerValue.this; 1073 } 1074 1075 public float getCredit() { 1076 return underlying().credit; 1077 } 1078 1079 public java.lang.String [][] getArray() { 1080 return underlying().array; 1081 } 1082 1083 public byte[] getImage() { 1084 return underlying().image; 1085 } 1086 1087 public float getTax() { 1088 return underlying().tax; 1089 } 1090 1091 public java.lang.String getId() { 1092 return underlying().id; 1093 } 1094 1095 public java.lang.String getName() { 1096 return underlying().name; 1097 } 1098 1099 public java.lang.String getFirstName() { 1100 return underlying().firstName; 1101 } 1102 1103 public java.lang.String getPhone() { 1104 return underlying().phone; 1105 } 1106 1107 public java.lang.String getFax() { 1108 return underlying().fax; 1109 } 1110 1111 public java.util.Collection getAddedAccountViews() { 1112 return underlying().getAddedAccountViews(); 1113 } 1114 public java.util.Collection getOnceAddedAccountViews() { 1115 return underlying().getOnceAddedAccountViews(); 1116 } 1117 public java.util.Collection getRemovedAccountViews() { 1118 return underlying().getRemovedAccountViews(); 1119 } 1120 public java.util.Collection getUpdatedAccountViews() { 1121 return underlying().getUpdatedAccountViews(); 1122 } 1123 public java.util.Collection getAccountViewCollection() { 1124 return underlying().getAccountViewCollection(); 1125 } 1126 public java.util.Collection getAddedShippingAddressValues() { 1127 return underlying().getAddedShippingAddressValues(); 1128 } 1129 public java.util.Collection getOnceAddedShippingAddressValues() { 1130 return underlying().getOnceAddedShippingAddressValues(); 1131 } 1132 public java.util.Collection getRemovedShippingAddressValues() { 1133 return underlying().getRemovedShippingAddressValues(); 1134 } 1135 public java.util.Collection getUpdatedShippingAddressValues() { 1136 return underlying().getUpdatedShippingAddressValues(); 1137 } 1138 public java.util.Collection getShippingAddressValueCollection() { 1139 return underlying().getShippingAddressValueCollection(); 1140 } 1141 1142 public int hashCode() { 1143 return 101 * underlying().hashCode(); 1144 } 1145 1146 public boolean equals(Object o) { 1147 if(o instanceof ReadOnlyCustomerValue) { 1148 return this.equals((ReadOnlyCustomerValue) o); 1149 } 1150 return false; 1151 } 1152 1153 public boolean equals(ReadOnlyCustomerValue that) { 1154 if(null == that) { 1155 return false; 1156 } 1157 1158 return this.underlying().equals(that.underlying()); 1159 } 1160 1161 } 1162 1163} 1164 | Popular Tags |