public enum Registry extends Enum<Registry>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
static CacheManager |
cacheManager() |
Configuration |
getConfiguration() |
protected List<String> |
getEdges(String join)
Returns edges for a join.
|
MetaModel |
getMetaModel(Class<? extends Model> modelClass) |
MetaModel |
getMetaModel(String table)
Provides a MetaModel of a model representing a table.
|
protected Class<? extends Model> |
getModelClass(String table,
boolean suppressException)
Returns model class for a table name, null if not found.
|
String |
getModelFile() |
StatisticsQueue |
getStatisticsQueue() |
protected String |
getTableName(Class<? extends Model> modelClass) |
static Registry |
instance() |
protected String |
metadataToJSON() |
void |
setModelFile(String modelFile)
Used to override the default model file, activejdbc_models.properties.
|
static Registry |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Registry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Registry INSTANCE
public static Registry[] values()
for (Registry c : Registry.values()) System.out.println(c);
public static Registry valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Registry instance()
public StatisticsQueue getStatisticsQueue()
public Configuration getConfiguration()
public static CacheManager cacheManager()
public MetaModel getMetaModel(String table)
table
- name of table represented by this MetaModel.protected String metadataToJSON()
protected Class<? extends Model> getModelClass(String table, boolean suppressException)
table
- table namesuppressException
- true to suppress exceptionprotected List<String> getEdges(String join)
join
- name of join table;public String getModelFile()
public void setModelFile(String modelFile)
modelFile
- The name of the file to use as your models properties file.Copyright © 2019 JavaLite. All rights reserved.