org.acegisecurity.domain.impl
Class PersistableEntityLong

java.lang.Object
  extended by org.acegisecurity.domain.impl.BusinessObject
      extended by org.acegisecurity.domain.impl.AbstractPersistableEntity
          extended by org.acegisecurity.domain.impl.PersistableEntityLong
All Implemented Interfaces:
Serializable, Cloneable, PersistableEntity

public abstract class PersistableEntityLong
extends AbstractPersistableEntity

A persistable entity that uses a Long based identity.

Version:
$Id: PersistableEntityLong.java,v 1.7 2005/11/17 00:55:49 benalex Exp $
Author:
Ben Alex
See Also:
Serialized Form

Field Summary
protected  Long id
           
 
Fields inherited from class org.acegisecurity.domain.impl.AbstractPersistableEntity
STARTING_VERSION
 
Fields inherited from class org.acegisecurity.domain.impl.BusinessObject
logger
 
Constructor Summary
PersistableEntityLong()
           
 
Method Summary
 Long getId()
          Obtains the persistence identity of this instance.
 Serializable getInternalId()
          DO NOT USE DIRECTLY.
 void setId(Long id)
          DO NOT USE DIRECTLY.
 
Methods inherited from class org.acegisecurity.domain.impl.AbstractPersistableEntity
getVersion, isNew, setVersion
 
Methods inherited from class org.acegisecurity.domain.impl.BusinessObject
clone, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected Long id
Constructor Detail

PersistableEntityLong

public PersistableEntityLong()
Method Detail

setId

public void setId(Long id)
DO NOT USE DIRECTLY.

Typically only used by the persistence layer, but provided with public visibility to not limit flexibility.

Parameters:
id - the new instance identity

getId

public Long getId()
Obtains the persistence identity of this instance.


getInternalId

public Serializable getInternalId()
DO NOT USE DIRECTLY.

Use getId() instead, as it provides the correct return type. This method is only provided for use by the persistence layer and to satisfy the PersistableEntity interface contract.

Internally delegates to getId().

Returns:
the instance's identity


Copyright © 2004-2005 Acegi Technology Pty Limited. All Rights Reserved.