net.lessy.util.persistence
Interface Identifyable


public interface Identifyable

Author:
hl

Method Summary
 Serializable getId()
          Gets the id
 boolean hasValidId()
          Is the Id valid?
 boolean isPersistent()
          Is there an Id at all?
 

Method Detail

getId

Serializable getId()
Gets the id

Returns:
id

isPersistent

boolean isPersistent()
Is there an Id at all?

Returns:
true, if id not null

hasValidId

boolean hasValidId()
Is the Id valid?

Returns:
true if valid, i.e. not null and positiv, false if null, zero or negativ


Copyright © 2012. All Rights Reserved.