001: package net.sf.cglib.beans;
002:
003: import java.io.ObjectStreamException;
004:
005: class MA {
006: private Long id;
007: private String name;
008: private String privateName;
009: private int intP;
010: private long longP;
011: private boolean booleanP;
012: private char charP;
013: private byte byteP;
014: private short shortP;
015: private float floatP;
016: private double doubleP;
017: private String stringP;
018: public String publicField;
019:
020: public Long getId() {
021: return id;
022: }
023:
024: public String getName() {
025: return name;
026: }
027:
028: public void setId(Long id) {
029: this .id = id;
030: }
031:
032: public void setName(String name) {
033: this .name = name;
034: }
035:
036: protected Object writeReplace() throws ObjectStreamException {
037: return null;
038: }
039:
040: /* package */String getPrivateName() {
041: return privateName;
042: }
043:
044: /* package */void setPrivateName(String name) {
045: this .privateName = name;
046: }
047:
048: public int getIntP() {
049: return this .intP;
050: }
051:
052: public void setIntP(int intP) {
053: this .intP = intP;
054: }
055:
056: public long getLongP() {
057: return this .longP;
058: }
059:
060: public void setLongP(long longP) {
061: this .longP = longP;
062: }
063:
064: public boolean isBooleanP() {
065: return this .booleanP;
066: }
067:
068: public void setBooleanP(boolean booleanP) {
069: this .booleanP = booleanP;
070: }
071:
072: public char getCharP() {
073: return this .charP;
074: }
075:
076: public void setCharP(char charP) {
077: this .charP = charP;
078: }
079:
080: public byte getByteP() {
081: return this .byteP;
082: }
083:
084: public void setByteP(byte byteP) {
085: this .byteP = byteP;
086: }
087:
088: public short getShortP() {
089: return this .shortP;
090: }
091:
092: public void setShortP(short shortP) {
093: this .shortP = shortP;
094: }
095:
096: public float getFloatP() {
097: return this .floatP;
098: }
099:
100: public void setFloatP(float floatP) {
101: this .floatP = floatP;
102: }
103:
104: public double getDoubleP() {
105: return this .doubleP;
106: }
107:
108: public void setDoubleP(double doubleP) {
109: this .doubleP = doubleP;
110: }
111:
112: public String getStringP() {
113: return this .stringP;
114: }
115:
116: public void setStringP(String stringP) {
117: this.stringP = stringP;
118: }
119: }
|