/**
* Primary key.
*/
- private Serializable _primaryKey;
+ private Serializable primaryKey;
/**
* Version.
*/
- private int _version;
+ private int version;
/**
* Constructs the object.
*
*/
protected AbstractPersistent() {
- _primaryKey = null;
- _version = -1;
+ primaryKey = null;
+ version = -1;
}
/**
* @param aPersistent Object to copy.
*/
protected AbstractPersistent(AbstractPersistent aPersistent) {
- _primaryKey = aPersistent._primaryKey;
- _version = aPersistent._version;
+ primaryKey = aPersistent.primaryKey;
+ version = aPersistent.version;
}
/* (non-Javadoc)
* @see org.wamblee.persistence.Persistent#getPrimaryKey()
*/
public Serializable getPrimaryKey() {
- return _primaryKey;
+ return primaryKey;
}
/* (non-Javadoc)
* @see org.wamblee.persistence.Persistent#setPrimaryKey(java.io.Serializable)
*/
public void setPrimaryKey(Serializable aKey) {
- _primaryKey = aKey;
+ primaryKey = aKey;
}
/* (non-Javadoc)
* @see org.wamblee.persistence.Persistent#getPersistedVersion()
*/
public int getPersistedVersion() {
- return _version;
+ return version;
}
/* (non-Javadoc)
* @see org.wamblee.persistence.Persistent#setPersistedVersion(int)
*/
public void setPersistedVersion(int aVersion) {
- _version = aVersion;
+ version = aVersion;
}
}