com.taggercat.metadata
Interface MetaDataReader

All Known Implementing Classes:
MetaDataReaderImpl

public interface MetaDataReader

Reads the metadata from the system tables, and provides access methods for the same. All the metadata is read on application startup. The reload method can be called to reload the metadata on demand.

 

Method Summary
 java.util.Map<java.lang.String,com.taggercat.rules.DerivationList> getDerivations()
           
 java.lang.String getEntityNameForEditPageName(java.lang.String pageName)
          Get the primary entity name for the specified default page name.
 java.lang.String getEntityNameForSearchPageName(java.lang.String pageName)
          Get the primary entity name for the specified default page name.
 java.util.Map<java.lang.String,MetaEntity> getMetaData()
           
 java.util.List<MetaEntity> getMetaEntities()
           
 MetaEntity getMetaEntity(java.lang.String entityName)
           
 java.util.Map<java.lang.String,MetaProperty> getMetaProperties(java.lang.String entityName)
           
 MetaProperty getMetaProperty(java.lang.String entityName, java.lang.String propertyName)
           
 void listEntities(java.lang.String filter)
           
 void listProperties(java.lang.String entityName)
          This is a debug type method that Lists the properties on the specified entity to System.out.
 java.util.Map<java.lang.String,MetaEntity> readMetaData(org.hibernate.cfg.Configuration hbn8Config, org.hibernate.SessionFactory sessionFactory, java.lang.String tenantName)
           
 java.util.Map<java.lang.String,MetaEntity> reload(org.hibernate.SessionFactory sessionFactory)
          Reloads the metadata from the System tables, but does not use the mapping files.
 

Method Detail

readMetaData

java.util.Map<java.lang.String,MetaEntity> readMetaData(org.hibernate.cfg.Configuration hbn8Config,
                                                        org.hibernate.SessionFactory sessionFactory,
                                                        java.lang.String tenantName)
                                                        throws java.lang.Exception
Throws:
java.lang.Exception

reload

java.util.Map<java.lang.String,MetaEntity> reload(org.hibernate.SessionFactory sessionFactory)
                                                  throws java.lang.Exception
Reloads the metadata from the System tables, but does not use the mapping files. This is experimental at this time.

Throws:
java.lang.Exception
Parameters:
sessionFactory - the session factory
Returns:
the metadata map

listEntities

void listEntities(java.lang.String filter)

listProperties

void listProperties(java.lang.String entityName)
This is a debug type method that Lists the properties on the specified entity to System.out.

Parameters:
entityName -

getMetaProperty

MetaProperty getMetaProperty(java.lang.String entityName,
                             java.lang.String propertyName)

getMetaProperties

java.util.Map<java.lang.String,MetaProperty> getMetaProperties(java.lang.String entityName)

getMetaEntity

MetaEntity getMetaEntity(java.lang.String entityName)

getMetaEntities

java.util.List<MetaEntity> getMetaEntities()

getMetaData

java.util.Map<java.lang.String,MetaEntity> getMetaData()

getEntityNameForSearchPageName

java.lang.String getEntityNameForSearchPageName(java.lang.String pageName)
Get the primary entity name for the specified default page name.

Parameters:
pageName -
Returns:
the entity name if found, otherwise null

getEntityNameForEditPageName

java.lang.String getEntityNameForEditPageName(java.lang.String pageName)
Get the primary entity name for the specified default page name.

Parameters:
pageName -
Returns:
the entity name if found, otherwise null

getDerivations

java.util.Map<java.lang.String,com.taggercat.rules.DerivationList> getDerivations()
Returns:
the derivations