org.wamblee.persistence
Interface Persistent

All Known Implementing Classes:
PersistentFactory.EntityObjectAccessor

public interface Persistent

Interface for persistent objects. This defines a generic interface for accessing primary key and version of entities.


Method Summary
 Number getPersistedVersion()
          Gets the version.
 Serializable getPrimaryKey()
          Gets the primary key.
 void setPersistedVersion(Number aVersion)
          Sets the version.
 void setPrimaryKey(Serializable aKey)
          Sets the primary key.
 

Method Detail

getPrimaryKey

Serializable getPrimaryKey()
Gets the primary key.

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

setPrimaryKey

void setPrimaryKey(Serializable aKey)
Sets the primary key.

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

getPersistedVersion

Number getPersistedVersion()
Gets the version.

Returns:
Version.
See Also:
#setPersistedVersion(int)

setPersistedVersion

void setPersistedVersion(Number aVersion)
Sets the version.

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


Copyright © 2011. All Rights Reserved.