org.springframework.roo.addon.jpa
Class JpaCommands

java.lang.Object
  extended by org.springframework.roo.addon.jpa.JpaCommands
All Implemented Interfaces:
org.springframework.roo.shell.CommandMarker

@Service
public class JpaCommands
extends Object
implements org.springframework.roo.shell.CommandMarker

Commands for the 'jpa' add-on to be used by the ROO shell.

Since:
1.0
Author:
Stefan Schmidt, Ben Alex

Constructor Summary
JpaCommands()
           
 
Method Summary
protected  void activate(org.osgi.service.component.ComponentContext context)
           
 SortedSet<String> databaseProperties()
           
 void databaseRemove(String key)
           
 void databaseSet(String key, String value)
           
protected  void deactivate(org.osgi.service.component.ComponentContext context)
           
 void installJpa(OrmProvider ormProvider, JdbcDatabase jdbcDatabase, String applicationId, String jndi, String databaseName, String userName, String password)
           
 boolean isInstallJpaAvailable()
           
 boolean isJpaInstalled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaCommands

public JpaCommands()
Method Detail

activate

protected void activate(org.osgi.service.component.ComponentContext context)

deactivate

protected void deactivate(org.osgi.service.component.ComponentContext context)

isInstallJpaAvailable

public boolean isInstallJpaAvailable()

installJpa

public void installJpa(OrmProvider ormProvider,
                       JdbcDatabase jdbcDatabase,
                       String applicationId,
                       String jndi,
                       String databaseName,
                       String userName,
                       String password)

databaseProperties

public SortedSet<String> databaseProperties()

databaseSet

public void databaseSet(String key,
                        String value)

databaseRemove

public void databaseRemove(String key)

isJpaInstalled

public boolean isJpaInstalled()


Copyright © 2009-2010 VMware, Inc. All Rights Reserved.