SRJRCFrames
v0.1.296

de.schwarzrot.data.meta.support
Class ModelAddition

java.lang.Object
  extended by de.schwarzrot.data.meta.support.AbstractModelChange
      extended by 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

Constructor Summary
ModelAddition(MetaEntity<?> model)
           
 
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 de.schwarzrot.data.meta.support.AbstractModelChange
dump, getLogger, getModel, performChanges
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelAddition

public ModelAddition(MetaEntity<?> model)
Method Detail

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)

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
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.