org.ow2.jonas.antmodular.jonasbase.db.h2
Class DbH2

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.ow2.jonas.antmodular.jonasbase.bootstrap.AbstractJOnASBaseAntTask
              extended by org.ow2.jonas.antmodular.jonasbase.db.base.Db
                  extended by org.ow2.jonas.antmodular.jonasbase.db.h2.DbH2
All Implemented Interfaces:
Cloneable

public class DbH2
extends Db

Allow to configure the DB H2 service.

Author:
Jeremy Cazaux

Field Summary
static String H2_CLASS_NAME
          Name of the implementation class of H2
static String H2_MAPPER
          H2 mapper
 
Fields inherited from class org.ow2.jonas.antmodular.jonasbase.db.base.Db
DB_CLASS_PROPERTY, dbName, DEFAULT_DATABASE, DEFAULT_HOST, DEFAULT_PASSWORD, DEFAULT_PORT, DEFAULT_USER, INFO, portNumber, users
 
Fields inherited from class org.ow2.jonas.antmodular.jonasbase.bootstrap.AbstractJOnASBaseAntTask
CONF_DIR, destDir, jonasRoot, skipOptionalDeployablesCopy, tasks
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
DbH2()
           
 
Method Summary
 void execute()
          Execute all tasks
 String getClassname()
          
 String getMapper()
          
 String getUrl(String host)
          
 
Methods inherited from class org.ow2.jonas.antmodular.jonasbase.db.base.Db
getFirstUsernameAndPassword, getUsers, setDbName, setPort, setUsers
 
Methods inherited from class org.ow2.jonas.antmodular.jonasbase.bootstrap.AbstractJOnASBaseAntTask
addTask, addTasks, copyTemplateDeployables, createServiceNameReplace, executeAllTask, getJOnASBase, getJOnASRoot, getTasks, setDestDir, setSkipOptionalDeployablesCopy
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

H2_CLASS_NAME

public static final String H2_CLASS_NAME
Name of the implementation class of H2

See Also:
Constant Field Values

H2_MAPPER

public static final String H2_MAPPER
H2 mapper

See Also:
Constant Field Values
Constructor Detail

DbH2

public DbH2()
Method Detail

getUrl

public String getUrl(String host)

Specified by:
getUrl in class Db

getClassname

public String getClassname()

Specified by:
getClassname in class Db

getMapper

public String getMapper()

Specified by:
getMapper in class Db

execute

public void execute()
Execute all tasks

Overrides:
execute in class Db


Copyright © 2012 OW2 Consortium. All Rights Reserved.