org.springframework.roo.addon.jpa
Class JpaOperationsImpl

java.lang.Object
  extended by org.springframework.roo.addon.jpa.JpaOperationsImpl
All Implemented Interfaces:
JpaOperations

@Service
public class JpaOperationsImpl
extends Object
implements JpaOperations

Provides JPA configuration operations.

Since:
1.0
Author:
Stefan Schmidt, Alan Stewart

Constructor Summary
JpaOperationsImpl()
           
 
Method Summary
 void configureJpa(OrmProvider ormProvider, JdbcDatabase database, String jndi, String applicationId)
          This method is responsible for managing all JPA related artifacts (META-INF/persistence.xml, applicationContext.xml, database.properties and the project pom.xml)
 boolean isJpaInstallationPossible()
           
 boolean isJpaInstalled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaOperationsImpl

public JpaOperationsImpl()
Method Detail

isJpaInstallationPossible

public boolean isJpaInstallationPossible()
Specified by:
isJpaInstallationPossible in interface JpaOperations

isJpaInstalled

public boolean isJpaInstalled()
Specified by:
isJpaInstalled in interface JpaOperations

configureJpa

public void configureJpa(OrmProvider ormProvider,
                         JdbcDatabase database,
                         String jndi,
                         String applicationId)
Description copied from interface: JpaOperations
This method is responsible for managing all JPA related artifacts (META-INF/persistence.xml, applicationContext.xml, database.properties and the project pom.xml)

Specified by:
configureJpa in interface JpaOperations
Parameters:
ormProvider - the ORM provider selected (Hibernate, OpenJpa, EclipseLink)
database - the database (HSQL, H2, MySql, etc)
jndi - the JNDI datasource
applicationId - the Google App Engine application identifier. Defaults to the project's name if not specified.


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