org.efaps.maven.plugin
Class EFapsAbstractMojo

java.lang.Object
  extended by org.efaps.maven.plugin.EFapsAbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractEFapsInstallMojo, CleanMojo, CompileMojo, ImportDataMojo, ImportPersonsMojo, UpdateFromFileMojo

public abstract class EFapsAbstractMojo
extends java.lang.Object
implements org.apache.maven.plugin.Mojo

Version:
$Id: EFapsAbstractMojo.java 5573 2010-09-22 18:37:54Z jan.moxter $
Author:
The eFaps Team

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
protected EFapsAbstractMojo()
           
 
Method Summary
protected  void abortTransaction()
          Abort the transaction.
protected  void commitTransaction()
          Commit the Transaction.
protected  java.util.Map<java.lang.String,java.lang.String> convertToMap(java.lang.String _text)
          Separates all key / value pairs of given text string.
Evaluation algorithm:
Separates the text by all found commas (only if in front of the comma is no back slash).
protected  java.util.List<java.lang.String> getClasspathElements()
          This is the getter method for instance variable classpathElements.
 org.apache.maven.plugin.logging.Log getLog()
          This is the getter method for instance variable log.
protected  java.lang.String getPassWord()
          This is the getter method for instance variable passWord.
protected  java.lang.String getUserName()
          This is the getter method for instance variable userName.
protected  void init()
           
protected  void reloadCache()
          Reloads the internal eFaps cache.
 void setLog(org.apache.maven.plugin.logging.Log _log)
          This is the setter method for instance variable log.
protected  void startTransaction()
          Start the transaction.
 
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
 

Constructor Detail

EFapsAbstractMojo

protected EFapsAbstractMojo()
Method Detail

init

protected void init()
See Also:
#initStores, used to convert the connection string to a property map, database class, factory class name, connection properties

reloadCache

protected void reloadCache()
                    throws org.efaps.util.EFapsException
Reloads the internal eFaps cache.

Throws:
org.efaps.util.EFapsException - on error

startTransaction

protected void startTransaction()
                         throws org.efaps.util.EFapsException
Start the transaction.

Throws:
org.efaps.util.EFapsException - on error

abortTransaction

protected void abortTransaction()
                         throws org.efaps.util.EFapsException
Abort the transaction.

Throws:
org.efaps.util.EFapsException - on error

commitTransaction

protected void commitTransaction()
                          throws org.efaps.util.EFapsException
Commit the Transaction.

Throws:
org.efaps.util.EFapsException - on error

convertToMap

protected java.util.Map<java.lang.String,java.lang.String> convertToMap(java.lang.String _text)
Separates all key / value pairs of given text string.
Evaluation algorithm:
Separates the text by all found commas (only if in front of the comma is no back slash). This are the key / value pairs. A key / value pair is separated by the first equal ('=') sign.

Parameters:
_text - text string to convert to a key / value map
Returns:
Map of strings with all found key / value pairs

setLog

public void setLog(org.apache.maven.plugin.logging.Log _log)
This is the setter method for instance variable log.

Specified by:
setLog in interface org.apache.maven.plugin.Mojo
Parameters:
_log - new value for instance variable log
See Also:
log, getLog()

getLog

public org.apache.maven.plugin.logging.Log getLog()
This is the getter method for instance variable log.

Specified by:
getLog in interface org.apache.maven.plugin.Mojo
Returns:
value of instance variable log
See Also:
log, setLog(org.apache.maven.plugin.logging.Log)

getUserName

protected java.lang.String getUserName()
This is the getter method for instance variable userName.

Returns:
value of instance variable userName
See Also:
userName

getPassWord

protected java.lang.String getPassWord()
This is the getter method for instance variable passWord.

Returns:
value of instance variable passWord
See Also:
passWord

getClasspathElements

protected java.util.List<java.lang.String> getClasspathElements()
This is the getter method for instance variable classpathElements.

Returns:
value of instance variable classpathElements
See Also:
classpathElements


Copyright © 2002-2010 The eFaps Team. All Rights Reserved.