import java.io.Serializable;
-
/**
* Default implementation of Persistent.
- *
+ *
* @author Erik Brakkee
*/
public abstract class AbstractPersistent implements Persistent {
*/
private int version;
-/**
+ /**
* Constructs the object.
- *
+ *
*/
protected AbstractPersistent() {
- primaryKey = null;
- version = -1;
+ primaryKey = null;
+ version = -1;
}
-/**
+ /**
* Copy constructor.
- * @param aPersistent Object to copy.
+ *
+ * @param aPersistent
+ * Object to copy.
*/
protected AbstractPersistent(AbstractPersistent aPersistent) {
- primaryKey = aPersistent.primaryKey;
- version = aPersistent.version;
+ primaryKey = aPersistent.primaryKey;
+ version = aPersistent.version;
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.wamblee.persistence.Persistent#getPrimaryKey()
*/
- /**
- * DOCUMENT ME!
- *
- * @return DOCUMENT ME!
- */
public Serializable getPrimaryKey() {
return primaryKey;
}
- /* (non-Javadoc)
- * @see org.wamblee.persistence.Persistent#setPrimaryKey(java.io.Serializable)
- */
- /**
- * DOCUMENT ME!
- *
- * @param aKey DOCUMENT ME!
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.wamblee.persistence.Persistent#setPrimaryKey(java.io.Serializable)
*/
public void setPrimaryKey(Serializable aKey) {
primaryKey = aKey;
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.wamblee.persistence.Persistent#getPersistedVersion()
*/
- /**
- * DOCUMENT ME!
- *
- * @return DOCUMENT ME!
- */
public int getPersistedVersion() {
return version;
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.wamblee.persistence.Persistent#setPersistedVersion(int)
*/
- /**
- * DOCUMENT ME!
- *
- * @param aVersion DOCUMENT ME!
- */
public void setPersistedVersion(int aVersion) {
version = aVersion;
}