com.atlassian.jira.referentiel.entities
Class AExternalEntity

java.lang.Object
  extended by com.atlassian.jira.referentiel.entities.AExternalEntity
Direct Known Subclasses:
AInternalEntity, AManageableAsProject

public abstract class AExternalEntity
extends java.lang.Object

FQCN : com.atlassian.jira.referentiel.entities.AExternalEntity

Since:
Description : AExternalEntity provides default behavior for any Entity appended to the JIRA model
Author:
Kaamelot

Field Summary
protected  com.atlassian.core.ofbiz.association.AssociationManager associationManager
           
protected  org.ofbiz.core.entity.GenericValue genericValue
           
protected  java.util.Map modifiedFields
           
 
Constructor Summary
AExternalEntity(org.ofbiz.core.entity.GenericValue genericValue)
           
 
Method Summary
protected abstract  void addFields(java.util.Map _fields)
          Add Field to MAP for OFBIZ Storage
protected  void addKeys(java.util.Map _fields)
          Add Key Fields to MAP for OFBIZ Storage
abstract  boolean equals(AExternalEntity _entity)
           
abstract  java.util.Map getEntityKeys()
           
abstract  java.lang.String getEntityName()
           
 org.ofbiz.core.entity.GenericValue getGenericValue()
           
 java.util.Map getModifiedFields()
           
protected abstract  void init(org.ofbiz.core.entity.GenericValue _gv)
          Initialize final Object (Attributes population)
 boolean isCreated()
           
 void load()
          Retrieves GenericValue for the current entity depending on the fields identified as keys
 void store()
          Performs the Entity storage
 void update()
          Performs the update (storage) using the modified Field
protected  void updateGV(java.lang.String _fieldName, java.lang.Object _fieldValue)
          Update field Object and mark it as modified and requiring a storage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

associationManager

protected com.atlassian.core.ofbiz.association.AssociationManager associationManager

genericValue

protected org.ofbiz.core.entity.GenericValue genericValue

modifiedFields

protected final java.util.Map modifiedFields
Constructor Detail

AExternalEntity

public AExternalEntity(org.ofbiz.core.entity.GenericValue genericValue)
Method Detail

store

public void store()
Performs the Entity storage


addFields

protected abstract void addFields(java.util.Map _fields)
Add Field to MAP for OFBIZ Storage

Parameters:
_fields - field Maps

addKeys

protected void addKeys(java.util.Map _fields)
Add Key Fields to MAP for OFBIZ Storage

Parameters:
_fields - field Maps

getEntityName

public abstract java.lang.String getEntityName()
Returns:
OFBIZ Entity Name

getEntityKeys

public abstract java.util.Map getEntityKeys()
Returns:
Map of field to assume as Key of the current Entity

init

protected abstract void init(org.ofbiz.core.entity.GenericValue _gv)
Initialize final Object (Attributes population)

Parameters:
_gv - linked GenericValue

equals

public abstract boolean equals(AExternalEntity _entity)
Parameters:
_entity -
Returns:
True if _entity assumed as equal to current entity

load

public void load()
          throws org.ofbiz.core.entity.GenericEntityException
Retrieves GenericValue for the current entity depending on the fields identified as keys

Throws:
org.ofbiz.core.entity.GenericEntityException

update

public void update()
            throws org.ofbiz.core.entity.GenericEntityException
Performs the update (storage) using the modified Field

Throws:
org.ofbiz.core.entity.GenericEntityException

updateGV

protected void updateGV(java.lang.String _fieldName,
                        java.lang.Object _fieldValue)
Update field Object and mark it as modified and requiring a storage

Parameters:
_fieldName -
_fieldValue -

getModifiedFields

public java.util.Map getModifiedFields()
Returns:
Map of all fields marked as modified

getGenericValue

public org.ofbiz.core.entity.GenericValue getGenericValue()
Returns:
The linked GenericValue

isCreated

public boolean isCreated()
Returns:
True, the GenericValue has already been created/stored


Copyright © 2007-2008 Kaamelot Plugins. All Rights Reserved.