|
||||||||||
| 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
An ORM configuration parameters is a part of meta-model. The class is a root of a database configuration.
| Field Summary | |
|---|---|
static Key<MetaParams,Object> |
APPL_CONTEXT
An application context for initialization of the customer components of the meta-model. |
static Key<MetaParams,CachePolicy> |
CACHE_POLICY
Session cache policy. |
static Key<MetaParams,CheckReport> |
CHECK_KEYWORDS
CheckReport a keyword in the database table or colum name inside the meta-model. |
static Key<MetaParams,CommentPolicy> |
COMMENT_POLICY
A policy for assigning an annotation table comment Comment to database. |
static Key<MetaParams,Boolean> |
EXTENTED_INDEX_NAME_STRATEGY
An extended index name strategy |
static Key<MetaParams,Class<? extends IndexModelBuilder>> |
INDEX_MODEL_BUILDER
The class for is used for building a MetaIndex model. |
static Key<MetaParams,Boolean> |
INHERITANCE_MODE
Any action type or CREATE, UPDATE, DELETE on inheritance objects calls the same action to its 'parent' object. |
static Key<MetaParams,Class<? extends InitializationBatch>> |
INITIALIZATION_BATCH
An initialization batch implementation can be called after building the ORM meta-model. |
static Key<MetaParams,Integer> |
INSERT_MULTIROW_ITEM_LIMIT
The parameter is used to limit of the insert statement in case the "sql multirow insert". |
static Key<MetaParams,LazyLoading> |
LAZY_LOADING
The parameter 'lazyLoading' specify a lazy-loading policy in case that UJO objects have got any session. |
static Key<MetaParams,Boolean> |
LOG_METAMODEL_INFO
Set a logging level for a full meta-model information in the XML format where the default parameter value is true. |
static Key<MetaParams,Boolean> |
LOG_SQL_MULTI_INSERT
Enable the login for a multi-value SQL statement INSERT including its values where the default parameter value is false. |
static Key<MetaParams,Integer> |
LOG_VALUE_LENGTH_LIMIT
Logging JDBC arguments can be cropped using the next argument, default value 128 characters per value, the value Integer.MAX_VALUE means an unlimited. |
static Key<MetaParams,Boolean> |
LOGBACK_LOGGING_SUPPORT
Parameter tries to install a bridge 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,Class<? extends MetaDbService>> |
META_DB_SERVICE
The instance of the parameter class MetaDbService is used for creating and validation a database according to the meta-model. |
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,Class<? extends SqlNameProvider>> |
SQL_NAME_PROVIDER
Default SQL name provider for special names of database is called: SqlNameProvider |
static Key<MetaParams,String> |
TABLE_ALIAS_PREFIX
Special parameter for an automatically assembled table alias prefix. |
static Key<MetaParams,String> |
TABLE_ALIAS_SUFFIX
Special parameter 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 writing to/from the ResultSet. |
| Constructor Summary | |
|---|---|
MetaParams()
|
|
| Method Summary | ||
|---|---|---|
|
getConverter(Class<T> converterClass)
Returns a converter instance. |
|
IndexModelBuilder |
getIndexModelBuilder(MetaTable metaTable)
Create new instance of the class IndexModelBuilder and initialize the result by a parameter |
|
InitializationBatch |
getInitializationBatch()
Returns an instance of the initialization batch |
|
boolean |
isQuotedSqlNames()
Skip the check test and Quote all SQL columns, tables and alias names. |
|
MoreParams |
more()
Returns an object to provide the special parameters for a different use. |
|
void |
set(Key<MetaParams,Class<? extends InitializationBatch>> key,
InitializationBatch batch)
Assign an initialization batch |
|
|
set(Key<UJO,VALUE> key,
VALUE value)
Set a parameter value |
|
MetaParams |
setApplContext(Object applContext)
Set application context. |
|
void |
setQuotedSqlNames(boolean quote)
Skip the check test and Quote all SQL columns, tables and alias names. |
|
void |
writeValue(Key key,
Object value)
Write a value if the operation is enabled |
|
| Methods inherited from class org.ujorm.orm.AbstractMetaModel |
|---|
changeDefault, checkReadOnly, clearReadOnly, get, lock, 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, readUjoManager, readValueString, toString, writeValueString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ujorm.Ujo |
|---|
readKeys, readValue |
| 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,LazyLoading> LAZY_LOADING
LazyLoading.
In case the object have assigned no session, the key returns the null value
as well as common javabeans. A default key value is the
LazyLoading.ALLOWED_USING_OPEN_SESSION.
LazyLoadingpublic 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 InitializationBatch>> INITIALIZATION_BATCH
InitializationBatchpublic static final Key<MetaParams,Class<? extends ITypeService>> TYPE_SERVICE
ITypeService is used for conversion, reading and writing to/from the ResultSet.
You can specify a subtype of the class for a column special features.
Column.converter()public static final Key<MetaParams,Class<? extends IndexModelBuilder>> INDEX_MODEL_BUILDER
MetaIndex model.
You can specify a subtype of the class IndexModelBuilder
for an index special features.
IndexModelBuilder,
IndexModelOrderedBuilderpublic static final Key<MetaParams,Class<? extends MetaDbService>> META_DB_SERVICE
MetaDbService is used for creating and validation a database according to the meta-model.
You can overwrite some method for your ideas.
public static final Key<MetaParams,Class<? extends SqlNameProvider>> SQL_NAME_PROVIDER
SqlNameProvider
public static final Key<MetaParams,CheckReport> CHECK_KEYWORDS
Parameter values,
#QUOTE_SQL_NAMESpublic 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
true.
The TRUE value means the INFO level and the FALSE value means the FINE logging level.
public static final Key<MetaParams,Boolean> LOG_SQL_MULTI_INSERT
false.
If JDBC driver does not support the multi-value statement, the parameter is ignored.
public static final Key<MetaParams,Boolean> LOGBACK_LOGGING_SUPPORT
SLF4JBridgeHandler.install();
public static final Key<MetaParams,Integer> LOG_VALUE_LENGTH_LIMIT
Integer.MAX_VALUE means an unlimited.
public static final Key<MetaParams,Object> APPL_CONTEXT
public static final Key<MetaParams,Boolean> EXTENTED_INDEX_NAME_STRATEGY
MoreParams.EXTENTED_INDEX_NAME_STRATEGY| Constructor Detail |
|---|
public MetaParams()
| Method Detail |
|---|
public void writeValue(Key key,
Object value)
AbstractMetaModel
writeValue in interface UjoLockablewriteValue 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> key,
VALUE value)
public MetaParams setApplContext(Object applContext)
public MoreParams more()
public boolean isQuotedSqlNames()
CHECK_KEYWORDS,
CheckReport#SKIP_AND_QUOTE_SQL_NAMESpublic void setQuotedSqlNames(boolean quote)
quote - Parameter true affects to an escaping the database names,
else the false value will affects to checked a database KeyWords in the names.CHECK_KEYWORDS,
CheckReport#SKIP_AND_QUOTE_SQL_NAMES
public void set(Key<MetaParams,Class<? extends InitializationBatch>> key,
InitializationBatch batch)
public InitializationBatch getInitializationBatch()
throws IllegalStateException
IllegalStateException
public IndexModelBuilder getIndexModelBuilder(MetaTable metaTable)
throws IllegalStateException
IllegalStateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||