|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Registry>
org.javalite.activejdbc.Registry
public enum Registry
| Enum Constant Summary | |
|---|---|
INSTANCE
|
|
| Method Summary | |
|---|---|
void |
addListener(Class modelClass,
CallbackListener listener)
|
void |
addValidators(Class<? extends Model> daClass,
List<? extends Validator> modelValidators)
Deprecated. |
void |
addValidators(String daClass,
List<? extends Validator> modelValidators)
|
static CacheManager |
cacheManager()
|
Configuration |
getConfiguration()
|
protected List<String> |
getEdges(String join)
Returns edges for a join. |
protected List<CallbackListener> |
getListeners(Class modelClass)
|
MetaModel |
getMetaModel(Class<? extends Model> modelClass)
|
MetaModel |
getMetaModel(String table)
Provides a MetaModel of a model representing a table. |
MetaModel |
getMetaModelByClassName(String className)
Returns MetaModel associated with a model class. |
protected Class<? extends Model> |
getModelClass(String table,
boolean suppressException)
Returns model class for a table name, null if not found. |
StatisticsQueue |
getStatisticsQueue()
|
protected String |
getTableName(Class<? extends Model> modelClass)
|
protected List<Validator> |
getValidators(String daClass)
|
boolean |
initialized()
|
static Registry |
instance()
|
void |
removeValidator(Class<Model> daClass,
Validator validator)
|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Registry INSTANCE
| Method Detail |
|---|
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 name
NullPointerException - if the argument is nullpublic boolean initialized()
public 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.
public MetaModel getMetaModelByClassName(String className)
className - class name of a model.
public MetaModel getMetaModel(Class<? extends Model> modelClass)
protected Class<? extends Model> getModelClass(String table,
boolean suppressException)
table - table namesuppressException - true to suppress exception
protected String getTableName(Class<? extends Model> modelClass)
protected List<Validator> getValidators(String daClass)
@Deprecated
public void addValidators(Class<? extends Model> daClass,
List<? extends Validator> modelValidators)
public void addValidators(String daClass,
List<? extends Validator> modelValidators)
public void removeValidator(Class<Model> daClass,
Validator validator)
protected List<String> getEdges(String join)
join - name of join table;
protected List<CallbackListener> getListeners(Class modelClass)
public void addListener(Class modelClass,
CallbackListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||