ch.elca.el4j.services.persistence.generic.dto
Interface PrimaryKeyObject

All Known Subinterfaces:
PrimaryKeyOptimisticLockingObject
All Known Implementing Classes:
AbstractIntKeyIntOptimisticLockingDto, AbstractStringKeyIntOptimisticLockingDto

public interface PrimaryKeyObject

Interface to provide primary key support.

Author:
Martin Zeltner (MZE)
File-location:
PrimaryKeyObject
Last check-in date:
2009-08-04 15:35:01 +0200 (Di, 04. Aug 2009) by swismer for revision 3883

Method Summary
 Object getKeyAsObject()
           
 boolean isKeyNew()
           
 void setKey(Object keyObject)
           
 void useGeneratedKey()
          This method will be called when the primary key object is requested to generate a key object for himself.
 

Method Detail

isKeyNew

boolean isKeyNew()
Returns:
Returns true if the primary key is new.

setKey

void setKey(Object keyObject)
Parameters:
keyObject - Is the key to set.

getKeyAsObject

Object getKeyAsObject()
Returns:
Returns the key as an object or null if it does not exist.

useGeneratedKey

void useGeneratedKey()
This method will be called when the primary key object is requested to generate a key object for himself.



Copyright © 2005-2011 ELCA. All Rights Reserved.