org.ujoframework.orm.metaModel
Class MetaParams

Package class diagram package MetaParams
java.lang.Object
  extended by org.ujoframework.extensions.AbstractUjo
      extended by org.ujoframework.implementation.quick.QuickUjo
          extended by org.ujoframework.orm.AbstractMetaModel
              extended by org.ujoframework.orm.metaModel.MetaParams
All Implemented Interfaces:
java.io.Serializable, UjoCloneable, UjoTextable, Ujo

public final class MetaParams
extends AbstractMetaModel

A logical database description. The class is a root of database configuration.

See Also:
Serialized Form

Field Summary
static Property<MetaParams,ValueTextable> APPL_CONTEXT
          An application context for initializaton of the customer componets of the meta-model.
static Property<MetaParams,CachePolicy> CACHE_POLICY
          Enable / disable a session cache for the business objects.
static Property<MetaParams,java.lang.Boolean> CACHE_WEAK_MAP
          The parameters enables the the cache implementation by WeakHashMap.
static Property<MetaParams,CheckReport> CHECK_KEYWORDS
          CheckReport a keyword in the database table or colum name inside the meta-model.
static Property<MetaParams,Orm2ddlPolicy> ORM2DLL_POLICY
          A policy to defining the database structure by a DDL.
static Property<MetaParams,java.io.File> SAVE_CONFIG_TO_FILE
          Framework can save the final configuration file to a new file for an external use.
static Property<MetaParams,java.lang.Integer> SEQUENCE_CACHE
          Sequential cache parameter saves the number of requests to the following sequence when a insert statement into DB.
static Property<MetaParams,java.lang.String> TABLE_ALIAS_PREFIX
          Special prameter for an automatically assembled table alias prefix.
static Property<MetaParams,java.lang.String> TABLE_ALIAS_SUFFIX
          Special prameter for an automatically assembled table alias prefix.
static Property<MetaParams,java.lang.Class> TYPE_SERVICE
          Change a TypeService class by a subtype for user type customization.
 
Constructor Summary
MetaParams()
           
 
Method Summary
 TypeService getTypeService()
          Returns a type service instance
 boolean isCacheEnabled()
          Is the cache enabled?
 void writeValue(UjoProperty property, java.lang.Object value)
          It is a common method for writing all object values, however there is strongly recomended to use a method Property.setValue(org.ujoframework.Ujo, java.lang.Object) to an external access for a better type safe.
 
Methods inherited from class org.ujoframework.orm.AbstractMetaModel
get, changeDefault, checkReadOnly, isUsable, isUsable, readAuthorization, readOnly, setReadOnly
 
Methods inherited from class org.ujoframework.implementation.quick.QuickUjo
newListProperty, newListProperty, newProperty, newProperty, newProperty, newProperty, newProperty, newProperty, readValue
 
Methods inherited from class org.ujoframework.extensions.AbstractUjo
clone, equals, init, init, readProperties, readUjoManager, readValueString, toString, writeValueString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CACHE_POLICY

public static final Property<MetaParams,CachePolicy> CACHE_POLICY
Enable / disable a session cache for the business objects.


CACHE_WEAK_MAP

public static final Property<MetaParams,java.lang.Boolean> CACHE_WEAK_MAP
The parameters enables the the cache implementation by WeakHashMap. The false value use a HashMap implementation. Default value is TRUE.


TABLE_ALIAS_PREFIX

public static final Property<MetaParams,java.lang.String> TABLE_ALIAS_PREFIX
Special prameter for an automatically assembled table alias prefix.


TABLE_ALIAS_SUFFIX

public static final Property<MetaParams,java.lang.String> TABLE_ALIAS_SUFFIX
Special prameter for an automatically assembled table alias prefix.


SEQUENCE_CACHE

public static final Property<MetaParams,java.lang.Integer> SEQUENCE_CACHE
Sequential cache parameter saves the number of requests to the following sequence when a insert statement into DB. The value of the parameter is used only when creating a new DB, indivuální ORM changes for each table can be changed any time later in the column 'cache' of table 'ormujo_pk_support' . Default values is 100, the smallest possible value is 1.


ORM2DLL_POLICY

public static final Property<MetaParams,Orm2ddlPolicy> ORM2DLL_POLICY
A policy to defining the database structure by a DDL.


SAVE_CONFIG_TO_FILE

public static final Property<MetaParams,java.io.File> SAVE_CONFIG_TO_FILE
Framework can save the final configuration file to a new file for an external use. If this parameter is null than the save action is skipped.


TYPE_SERVICE

public static final Property<MetaParams,java.lang.Class> TYPE_SERVICE
Change a TypeService class by a subtype for user type customization.


CHECK_KEYWORDS

public static final Property<MetaParams,CheckReport> CHECK_KEYWORDS
CheckReport a keyword in the database table or colum name inside the meta-model.


APPL_CONTEXT

public static final Property<MetaParams,ValueTextable> APPL_CONTEXT
An application context for initializaton of the customer componets of the meta-model.

See Also:
ValueTextable
Constructor Detail

MetaParams

public MetaParams()
Method Detail

writeValue

public void writeValue(UjoProperty property,
                       java.lang.Object value)
Description copied from class: QuickUjo
It is a common method for writing all object values, however there is strongly recomended to use a method Property.setValue(org.ujoframework.Ujo, java.lang.Object) to an external access for a better type safe. The method have got a strategy place for an implementation of several listeners and validators.
NOTE: If property is an incorrect then method can throws an ArrayIndexOutOfBoundsException.

Specified by:
writeValue in interface Ujo
Overrides:
writeValue in class AbstractMetaModel
Parameters:
property - Property must be a direct type only!
See Also:
Property.setValue(Ujo,Object)

isCacheEnabled

public boolean isCacheEnabled()
Is the cache enabled?


getTypeService

public TypeService getTypeService()
Returns a type service instance



Copyright © 2007-2010 PPonec