public interface DatabaseManager
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateCreateSQL(DatabaseType aDatabaseType,
IModelElement[] aModelElements)
Generate create table statement for the selected entities.
|
java.lang.String |
generateDeleteSQL(DatabaseType aDatabaseType,
IModelElement[] aModelElements)
Generate SQL statement for deleting records from selected entities.
|
java.lang.String |
generateDropSQL(DatabaseType aDatabaseType,
IModelElement[] aModelElements)
Generate drop statement for the selected entities.
|
java.lang.String |
generateInsertSQL(DatabaseType aDatabaseType,
IModelElement[] aModelElements)
Generate insert data statement for selected entities.
|
java.lang.String |
generateInsertSQLForCustomSQL(DatabaseType aDatabaseType,
IModelElement[] aModelElements)
Generate insert data SQL statement for override default insert statement used in Hiberante.
|
java.lang.String |
generateSelectSQL(DatabaseType aDatabaseType,
IModelElement[] aModelElements)
Generate select data statement for selected entities.
|
java.lang.String |
generateUpdateSQL(DatabaseType aDatabaseType,
IModelElement[] aModelElements)
Generate alter statements for the selected entities.
|
java.lang.String generateInsertSQL(DatabaseType aDatabaseType, IModelElement[] aModelElements)
e.g.: INSERT INTO Entity(ID, `Column`, Column2, Column3) VALUES (?, ?, ?, ?);
aDatabaseType
- - the target database type.aModelElements
- - the model elements for generate SQL statements.java.lang.String generateUpdateSQL(DatabaseType aDatabaseType, IModelElement[] aModelElements)
e.g.: UPDATE Entity SET `Column` = ?, Column2 = ?, Column3 = ? WHERE ID = ?;
aDatabaseType
- - the target database type.aModelElements
- - the model elements for generate SQL statements.java.lang.String generateCreateSQL(DatabaseType aDatabaseType, IModelElement[] aModelElements)
aDatabaseType
- - the target database type.aModelElements
- - the model elements for generate SQL statements.java.lang.String generateDeleteSQL(DatabaseType aDatabaseType, IModelElement[] aModelElements)
e.g.: DELETE FROM Entity WHERE ID = ?;
aDatabaseType
- - the target database type.aModelElements
- - the model elements for generate SQL statements.java.lang.String generateSelectSQL(DatabaseType aDatabaseType, IModelElement[] aModelElements)
e.g.: SELECT ID, `Column`, Column2, Column3 FROM Entity;
aDatabaseType
- - the target database type.aModelElements
- - the model elements for generate SQL statements.java.lang.String generateDropSQL(DatabaseType aDatabaseType, IModelElement[] aModelElements)
aDatabaseType
- - the target database type.aModelElements
- - the model elements for generate SQL statements.java.lang.String generateInsertSQLForCustomSQL(DatabaseType aDatabaseType, IModelElement[] aModelElements)
e.g.: INSERT INTO Entity(Attribute, Attribute2, ID) VALUES (?, ?, ?);
aDatabaseType
- - the target database type.aModelElements
- - the model elements for generate SQL statements.