public final class MetaParams extends AbstractMetaModel
| Modifier and Type | Field and Description |
|---|---|
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,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> |
INHERITANCE_MODE
Any action type or CREATE, UPDATE, DELETE on inheritance objects calls the same action to its 'parrent' object.
|
static Key<MetaParams,Class<? extends InitializationBatch>> |
INITIALIZATION_BATCH
An inicializaton 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 sttatemtn 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 sesson.
|
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 loggin 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
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,Class<? extends MetaDbService>> |
META_DB_SERVICE
The instance of the parameter class
MetaDbService is used for creating and validaton 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 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 and Description |
|---|
MetaParams() |
| Modifier and Type | Method and Description |
|---|---|
<T extends ITypeService> |
getConverter(Class<T> converterClass)
Returns a converter instance.
|
InitializationBatch |
getInitializationBatch()
Retunrs 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
|
<UJO extends MetaParams,VALUE> |
set(Key<UJO,VALUE> property,
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 property,
Object value) |
changeDefault, checkReadOnly, clearReadOnly, get, readAuthorization, readOnly, setReadOnlynewCamelFactory, newFactory, readValueclone, equals, init, init, readKeys, readUjoManager, readValueString, toString, writeValueStringpublic 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 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,Class<? extends MetaDbService>> META_DB_SERVICE
MetaDbService is used for creating and validaton a database according to the meta-model.
You can overwrite some method for youre ieas.public static final Key<MetaParams,Class<? extends SqlNameProvider>> SQL_NAME_PROVIDER
SqlNameProviderpublic static final Key<MetaParams,CheckReport> CHECK_KEYWORDS
Parameter values,
#QUOTE_SQL_NAMESpublic static final Key<MetaParams,Integer> MAX_ITEM_COUNT_4_IN
loadLazyValuesAsBatch(..).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 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()
public boolean isQuotedSqlNames()
CHECK_KEYWORDS,
CheckReport#SKIP_AND_QUOTE_SQL_NAMESpublic void setQuotedSqlNames(boolean quote)
quote - Parameter true affects to an escapinng 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(Key<MetaParams,Class<? extends InitializationBatch>> key, InitializationBatch batch)
public InitializationBatch getInitializationBatch() throws IllegalStateException
IllegalStateExceptionCopyright 2013, Pavel Ponec