org.caleigo.core.meta
Class MetaFieldRelationEntity

java.lang.Object
  extended byorg.caleigo.core.AbstractEntity
      extended byorg.caleigo.core.AbstractDataObjectEntity
          extended byorg.caleigo.core.meta.AbstractMetaEntity
              extended byorg.caleigo.core.meta.MetaFieldRelationEntity
All Implemented Interfaces:
java.lang.Comparable, IDataConsumer, IDataProvider, IDistributable, IEntity, java.io.Serializable

public class MetaFieldRelationEntity
extends AbstractMetaEntity

MetaFieldRelationEntiy is the entity class for MetaFieldRelation objects.

Version:
1.0.0
Author:
dennis
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.caleigo.core.IEntity
DIRTY, EMPTY, PERSISTENT
 
Constructor Summary
MetaFieldRelationEntity()
          Default constructor for MetaFieldRelationEntity.
MetaFieldRelationEntity(MetaFieldRelationEntity entity)
          Copy constructor for MetaFieldRelationEntity.
MetaFieldRelationEntity(Qualifier identityQualifier)
          This constructor creates a new MetaFieldRelationEntity and loads it with data from the data source using the provided identity qualifier.
MetaFieldRelationEntity(java.lang.String aEntityRelation, java.lang.String aReferenceEntity, java.lang.String aReferenceField, java.lang.String aTargetEntity, java.lang.String aTargetField)
          This constructor creates a new MetaFieldRelationEntity and loads it with data from the data source using the entity's identity data.
 
Method Summary
protected  void doOnDataChange(IFieldDescriptor fieldDescriptor, java.lang.Object oldValue, java.lang.Object newValue)
          This help method is called when the called entity changes a data value.
 IEntityDescriptor getEntityDescriptor()
          Return the entity objects IEntityDescriptor that defines it's type and structure.
 java.lang.String getEntityRelation()
           
 java.lang.Object getEntityRelationData()
           
 java.lang.String getReferenceEntity()
           
 java.lang.Object getReferenceEntityData()
           
 java.lang.String getReferenceField()
           
 java.lang.Object getReferenceFieldData()
           
 java.lang.String getTargetEntity()
           
 java.lang.Object getTargetEntityData()
           
 java.lang.String getTargetField()
           
 java.lang.Object getTargetFieldData()
           
 void setEntityRelation(java.lang.String value)
           
 void setEntityRelationData(java.lang.Object value)
           
 void setReferenceEntity(java.lang.String value)
           
 void setReferenceEntityData(java.lang.Object value)
           
 void setReferenceField(java.lang.String value)
           
 void setReferenceFieldData(java.lang.Object value)
           
 void setTargetEntity(java.lang.String value)
           
 void setTargetEntityData(java.lang.Object value)
           
 void setTargetField(java.lang.String value)
           
 void setTargetFieldData(java.lang.Object value)
           
 
Methods inherited from class org.caleigo.core.AbstractDataObjectEntity
 
Methods inherited from class org.caleigo.core.AbstractEntity
addEntityChangeListener, addEntityListener, clear, clearAllDirtyFlags, clearStatusFlag, compareTo, copyData, delete, doOnDirty, doOnStateChange, equals, equalsExactly, fireDataChangedEvent, fireOpPerformedEvent, fireStatusChangedEvent, getData, getData, getDataBoolean, getDataByte, getDataDouble, getDataFloat, getDataInteger, getDataLong, getDataShort, getDataSource, getOriginQualifier, isDataNull, isDirty, isEmpty, isFieldDirty, isPersistent, makeLogString, makeLogString, refresh, removeEntityChangeListener, removeEntityListener, setData, setData, setData, setDataBoolean, setDataByte, setDataDouble, setDataFloat, setDataInteger, setDataLong, setDataShort, setDefaultValues, setDirtyFlag, setStatusFlag, store, toString, validateData
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetaFieldRelationEntity

public MetaFieldRelationEntity()
Default constructor for MetaFieldRelationEntity.


MetaFieldRelationEntity

public MetaFieldRelationEntity(MetaFieldRelationEntity entity)
Copy constructor for MetaFieldRelationEntity.


MetaFieldRelationEntity

public MetaFieldRelationEntity(java.lang.String aEntityRelation,
                               java.lang.String aReferenceEntity,
                               java.lang.String aReferenceField,
                               java.lang.String aTargetEntity,
                               java.lang.String aTargetField)
This constructor creates a new MetaFieldRelationEntity and loads it with data from the data source using the entity's identity data.


MetaFieldRelationEntity

public MetaFieldRelationEntity(Qualifier identityQualifier)
This constructor creates a new MetaFieldRelationEntity and loads it with data from the data source using the provided identity qualifier.

Method Detail

getEntityDescriptor

public IEntityDescriptor getEntityDescriptor()
Description copied from class: AbstractMetaEntity
Return the entity objects IEntityDescriptor that defines it's type and structure. Enables extended means of reflection for the entity.

Specified by:
getEntityDescriptor in interface IEntity
Specified by:
getEntityDescriptor in class AbstractMetaEntity

doOnDataChange

protected void doOnDataChange(IFieldDescriptor fieldDescriptor,
                              java.lang.Object oldValue,
                              java.lang.Object newValue)
Description copied from class: AbstractEntity
This help method is called when the called entity changes a data value. It is called before the data change event is fired. The method is provided for optional override and does nothing by default. Note that setting other data as a response to the change will cause a new call to this method! This requires any overrides to take care not to cause a reqursive loop by being very selective when updating data values in this method.

Overrides:
doOnDataChange in class AbstractEntity

getEntityRelation

public java.lang.String getEntityRelation()

getReferenceEntity

public java.lang.String getReferenceEntity()

getReferenceField

public java.lang.String getReferenceField()

getTargetEntity

public java.lang.String getTargetEntity()

getTargetField

public java.lang.String getTargetField()

setEntityRelation

public void setEntityRelation(java.lang.String value)

setReferenceEntity

public void setReferenceEntity(java.lang.String value)

setReferenceField

public void setReferenceField(java.lang.String value)

setTargetEntity

public void setTargetEntity(java.lang.String value)

setTargetField

public void setTargetField(java.lang.String value)

getEntityRelationData

public java.lang.Object getEntityRelationData()

getReferenceEntityData

public java.lang.Object getReferenceEntityData()

getReferenceFieldData

public java.lang.Object getReferenceFieldData()

getTargetEntityData

public java.lang.Object getTargetEntityData()

getTargetFieldData

public java.lang.Object getTargetFieldData()

setEntityRelationData

public void setEntityRelationData(java.lang.Object value)

setReferenceEntityData

public void setReferenceEntityData(java.lang.Object value)

setReferenceFieldData

public void setReferenceFieldData(java.lang.Object value)

setTargetEntityData

public void setTargetEntityData(java.lang.Object value)

setTargetFieldData

public void setTargetFieldData(java.lang.Object value)


Copyright © 2005 Caleigo. All Rights Reserved.