org.wamblee.persistence
Class AbstractPersistent

java.lang.Object
  extended by org.wamblee.persistence.AbstractPersistent
All Implemented Interfaces:
Persistent

public abstract class AbstractPersistent
extends java.lang.Object
implements Persistent

Default implementation of Persistent.

Author:
Erik Brakkee

Constructor Summary
protected AbstractPersistent()
          Constructs the object.
protected AbstractPersistent(AbstractPersistent aPersistent)
          Copy constructor.
 
Method Summary
 int getPersistedVersion()
          Gets the version.
 java.io.Serializable getPrimaryKey()
          Gets the primary key.
 void setPersistedVersion(int aVersion)
          Sets the version.
 void setPrimaryKey(java.io.Serializable aKey)
          Sets the primary key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPersistent

protected AbstractPersistent()
Constructs the object.


AbstractPersistent

protected AbstractPersistent(AbstractPersistent aPersistent)
Copy constructor.

Parameters:
aPersistent - Object to copy.
Method Detail

getPrimaryKey

public java.io.Serializable getPrimaryKey()
Description copied from interface: Persistent
Gets the primary key.

Specified by:
getPrimaryKey in interface Persistent
Returns:
Primary key.
See Also:
Persistent.setPrimaryKey(Serializable)

setPrimaryKey

public void setPrimaryKey(java.io.Serializable aKey)
Description copied from interface: Persistent
Sets the primary key.

Specified by:
setPrimaryKey in interface Persistent
Parameters:
aKey - Primary key.
See Also:
Persistent.getPrimaryKey()

getPersistedVersion

public int getPersistedVersion()
Description copied from interface: Persistent
Gets the version.

Specified by:
getPersistedVersion in interface Persistent
Returns:
Version.
See Also:
Persistent.setPersistedVersion(int)

setPersistedVersion

public void setPersistedVersion(int aVersion)
Description copied from interface: Persistent
Sets the version.

Specified by:
setPersistedVersion in interface Persistent
Parameters:
aVersion - Version.
See Also:
Persistent.getPersistedVersion()


Copyright © 2010. All Rights Reserved.