com.hcl.voltmx.sync.services.entityframework
Interface IEntity

All Known Implementing Classes:
SyncEntity

public interface IEntity

It is an interface for the entities which stores a row of data


Method Summary
 void add(java.lang.String key, java.lang.Object value)
          Adds the attribute name and attribute value
 SyncEntity.ChangeType getChangeType()
          Returns the change type of the entity.
 java.util.Map<java.lang.String,java.lang.Object> getData()
          Returns the entity data in a map, where keys are the attribute names and values are corresponding attribute values
 java.lang.String getID()
           
 java.util.Set<java.lang.String> getKeys()
          Returns the primary key information of the entity
 EntityType getType()
          Returns the EntityType object, which will have the meta information of the entity
 java.lang.String getURI()
           
 java.lang.Object getValue(java.lang.String key)
          Returns the attribute value for a specified attribute
 void setChangeType(SyncEntity.ChangeType changeType)
          Sets the change type of the entity
 

Method Detail

getID

java.lang.String getID()

getURI

java.lang.String getURI()

getValue

java.lang.Object getValue(java.lang.String key)
Returns the attribute value for a specified attribute

Parameters:
key - Attribute Name
Returns:
Value of the attribute

add

void add(java.lang.String key,
         java.lang.Object value)
Adds the attribute name and attribute value

Parameters:
key - Attribute Name
value - Attribute Value

getType

EntityType getType()
Returns the EntityType object, which will have the meta information of the entity

Returns:
Meta Information of the Entity

getKeys

java.util.Set<java.lang.String> getKeys()
Returns the primary key information of the entity

Returns:

getData

java.util.Map<java.lang.String,java.lang.Object> getData()
Returns the entity data in a map, where keys are the attribute names and values are corresponding attribute values

Returns:

getChangeType

SyncEntity.ChangeType getChangeType()
Returns the change type of the entity.

Returns:

setChangeType

void setChangeType(SyncEntity.ChangeType changeType)
Sets the change type of the entity

Parameters:
changeType -