org.rhq.helpers.perftest.support.config
Class Entity

java.lang.Object
  extended by org.rhq.helpers.perftest.support.config.Entity

public class Entity
extends Object

Represents an entity in the dependency graph.

Author:
Lukas Krejci

Constructor Summary
Entity()
           
 
Method Summary
 boolean equals(Object other)
           
 String getFilter()
           
 String getName()
           
 Set<Relationship> getRelationships()
           
 int hashCode()
           
 boolean isIncludeAllFields()
           
 boolean isRoot()
           
 void setFilter(String filter)
           
 void setIncludeAllFields(Boolean allDependents)
           
 void setName(String name)
           
 void setRelationships(Set<Relationship> relationships)
           
 void setRoot(boolean root)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Entity

public Entity()
Method Detail

getRelationships

public Set<Relationship> getRelationships()
Returns:
the relationships defined on this entity.

setRelationships

public void setRelationships(Set<Relationship> relationships)

getName

public String getName()
Returns:
the name of this entity

setName

public void setName(String name)

isIncludeAllFields

public boolean isIncludeAllFields()
Returns:
true if all fields on this entity are considered as included (as opposed to explicitly defined in the getRelationships()).

setIncludeAllFields

public void setIncludeAllFields(Boolean allDependents)
Parameters:
allDependents - the allDependents to set

isRoot

public boolean isRoot()
Returns:
true if this entity is to be considered the root of the exported hierarchy. The root entities are considered the base of the exported entity graph. All other non-root entities only contain additional configuration for given resources should they appear in the entity dependency graph as a dependency or dependent of some of the root entities.

setRoot

public void setRoot(boolean root)

getFilter

public String getFilter()
Returns:
the SQL statement that returns the primary keys to be considered. Setting this property only makes sense for root entities.

setFilter

public void setFilter(String filter)
Parameters:
filter - the filter to set

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.