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
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
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 -