org.qi4j.index.sql.support.common
Class EntityTypeInfo

java.lang.Object
  extended by org.qi4j.index.sql.support.common.EntityTypeInfo

public final class EntityTypeInfo
extends Object

A helper interface to encapsulate information about certain entity type and how it appears in database.


Constructor Summary
EntityTypeInfo(EntityDescriptor entityDescriptor, Integer entityTypeID)
           
 
Method Summary
 EntityDescriptor getEntityDescriptor()
          Gets the entity descriptor of this entity type.
 Integer getEntityTypePK()
          Gets the primary key of this entity type, as it is stored in database in entity type lookup table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityTypeInfo

public EntityTypeInfo(EntityDescriptor entityDescriptor,
                      Integer entityTypeID)
Method Detail

getEntityTypePK

public Integer getEntityTypePK()
Gets the primary key of this entity type, as it is stored in database in entity type lookup table.

Returns:
The primary key of this entity type, as it is stored in database in entity type lookup table.

getEntityDescriptor

public EntityDescriptor getEntityDescriptor()
Gets the entity descriptor of this entity type.

Returns:
The entity descriptor of this entity type.