org.apache.openejb.assembler.classic
Class ReloadableEntityManagerFactory.JMXReloadableEntityManagerFactory

java.lang.Object
  extended by org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.JMXReloadableEntityManagerFactory
Enclosing class:
ReloadableEntityManagerFactory

@Description(value="represents a persistence unit managed by OpenEJB")
public static class ReloadableEntityManagerFactory.JMXReloadableEntityManagerFactory
extends Object


Constructor Summary
ReloadableEntityManagerFactory.JMXReloadableEntityManagerFactory(ReloadableEntityManagerFactory remf)
           
 
Method Summary
 void addJarFile(String file)
           
 void addManagedClass(String clazz)
           
 void addMappingFile(String file)
           
 void dump(String file)
           
 TabularData getJarFiles()
           
 TabularData getManagedClasses()
           
 TabularData getMappingFiles()
           
 TabularData getProperties()
           
 void reload()
           
 void removeJarFile(String file)
           
 void removeManagedClass(String clazz)
           
 void removeMappingFile(String file)
           
 void removeProperty(String key)
           
 void setExcludeUnlistedClasses(boolean value)
           
 void setProperty(String key, String value)
           
 void setProvider(String provider)
           
 void setSharedCacheMode(String value)
           
 void setTransactionType(String type)
           
 void setValidationMode(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReloadableEntityManagerFactory.JMXReloadableEntityManagerFactory

public ReloadableEntityManagerFactory.JMXReloadableEntityManagerFactory(ReloadableEntityManagerFactory remf)
Method Detail

reload

@ManagedOperation
@Description(value="recreate the entity manager factory using new properties")
public void reload()

setProvider

@ManagedOperation
@Description(value="change the current JPA provider")
public void setProvider(String provider)

setTransactionType

@ManagedOperation
@Description(value="change the current transaction type")
public void setTransactionType(String type)

setProperty

@ManagedOperation
@Description(value="create or modify a property of the persistence unit")
public void setProperty(String key,
                                                          String value)

removeProperty

@ManagedOperation
@Description(value="remove a property of the persistence unit if it exists")
public void removeProperty(String key)

addMappingFile

@ManagedOperation
@Description(value="add a mapping file")
public void addMappingFile(String file)

removeMappingFile

@ManagedOperation
@Description(value="remove a mapping file")
public void removeMappingFile(String file)

addManagedClass

@ManagedOperation
@Description(value="add a managed class")
public void addManagedClass(String clazz)

removeManagedClass

@ManagedOperation
@Description(value="remove a managed class")
public void removeManagedClass(String clazz)

addJarFile

@ManagedOperation
@Description(value="add a jar file")
public void addJarFile(String file)

removeJarFile

@ManagedOperation
@Description(value="remove a jar file")
public void removeJarFile(String file)

setSharedCacheMode

@ManagedOperation
@Description(value="change the shared cache mode if possible (value is ok)")
public void setSharedCacheMode(String value)

setExcludeUnlistedClasses

@ManagedOperation
@Description(value="exclude or not unlisted entities")
public void setExcludeUnlistedClasses(boolean value)

setValidationMode

@ManagedOperation
@Description(value="change the validation mode if possible (value is ok)")
public void setValidationMode(String value)

dump

@ManagedOperation
@Description(value="dump the current configuration for this persistence unit in a file")
public void dump(String file)

getProperties

@ManagedAttribute
@Description(value="get all properties")
public TabularData getProperties()

getMappingFiles

@ManagedAttribute
@Description(value="get all mapping files")
public TabularData getMappingFiles()

getJarFiles

@ManagedAttribute
@Description(value="get all jar files")
public TabularData getJarFiles()

getManagedClasses

@ManagedAttribute
@Description(value="get all managed classes")
public TabularData getManagedClasses()


Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.