|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Dictionary | +--java.util.Hashtable | +--java.util.Properties | +--org.xquark.mapping.CompilationContext
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.
for an example of use.
,
Serialized FormField 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 |
public static final java.lang.String TABLE_NAME
public static final java.lang.String COLUMN_NAME
public static final java.lang.String DBMS_TYPE
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.
public static final java.lang.String USE_QUOTES_4_DDL
Constructor Detail |
public CompilationContext()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |