org.apache.torque.mojo
Class ImportMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.torque.mojo.BaseMojo
          extended by org.apache.torque.mojo.AbstractSQLExecutorMojo
              extended by org.apache.torque.mojo.ImportMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class ImportMojo
extends AbstractSQLExecutorMojo

Executes SQL for creating tables, primary keys, constraints, indexes, relationships, and views inside a database. Also populates the tables with a default set of data.


Nested Class Summary
static class ImportMojo.Order
           
 
Field Summary
 
Fields inherited from class org.apache.torque.mojo.AbstractSQLExecutorMojo
DRIVER_INFO_PROPERTIES_PASSWORD, DRIVER_INFO_PROPERTIES_USER, FILE_SORTING_ASC, FILE_SORTING_DSC
 
Fields inherited from class org.apache.torque.mojo.BaseMojo
SKIP_PACKAGING_TYPE
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ImportMojo()
           
 
Method Summary
protected  void configureTransactions()
           
 File getImportDir()
           
 String getImportDirExcludes()
           
 String getImportDirIncludes()
           
 String getOrder()
           
protected  Vector<org.kuali.db.Transaction> getTransactions(List<File> files)
           
 void setImportDir(File importDirectory)
           
 void setImportDirExcludes(String importDirectoryExcludes)
           
 void setImportDirIncludes(String importDirectoryIncludes)
           
 void setOrder(String order)
           
protected  void sortTransactions(Vector<org.kuali.db.Transaction> transactions)
          Sort the transaction list.
protected  void updateImportDir()
           
 
Methods inherited from class org.apache.torque.mojo.AbstractSQLExecutorMojo
addText, convertNullToEmpty, executeMojo, getConn, getConnection, getContextProperties, getCredentials, getDelimiter, getDelimiterType, getDisplayPassword, getDriver, getDriverProperties, getFileFilter, getNewConnectionHandler, getNewCredentials, getOnError, getPassword, getServerFromSettingsKey, getSettingsKey, getSqlCommand, getSqlExecutor, getSrcFiles, getSuccessfulStatements, getTargetDatabase, getTotalStatements, getTransactions, getUpdatedPassword, getUpdatedUsername, getUrl, getUsername, isAppend, isAutocommit, isEnableAnonymousPassword, isEscapeProcessing, isKeepFormat, isNullOrEmpty, isShowheaders, isShowPassword, isSkipOnConnectionError, setAppend, setAutocommit, setConn, setCredentials, setDelimiter, setDelimiterType, setDriver, setDriverProperties, setEnableAnonymousPassword, setEscapeProcessing, setFileFilter, setKeepFormat, setOnError, setPassword, setSettingsKey, setShowheaders, setShowPassword, setSkipOnConnectionError, setSqlCommand, setSrcFiles, setSuccessfulStatements, setTargetDatabase, setTotalStatements, setTransactions, setUrl, setUsername, updateConfiguration, updateCredentials, validateConfiguration, validateCredentials, validateCredentials
 
Methods inherited from class org.apache.torque.mojo.BaseMojo
afterExecution, beforeExecution, execute, getEncoding, getMavenSession, getProject, getSettings, isForceMojoExecution, isSkip, isStartMavenLogger, setEncoding, setForceMojoExecution, setMavenSession, setProject, setSettings, setSkip, setStartMavenLogger, skipMojo
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportMojo

public ImportMojo()
Method Detail

updateImportDir

protected void updateImportDir()

getTransactions

protected Vector<org.kuali.db.Transaction> getTransactions(List<File> files)

configureTransactions

protected void configureTransactions()
                              throws org.apache.maven.plugin.MojoExecutionException
Overrides:
configureTransactions in class AbstractSQLExecutorMojo
Throws:
org.apache.maven.plugin.MojoExecutionException

sortTransactions

protected void sortTransactions(Vector<org.kuali.db.Transaction> transactions)
Sort the transaction list.


getImportDir

public File getImportDir()

setImportDir

public void setImportDir(File importDirectory)

getImportDirIncludes

public String getImportDirIncludes()

setImportDirIncludes

public void setImportDirIncludes(String importDirectoryIncludes)

getImportDirExcludes

public String getImportDirExcludes()

setImportDirExcludes

public void setImportDirExcludes(String importDirectoryExcludes)

getOrder

public String getOrder()

setOrder

public void setOrder(String order)


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.