org.wamblee.persistence
Interface Persistent

All Known Implementing Classes:
AbstractPersistent

public interface Persistent

Interface for persistent objects. This defines required functionality for all objects that are persisted. Objects that implement this interface and which implement Object.equals(java.lang.Object) should exclude the primary key and version from determining equality.


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.
 

Method Detail

getPrimaryKey

java.io.Serializable getPrimaryKey()
Gets the primary key.

Returns:
Primary key.
See Also:
setPrimaryKey(Serializable)

setPrimaryKey

void setPrimaryKey(java.io.Serializable aKey)
Sets the primary key.

Parameters:
aKey - Primary key.
See Also:
getPrimaryKey()

getPersistedVersion

int getPersistedVersion()
Gets the version.

Returns:
Version.
See Also:
setPersistedVersion(int)

setPersistedVersion

void setPersistedVersion(int aVersion)
Sets the version.

Parameters:
aVersion - Version.
See Also:
getPersistedVersion()


Copyright © 2010. All Rights Reserved.