de.mguennewig.pobjtool.ddl
Class MySQL

java.lang.Object
  extended by de.mguennewig.pobjtool.ddl.DataDefinition
      extended by de.mguennewig.pobjtool.ddl.MySQL

public class MySQL
extends DataDefinition

Data Definition Language for the MySQL database.

Limitations of MySQL:

Author:
Michael Günnewig

Field Summary
static int DEFAULT_VERSION
          Specifies the default MySQL database version, which is 4.x.
static int MYSQL_V4
          Specifies MySQL database version 4.x.
static int MYSQL_V5
          Specifies MySQL database version 5.x.
 
Constructor Summary
MySQL(java.lang.String schemaPrefix, int version)
          Creates a new data definition instance for a MySQL database.
 
Method Summary
 
Methods inherited from class de.mguennewig.pobjtool.ddl.DataDefinition
create, drop, getIdFieldType, getSchemaPrefix, grants
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MYSQL_V4

public static final int MYSQL_V4
Specifies MySQL database version 4.x.

See Also:
Constant Field Values

MYSQL_V5

public static final int MYSQL_V5
Specifies MySQL database version 5.x.

See Also:
Constant Field Values

DEFAULT_VERSION

public static final int DEFAULT_VERSION
Specifies the default MySQL database version, which is 4.x.

See Also:
Constant Field Values
Constructor Detail

MySQL

public MySQL(java.lang.String schemaPrefix,
             int version)
Creates a new data definition instance for a MySQL database.

Parameters:
schemaPrefix -
version - specifies the MySQL database version for which the statements should be created.