org.eclipse.higgins.icard.provider.cardspace.db
Interface IDAO

All Known Subinterfaces:
IDaoCard, IDaoInformationCardExtension, IDaoMCard, IDaoPCard, IDaoPCardClaim, IDaoSupportedClaimType, IDaoSupportedTokenType, IDaoTokenService

public interface IDAO

Common database access object interface


Field Summary
static int CHANGED_OBJ
           
static int DELETED_OBJ
           
static int NEW_OBJ
           
static int PRE_DELETED_NEW_OBJ
           
static int PRE_DELETED_STORED_OBJ
           
static int STORED_OBJ
           
 
Method Summary
 void addListener(IDAOListener listener)
           
 int getID()
           
 int getState()
           
 void removeListener(IDAOListener listener)
           
 void setDeleteState()
          Invocation of this method says that this object should be deleted.
 void store()
          Persists the state of the DAO object.
 

Field Detail

NEW_OBJ

public static final int NEW_OBJ
See Also:
Constant Field Values

STORED_OBJ

public static final int STORED_OBJ
See Also:
Constant Field Values

CHANGED_OBJ

public static final int CHANGED_OBJ
See Also:
Constant Field Values

PRE_DELETED_STORED_OBJ

public static final int PRE_DELETED_STORED_OBJ
See Also:
Constant Field Values

PRE_DELETED_NEW_OBJ

public static final int PRE_DELETED_NEW_OBJ
See Also:
Constant Field Values

DELETED_OBJ

public static final int DELETED_OBJ
See Also:
Constant Field Values
Method Detail

getID

public int getID()
Returns:
An identifier of this DAO object. If this object is not yet stored then returns -1, otherwise returns a unique positive value

getState

public int getState()
Returns:
Identifier of its state. NEW_OBJ - a newly created object was not yet stored. STORED_OBJ - object is stored in the database and was not yet modified. CHANGED_OBJ - stored object which was modified and should be updated in database. PRE_DELETED_STORED_OBJ - stored object which should be deleted from database. PRE_DELETED_NEW_OBJ - new object which should not be saved to database. DELETED_OBJ - already deleted object.

setDeleteState

public void setDeleteState()
Invocation of this method says that this object should be deleted. PRE_DELETED_STORED_OBJ - stored object which should be deleted from database during. PRE_DELETED_NEW_OBJ - new object which should not be saved to database.


store

public void store()
           throws org.eclipse.higgins.icard.CardException
Persists the state of the DAO object.

Throws:
org.eclipse.higgins.icard.CardException

addListener

public void addListener(IDAOListener listener)
Parameters:
listener -

removeListener

public void removeListener(IDAOListener listener)
Parameters:
listener -