org.nuiton.topia.persistence
Interface TopiaEntityContextable

All Superinterfaces:
Serializable, TopiaEntity

public interface TopiaEntityContextable
extends TopiaEntity

TopiaEntity with TopiaContext support (injected by TopiaContext into entities).

Version:
$Revision: 2326 $ Last update : $Date: 2011-09-12 12:46:03 +0200 (lun, 12 sep 2011) $ By : $Author: tchemit $
Author:
chatellier

Field Summary
static String TOPIA_CONTEXT
           
 
Fields inherited from interface org.nuiton.topia.persistence.TopiaEntity
AGGREGATE, COMPOSITE, TOPIA_CREATE_DATE, TOPIA_ID, TOPIA_VERSION
 
Method Summary
 void delete()
          Delete entity in persistence context.
 TopiaContext getTopiaContext()
          Get topia context.
 void setTopiaContext(TopiaContext topiaContext)
          Set topia context.
 void update()
          Update entity in persistence context.
 
Methods inherited from interface org.nuiton.topia.persistence.TopiaEntity
accept, addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, getAggregate, getComposite, getTopiaCreateDate, getTopiaId, getTopiaVersion, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaCreateDate, setTopiaId, setTopiaVersion
 

Field Detail

TOPIA_CONTEXT

static final String TOPIA_CONTEXT
See Also:
Constant Field Values
Method Detail

setTopiaContext

void setTopiaContext(TopiaContext topiaContext)
                     throws TopiaException
Set topia context.

Parameters:
topiaContext - topia context
Throws:
TopiaException - if current topia entity context is not null

getTopiaContext

TopiaContext getTopiaContext()
Get topia context.

Returns:
topia context

update

void update()
            throws TopiaException
Update entity in persistence context.

Throws:
TopiaException

delete

void delete()
            throws TopiaException
Delete entity in persistence context.

Throws:
TopiaException


Copyright © 2004-2011 CodeLutin. All Rights Reserved.