org.qi4j.spi.entity
Class EntityType

java.lang.Object
  extended by org.qi4j.spi.entity.EntityType
All Implemented Interfaces:
Serializable

public final class EntityType
extends Object
implements Serializable

SPI-level description of an Entity type. This contains all metainformation about an Entity, including its properties, associations and many-associations. Also contains functions for calculating the version, so that Entity types can evolve safely.

See Also:
Serialized Form

Constructor Summary
EntityType(TypeName entityType, boolean queryable, Set<String> mixinTypes, Set<PropertyType> properties, Set<AssociationType> associations, Set<ManyAssociationType> manyAssociations)
           
 
Method Summary
 Set<AssociationType> associations()
           
 boolean equals(Object o)
           
 int hashCode()
           
 Set<ManyAssociationType> manyAssociations()
           
 Set<String> mixinTypes()
           
 Set<PropertyType> properties()
           
 boolean queryable()
           
 String toString()
           
 TypeName type()
           
 String uri()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityType

public EntityType(TypeName entityType,
                  boolean queryable,
                  Set<String> mixinTypes,
                  Set<PropertyType> properties,
                  Set<AssociationType> associations,
                  Set<ManyAssociationType> manyAssociations)
Method Detail

type

public TypeName type()

mixinTypes

public Set<String> mixinTypes()

uri

public String uri()

queryable

public boolean queryable()

properties

public Set<PropertyType> properties()

associations

public Set<AssociationType> associations()

manyAssociations

public Set<ManyAssociationType> manyAssociations()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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