de.schwarzrot.data.meta.support
Class ModelAddition
java.lang.Object
de.schwarzrot.data.meta.support.AbstractModelChange
de.schwarzrot.data.meta.support.ModelAddition
- All Implemented Interfaces:
- ModelChange
public class ModelAddition
- extends AbstractModelChange
handles change request to extend a database schema. There are two modes of
operation: one is to write all statements to a file and let the user execute
that file by a database client. The other is to do the changes directly. This
will require a user with administrator authority.
- Author:
- Reinhard Mantey
Method Summary |
void |
printChanges(PrintWriter out,
Connection conn,
boolean reNew)
|
protected void |
printColumnCreation(PrintWriter out,
Connection conn,
DbUtil dbUtil,
ColumnDefinition cd,
boolean reNew)
|
protected void |
printDatabaseCreation(PrintWriter out,
Connection conn,
DbUtil dbUtil,
DatabaseModel dbm,
boolean reNew)
|
protected void |
printIndexCreation(PrintWriter out,
Connection conn,
DbUtil dbUtil,
IndexDefinition id,
boolean reNew)
|
protected void |
printSchemaCreation(PrintWriter out,
Connection conn,
DbUtil dbUtil,
SchemaDefinition sd,
boolean reNew)
|
protected void |
printTableCreation(PrintWriter out,
Connection conn,
DbUtil dbUtil,
TableDefinition td,
boolean reNew)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelAddition
public ModelAddition(MetaEntity<?> model)
printChanges
public void printChanges(PrintWriter out,
Connection conn,
boolean reNew)
printColumnCreation
protected void printColumnCreation(PrintWriter out,
Connection conn,
DbUtil dbUtil,
ColumnDefinition cd,
boolean reNew)
printDatabaseCreation
protected void printDatabaseCreation(PrintWriter out,
Connection conn,
DbUtil dbUtil,
DatabaseModel dbm,
boolean reNew)
printIndexCreation
protected void printIndexCreation(PrintWriter out,
Connection conn,
DbUtil dbUtil,
IndexDefinition id,
boolean reNew)
printSchemaCreation
protected void printSchemaCreation(PrintWriter out,
Connection conn,
DbUtil dbUtil,
SchemaDefinition sd,
boolean reNew)
printTableCreation
protected void printTableCreation(PrintWriter out,
Connection conn,
DbUtil dbUtil,
TableDefinition td,
boolean reNew)
Submit
a bug or request a feature
SRJRCFrames is published according to the
GNU General Public License
Copyright 2005-2012
Reinhard Mantey - some rights reserved.