Enum Class Registry

All Implemented Interfaces:
Serializable, Comparable<Registry>, Constable

public enum Registry extends Enum<Registry>
Igor Polevoy, Eric Nielsen
  • Enum Constant Details


      public static final Registry INSTANCE
  • Method Details

    • values

      public static Registry[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Registry valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • instance

      public static Registry instance()
    • getStatisticsQueue

      public StatisticsQueue getStatisticsQueue()
    • getConfiguration

      public Configuration getConfiguration()
    • cacheManager

      public static CacheManager cacheManager()
    • getMetaModel

      public MetaModel getMetaModel(String table)
      Provides a MetaModel of a model representing a table.
      table - name of table represented by this MetaModel.
      MetaModel of a model representing a table.
    • getMetaModel

      public MetaModel getMetaModel(Class<? extends Model> modelClass)
    • metadataToJSON

      protected String metadataToJSON()
    • getModelClass

      protected Class<? extends Model> getModelClass(String table, boolean suppressException)
      Returns model class for a table name, null if not found.
      table - table name
      suppressException - true to suppress exception
      model class for a table name, null if not found.s
    • getTableName

      protected String getTableName(Class<? extends Model> modelClass)
    • getEdges

      protected List<String> getEdges(String join)
      Returns edges for a join. An edge is a table in a many to many relationship that is not a join. We have to go through all the associations here because join tables, (even if the model exists) will not have associations to the edges.
      join - name of join table;
      edges for a join
    • getModelFile

      public String getModelFile()
    • setModelFile

      public void setModelFile(String modelFile)
      Used to override the default model file, activejdbc_models.properties. Please note: After initial registration of the model classes in ActiveJDBC this method will not function. That means in order to utilize this method, you must call it before doing any work with models. Usage of this method is only advised if you know what you're doing, and understand the risks of improperly using the method.
      modelFile - The name of the file to use as your models properties file.