org.ujoframework.orm.annot
Annotation Type Db


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Db

Use the annotation to mark a UjoProperty static field like XML Attribute.


Required Element Summary
 java.lang.Class<? extends SqlDialect> dialect
          SQL dialect by a DB Vendor.
 
Optional Element Summary
 java.lang.String jdbcDriver
          JDBC Driver
 java.lang.String jdbcUrl
          JDBC Url
 java.lang.String[] jndi
          JNDI (java naming and directory interface) connection string.
 java.lang.String password
          Connection password
 java.lang.Class sequencer
          The sequencer class for tables of the current database.
 java.lang.String schema
          Default name of table schema is copied into table models if thay are empty.
 java.lang.String user
          Connection User
 

Element Detail

dialect

public abstract java.lang.Class<? extends SqlDialect> dialect
SQL dialect by a DB Vendor.

schema

public abstract java.lang.String schema
Default name of table schema is copied into table models if thay are empty.

Default:
""

jndi

public abstract java.lang.String[] jndi
JNDI (java naming and directory interface) connection string. A typical use on the Tomcat:
jndi = {"java:comp/env","jdbc/EmployeeDB"}

Default:
{}

jdbcUrl

public abstract java.lang.String jdbcUrl
JDBC Url

Default:
""

jdbcDriver

public abstract java.lang.String jdbcDriver
JDBC Driver

Default:
""

user

public abstract java.lang.String user
Connection User

Default:
""

password

public abstract java.lang.String password
Connection password

Default:
""

sequencer

public abstract java.lang.Class sequencer
The sequencer class for tables of the current database. A value can be a subtype of 'org.ujoframework.orm.UjoSequencer' with one-parameter constructor type of MetaTable. If the NULL value is specified the then a default sequencer 'UjoSequencer' will be used.

Default:
org.ujoframework.orm.UjoSequencer.class


Copyright © 2010. All Rights Reserved.