org.agileclick.genorm.plugins.dbsupport
Class MySQL
java.lang.Object
org.agileclick.genorm.plugins.dbsupport.MySQL
- All Implemented Interfaces:
- CreatePlugin, GenPlugin
public class MySQL
- extends java.lang.Object
- implements CreatePlugin
|
Constructor Summary |
MySQL()
|
|
Method Summary |
java.lang.String |
getConstraintSQL(ForeignKeySet keySet)
|
java.lang.String |
getCreateSQL(Table table)
|
java.lang.String |
getFieldEscapeString()
This it he characters to use when escaping field names in select statements
Postgress uses double quote (") where mysql uses back tick `
The code must returned the value as it can appear in a java code string
so a double quote should be returned as "\"" |
void |
init(Element pluginElement,
java.util.Properties config)
Called to initialize the plugin |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MySQL
public MySQL()
init
public void init(Element pluginElement,
java.util.Properties config)
- Description copied from interface:
GenPlugin
- Called to initialize the plugin
- Specified by:
init in interface GenPlugin
- Parameters:
pluginElement - The <plugin> is passed so other options and
parameters can be parsed by the pluginconfig - Configuration options that were provided in the XML or from
the command line
getFieldEscapeString
public java.lang.String getFieldEscapeString()
- Description copied from interface:
CreatePlugin
- This it he characters to use when escaping field names in select statements
Postgress uses double quote (") where mysql uses back tick `
The code must returned the value as it can appear in a java code string
so a double quote should be returned as "\""
- Specified by:
getFieldEscapeString in interface CreatePlugin
getCreateSQL
public java.lang.String getCreateSQL(Table table)
- Specified by:
getCreateSQL in interface CreatePlugin
getConstraintSQL
public java.lang.String getConstraintSQL(ForeignKeySet keySet)
- Specified by:
getConstraintSQL in interface CreatePlugin