|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujorm.extensions.SuperAbstractUjo
org.ujorm.extensions.AbstractUjo
org.ujorm.orm.AbstractMetaModel
org.ujorm.orm.metaModel.MetaParams
public final class MetaParams
A logical database description. The class is a root of database configuration.
| Field Summary | |
|---|---|
static Key<MetaParams,Object> |
APPL_CONTEXT
An application context for initializaton of the customer componets of the meta-model. |
static Key<MetaParams,CachePolicy> |
CACHE_POLICY
Session cache policy. |
static Key<MetaParams,CommentPolicy> |
COMMENT_POLICY
A policy for assigning an annotation table comment Comment to database. |
static Key<MetaParams,CheckReport> |
CHECK_KEYWORDS
CheckReport a keyword in the database table or colum name inside the meta-model. |
static Key<MetaParams,Boolean> |
INHERITANCE_MODE
Any action type or CREATE, UPDATE, DELETE on inheritance objects calls the same action to its 'parrent' object. |
static Key<MetaParams,Integer> |
INSERT_MULTIROW_ITEM_LIMIT
The parameter is used to limit of the insert sttatemtn in case the "sql multirow insert". |
static Key<MetaParams,Boolean> |
LOG_METAMODEL_INFO
Set a logging level for a full meta-model information in the XML format. |
static Key<MetaParams,Boolean> |
LOGBACK_LOGGING_SUPPORT
Pamameter tries to install a brighe to the Logback logging framework using a statement SLF4JBridgeHandler.install(); |
static Key<MetaParams,Integer> |
MAX_ITEM_COUNT_4_IN
The maximal count of items for the SQL IN operator, default value is 500 items The limit is used inside the method loadLazyValuesAsBatch(..). |
static Key<MetaParams,MoreParams> |
MORE_PARAMS
The parameter contains the special parameters with for different use. |
static Key<MetaParams,Orm2ddlPolicy> |
ORM2DLL_POLICY
A policy to defining the database structure by a DDL. |
static Key<MetaParams,File> |
SAVE_CONFIG_TO_FILE
Framework can save the final configuration file to a new file for an external use. |
static Key<MetaParams,Integer> |
SEQUENCE_CACHE
Sequential cache parameter saves the number of requests to the following sequence when a insert statement into DB. |
static Key<MetaParams,Boolean> |
SEQUENCE_SCHEMA_SYMBOL
The parameter value TRUE affects to a Sequence key name in the internal sequence generator. |
static Key<MetaParams,String> |
TABLE_ALIAS_PREFIX
Special prameter for an automatically assembled table alias prefix. |
static Key<MetaParams,String> |
TABLE_ALIAS_SUFFIX
Special prameter for an automatically assembled table alias prefix. |
static Key<MetaParams,Class<? extends ITypeService>> |
TYPE_SERVICE
The instance of the parameter class ITypeService is used for conversion, reading and writting to/from the ResultSet. |
| Constructor Summary | |
|---|---|
MetaParams()
|
|
| Method Summary | ||
|---|---|---|
|
getConverter(Class<T> converterClass)
Returns a converter instance. |
|
MoreParams |
more()
Returns an object to provide the special parameters for a different use. |
|
|
set(Key<UJO,VALUE> property,
VALUE value)
Set a parameter value |
|
MetaParams |
setApplContext(Object applContext)
Set application context. |
|
void |
writeValue(Key property,
Object value)
|
|
| Methods inherited from class org.ujorm.orm.AbstractMetaModel |
|---|
get, changeDefault, checkReadOnly, isFilled, isFilled, readAuthorization, readOnly, setReadOnly |
| Methods inherited from class org.ujorm.extensions.AbstractUjo |
|---|
newCamelFactory, newFactory, readValue |
| Methods inherited from class org.ujorm.extensions.SuperAbstractUjo |
|---|
clone, equals, init, init, readKeys, readProperties, readUjoManager, readValueString, toString, writeValueString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Key<MetaParams,CachePolicy> CACHE_POLICY
Parameter valuespublic static final Key<MetaParams,String> TABLE_ALIAS_PREFIX
public static final Key<MetaParams,String> TABLE_ALIAS_SUFFIX
public static final Key<MetaParams,Integer> SEQUENCE_CACHE
public static final Key<MetaParams,Orm2ddlPolicy> ORM2DLL_POLICY
Parameter valuespublic static final Key<MetaParams,CommentPolicy> COMMENT_POLICY
Comment to database.
The default value is ON_ANY_CHANGE.
Parameter valuespublic static final Key<MetaParams,File> SAVE_CONFIG_TO_FILE
public static final Key<MetaParams,Class<? extends ITypeService>> TYPE_SERVICE
ITypeService is used for conversion, reading and writting to/from the ResultSet.
You can specify a sybtype of the class for a commiono special fetures.
Column.converter()public static final Key<MetaParams,CheckReport> CHECK_KEYWORDS
Parameter valuespublic static final Key<MetaParams,Integer> MAX_ITEM_COUNT_4_IN
loadLazyValuesAsBatch(..).
OrmTools.loadLazyValuesAsBatch(java.lang.Iterable, org.ujorm.Key)public static final Key<MetaParams,Boolean> SEQUENCE_SCHEMA_SYMBOL
public static final Key<MetaParams,Boolean> INHERITANCE_MODE
batch update or
batch delete due direct modification of database.
MetaTable.getParent(..)public static final Key<MetaParams,Integer> INSERT_MULTIROW_ITEM_LIMIT
save(List)public static final Key<MetaParams,MoreParams> MORE_PARAMS
MoreParamspublic static final Key<MetaParams,Boolean> LOG_METAMODEL_INFO
public static final Key<MetaParams,Boolean> LOGBACK_LOGGING_SUPPORT
SLF4JBridgeHandler.install();
public static final Key<MetaParams,Object> APPL_CONTEXT
| Constructor Detail |
|---|
public MetaParams()
| Method Detail |
|---|
public void writeValue(Key property,
Object value)
writeValue in interface UjowriteValue in class AbstractMetaModelpublic <T extends ITypeService> T getConverter(Class<T> converterClass)
converterClass - A class to create an instance of the converter. If the value is null,
then a default converter defined in parameters is used.
public <UJO extends MetaParams,VALUE> MetaParams set(Key<UJO,VALUE> property,
VALUE value)
public MetaParams setApplContext(Object applContext)
public MoreParams more()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||