public final class MetaParams extends AbstractMetaModel
| Modifier and Type | Field and Description |
|---|---|
static org.ujorm.Key<MetaParams,Object> |
APPL_CONTEXT
An application context for initialization of the customer components of the meta-model.
|
static org.ujorm.Key<MetaParams,CachePolicy> |
CACHE_POLICY
Session cache policy.
|
static org.ujorm.Key<MetaParams,CommentPolicy> |
COMMENT_POLICY
A policy for assigning an annotation table comment
Comment to database. |
static org.ujorm.Key<MetaParams,Boolean> |
EXTENTED_INDEX_NAME_STRATEGY
An extended index name strategy
|
static org.ujorm.Key<MetaParams,CheckReport> |
CHECK_KEYWORDS
CheckReport a keyword in the database table or colum name inside the meta-model.
|
static org.ujorm.Key<MetaParams,Class<? extends IndexModelBuilder>> |
INDEX_MODEL_BUILDER
The class for is used for building a
MetaIndex model. |
static org.ujorm.Key<MetaParams,Boolean> |
INHERITANCE_MODE
Any action type or CREATE, UPDATE, DELETE on inheritance objects calls the same action to its 'parent' object.
|
static org.ujorm.Key<MetaParams,Class<? extends InitializationBatch>> |
INITIALIZATION_BATCH
An initialization batch implementation can be called after building the ORM meta-model.
|
static org.ujorm.Key<MetaParams,Integer> |
INSERT_MULTIROW_ITEM_LIMIT
The parameter is used to limit of the insert statement in case the "sql multirow insert".
|
static org.ujorm.Key<MetaParams,LazyLoading> |
LAZY_LOADING
The parameter 'lazyLoading' specify a lazy-loading policy in case
that UJO objects have got any session.
|
static org.ujorm.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 org.ujorm.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 org.ujorm.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 org.ujorm.Key<MetaParams,Boolean> |
LOGBACK_LOGGING_SUPPORT
Parameter tries to install a bridge to the Logback logging framework
using a statement
SLF4JBridgeHandler.install(); |
static org.ujorm.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 org.ujorm.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 org.ujorm.Key<MetaParams,MoreParams> |
MORE_PARAMS
The parameter contains the special parameters with for different use.
|
static org.ujorm.Key<MetaParams,Orm2ddlPolicy> |
ORM2DLL_POLICY
A policy to defining the database structure by a DDL.
|
static org.ujorm.Key<MetaParams,File> |
SAVE_CONFIG_TO_FILE
Framework can save the final configuration file to a new file for an external use.
|
static org.ujorm.Key<MetaParams,Integer> |
SEQUENCE_CACHE
Sequential cache parameter saves the number of requests to the following sequence when a insert statement into DB.
|
static org.ujorm.Key<MetaParams,Boolean> |
SEQUENCE_SCHEMA_SYMBOL
The parameter value TRUE affects to a Sequence key name in the internal sequence generator.
|
static org.ujorm.Key<MetaParams,Class<? extends SqlNameProvider>> |
SQL_NAME_PROVIDER
Default SQL name provider for special names of database is called:
SqlNameProvider |
static org.ujorm.Key<MetaParams,String> |
TABLE_ALIAS_PREFIX
Special parameter for an automatically assembled table alias prefix.
|
static org.ujorm.Key<MetaParams,String> |
TABLE_ALIAS_SUFFIX
Special parameter for an automatically assembled table alias prefix.
|
static org.ujorm.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 and Description |
|---|
MetaParams() |
| Modifier and Type | Method and Description |
|---|---|
<T extends ITypeService> |
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(org.ujorm.Key<MetaParams,Class<? extends InitializationBatch>> key,
InitializationBatch batch)
Assign an initialization batch
|
<UJO extends MetaParams,VALUE> |
set(org.ujorm.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(org.ujorm.Key key,
Object value)
Write a value if the operation is enabled
|
clearReadOnly, get, changeDefault, checkReadOnly, lock, readAuthorization, readOnly, setReadOnlynewCamelFactory, newFactory, newSnakeCaseFactory, readValueclone, equals, init, init, readKeys, readUjoManager, readValueString, toString, writeValueStringpublic static final org.ujorm.Key<MetaParams,CachePolicy> CACHE_POLICY
Parameter valuespublic static final org.ujorm.Key<MetaParams,String> TABLE_ALIAS_PREFIX
public static final org.ujorm.Key<MetaParams,String> TABLE_ALIAS_SUFFIX
public static final org.ujorm.Key<MetaParams,Integer> SEQUENCE_CACHE
public static final org.ujorm.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 org.ujorm.Key<MetaParams,Orm2ddlPolicy> ORM2DLL_POLICY
Parameter valuespublic static final org.ujorm.Key<MetaParams,CommentPolicy> COMMENT_POLICY
Comment to database.
The default value is ON_ANY_CHANGE.Parameter valuespublic static final org.ujorm.Key<MetaParams,File> SAVE_CONFIG_TO_FILE
public static final org.ujorm.Key<MetaParams,Class<? extends InitializationBatch>> INITIALIZATION_BATCH
InitializationBatchpublic static final org.ujorm.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 org.ujorm.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 org.ujorm.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 org.ujorm.Key<MetaParams,Class<? extends SqlNameProvider>> SQL_NAME_PROVIDER
SqlNameProviderpublic static final org.ujorm.Key<MetaParams,CheckReport> CHECK_KEYWORDS
Parameter values,
#QUOTE_SQL_NAMESpublic static final org.ujorm.Key<MetaParams,Integer> MAX_ITEM_COUNT_4_IN
loadLazyValuesAsBatch(..).public static final org.ujorm.Key<MetaParams,Boolean> SEQUENCE_SCHEMA_SYMBOL
public static final org.ujorm.Key<MetaParams,Boolean> INHERITANCE_MODE
batch update or
batch delete due direct modification of database.MetaTable.getParent(..)public static final org.ujorm.Key<MetaParams,Integer> INSERT_MULTIROW_ITEM_LIMIT
save(List)public static final org.ujorm.Key<MetaParams,MoreParams> MORE_PARAMS
MoreParamspublic static final org.ujorm.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 org.ujorm.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 org.ujorm.Key<MetaParams,Boolean> LOGBACK_LOGGING_SUPPORT
SLF4JBridgeHandler.install();public static final org.ujorm.Key<MetaParams,Integer> LOG_VALUE_LENGTH_LIMIT
Integer.MAX_VALUE means an unlimited.public static final org.ujorm.Key<MetaParams,Object> APPL_CONTEXT
public static final org.ujorm.Key<MetaParams,Boolean> EXTENTED_INDEX_NAME_STRATEGY
MoreParams.EXTENTED_INDEX_NAME_STRATEGYpublic void writeValue(org.ujorm.Key key,
Object value)
AbstractMetaModelwriteValue in interface org.ujorm.extensions.UjoLockablewriteValue in interface org.ujorm.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(org.ujorm.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_NAMESpublic void set(org.ujorm.Key<MetaParams,Class<? extends InitializationBatch>> key, InitializationBatch batch)
public InitializationBatch getInitializationBatch() throws IllegalStateException
IllegalStateExceptionpublic IndexModelBuilder getIndexModelBuilder(MetaTable metaTable) throws IllegalStateException
IllegalStateExceptionCopyright 2013, Pavel Ponec