com.google.code.plsqlmaven.plsql
Class PlSqlMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.groovy.maven.mojo.GroovyMojo
          extended by com.google.code.plsqlmaven.plsql.PlSqlMojo
All Implemented Interfaces:
groovy.lang.GroovyObject, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
PlSqlCompileMojo, PlSqlDeployMojo, PlSqlExtractMojo, PlSqlGatewayMojo, PlSqlPackageMojo, PlSqlSqlPlusMojo, PlSqlTemplateMojo

public abstract class PlSqlMojo
extends org.codehaus.groovy.maven.mojo.GroovyMojo
implements groovy.lang.GroovyObject

Basic mojo to extend for PL/SQL Goals


Field Summary
protected  String defaultPage
          Default procedure to invoke on dad access
protected  String password
          Database password.
static Object PLSQL_EXTENSION
           
protected  PlSqlUtils plsqlUtils
           
protected  org.apache.maven.project.MavenProject project
           
protected  groovy.sql.Sql sql
          Database connection helper
protected  String url
          Database URL.
protected  String username
          Database username.
 
Fields inherited from class org.codehaus.groovy.maven.mojo.GroovyMojo
__timeStamp, __timeStamp__239_neverHappen1246685308507, sanitizeErrors
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
PlSqlMojo()
           
 
Method Summary
 Object compile(Object file)
           
 boolean connectToDatabase()
           
 void disconnectFromDatabase()
           
 Object get_dir(Object base, Object name)
           
 Object getArtifactPlsqlSourceFiles(Object artifact)
           
 groovy.lang.MetaClass getMetaClass()
           
 Object getPlsqlSourceFiles()
           
 Object getProperty(String name)
           
 Object getSourceDescriptor(Object file)
           
 String getTemplate(Object path, Object context)
           
 Object invokeMethod(String name, Object args)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 Object unpackDependencies()
           
 
Methods inherited from class org.codehaus.groovy.maven.mojo.GroovyMojo
afterExecute, beforeExecute, fail, fail, getAnt
 
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
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Field Detail

PLSQL_EXTENSION

public static Object PLSQL_EXTENSION

username

protected String username
Database username.

Since:
1.0

password

protected String password
Database password.

Since:
1.0

url

protected String url
Database URL.

Since:
1.0

defaultPage

protected String defaultPage
Default procedure to invoke on dad access

Since:
1.0

project

protected org.apache.maven.project.MavenProject project

sql

protected groovy.sql.Sql sql
Database connection helper


plsqlUtils

protected PlSqlUtils plsqlUtils
Constructor Detail

PlSqlMojo

public PlSqlMojo()
Method Detail

disconnectFromDatabase

public void disconnectFromDatabase()

connectToDatabase

public boolean connectToDatabase()

unpackDependencies

public Object unpackDependencies()

getArtifactPlsqlSourceFiles

public Object getArtifactPlsqlSourceFiles(Object artifact)

getPlsqlSourceFiles

public Object getPlsqlSourceFiles()

getSourceDescriptor

public Object getSourceDescriptor(Object file)

compile

public Object compile(Object file)

get_dir

public Object get_dir(Object base,
                      Object name)

getTemplate

public String getTemplate(Object path,
                          Object context)

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject
Overrides:
getMetaClass in class org.codehaus.groovy.maven.mojo.GroovyMojo

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject
Overrides:
setMetaClass in class org.codehaus.groovy.maven.mojo.GroovyMojo

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class org.codehaus.groovy.maven.mojo.GroovyMojo

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class org.codehaus.groovy.maven.mojo.GroovyMojo

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject
Overrides:
setProperty in class org.codehaus.groovy.maven.mojo.GroovyMojo


Copyright © 2011. All Rights Reserved.