Interface TopiaEntityEnumProvider<T extends TopiaEntityEnum>


public interface TopiaEntityEnumProvider<T extends TopiaEntityEnum>
Object which helps to wrap some static generated code (entityEnum). This contract used to be named TopiaPersistenceHelper.
Since:
2.6.12
Author:
Tony Chemit - chemit@codelutin.com
  • Method Summary

    Modifier and Type
    Method
    Description
    <E extends TopiaEntity>
    T
    Method that returns the TopiaEntityEnum corresponding to the given entity's class.
    Method that returns the TopiaEntityEnum corresponding to the given entity's enum name.
  • Method Details

    • getEntityEnum

      <E extends TopiaEntity> T getEntityEnum(Class<E> type)
      Method that returns the TopiaEntityEnum corresponding to the given entity's class.
      Type Parameters:
      E - works only for TopiaEntity, thus E must extend TopiaEntity
      Parameters:
      type - the entity's class
      Returns:
      the found TopiaEntityEnum. Should not be null.
    • getEntityEnum

      T getEntityEnum(String enumName)
      Method that returns the TopiaEntityEnum corresponding to the given entity's enum name.
      Parameters:
      enumName - the entity's enum name
      Returns:
      the found TopiaEntityEnum. Should not be null.