org.xquark.mapping
Class CompilationContext

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--java.util.Properties
                    |
                    +--org.xquark.mapping.CompilationContext
All Implemented Interfaces:
java.lang.Cloneable, org.xquark.jdbc.typing.DBMSConstants, java.util.Map, java.io.Serializable

public class CompilationContext
extends java.util.Properties
implements org.xquark.jdbc.typing.DBMSConstants

Provide access to the mapping compilation context allowing to use the same generator code for multiple use. Some properties directly provided by the mapping engine are listed as constants in the current class. Custom parameters supplied by user in the mapping file will be provided as additional properties. A user generator that intends to use this compilation context must provide a constructor with this class as a unique parameter.

See Also:
for an example of use., Serialized Form

Field Summary
static java.lang.String COLUMN_NAME
          This property contains the name of the column where the generator value will be stored.
static java.lang.String DBMS_TYPE
          Returns one of the following constants: DBMSConstants.ORACLE, DBMSConstants.MYSQL, DBMSConstants.SQL_SERVER, DBMSConstants.SYBASE.
static java.lang.String TABLE_NAME
          This property contains the name of the table where the generator value will be stored.
static java.lang.String USE_QUOTES_4_DDL
          If "true", a SQL or DDL JDBC statement should use double quotes to surround table, column names and others DDL objects to avoid unwanted case automatic transformation.
 
Fields inherited from class java.util.Properties
defaults
 
Fields inherited from interface org.xquark.jdbc.typing.DBMSConstants
JDBC1, JDBC2, MYSQL, MYSQL_FILE, MYSQL323, NIL_FALSE_VALUE, NIL_TRUE_VALUE, ORACLE, ORACLE_FILE, ORACLE8, ORACLE8I, ORACLELITE, RCSName, RCSRevision, SQL_SERVER, SQL_SERVER_2000, SQL_SERVER_FILE, STRING_DELIMITOR, STRING_DELIMITOR_LENGTH, SYBASE, SYBASE_ASE_11_9, SYBASE_FILE, TIMESTEN, TIMESTEN_FILE, TIMESTEN40
 
Constructor Summary
CompilationContext()
           
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TABLE_NAME

public static final java.lang.String TABLE_NAME
This property contains the name of the table where the generator value will be stored.

See Also:
Constant Field Values

COLUMN_NAME

public static final java.lang.String COLUMN_NAME
This property contains the name of the column where the generator value will be stored.

See Also:
Constant Field Values

DBMS_TYPE

public static final java.lang.String DBMS_TYPE
Returns one of the following constants: DBMSConstants.ORACLE, DBMSConstants.MYSQL, DBMSConstants.SQL_SERVER, DBMSConstants.SYBASE. This gives the database vendor Bridge is connected to and can be use to swicth between specific SQL syntaxes.

See Also:
Constant Field Values

USE_QUOTES_4_DDL

public static final java.lang.String USE_QUOTES_4_DDL
If "true", a SQL or DDL JDBC statement should use double quotes to surround table, column names and others DDL objects to avoid unwanted case automatic transformation.

See Also:
Constant Field Values
Constructor Detail

CompilationContext

public CompilationContext()


Copyright © 2004 Université de Versailles Saint-Quentin, XQuark Group. All rights reserved.