当前页面: 
在线文档首页 > 
JBoss 4.0.1 sp1 varia  API Documentation 英文版文档
CastorJDOImpl (Various API) - JBoss 4.0.1 sp1 varia  API Documentation 英文版文档
org.jboss.jdo.castor
Class CastorJDOImpl
java.lang.Object
   org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.mx.util.JBossNotificationBroadcasterSupport
       org.jboss.system.ServiceMBeanSupport
org.jboss.system.ServiceMBeanSupport
           org.jboss.jdo.castor.CastorJDOImpl
org.jboss.jdo.castor.CastorJDOImpl
- All Implemented Interfaces: 
- CastorJDOImplMBean, org.exolab.castor.jdo.DataObjects, org.exolab.castor.persist.spi.LogInterceptor, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ObjectFactory, Referenceable, Serializable, org.jboss.system.Service, org.jboss.system.ServiceMBean
- public class CastorJDOImpl- extends org.jboss.system.ServiceMBeanSupport- implements org.exolab.castor.jdo.DataObjects, ObjectFactory, Referenceable, Serializable, CastorJDOImplMBean, javax.management.MBeanRegistration, org.exolab.castor.persist.spi.LogInterceptor
Castor JDO support.
- Version:
- $Revision: 1.18 $
- Author:
- Oleg Nitz (on@ibis.odessa.ua)
- See Also:
- Serialized Form
 
| Fields inherited from class org.jboss.system.ServiceMBeanSupport | 
| log, server, SERVICE_CONTROLLER_SIG, serviceName | 
 
 
| Fields inherited from interface org.jboss.system.ServiceMBean | 
| CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED | 
 
 
| Method Summary | 
|  void | creating(Class objClass,
         Object identity)
 | 
|  void | creating(Object objClass,
         Object identity)
 | 
|  void | exception(Exception except)
 | 
|  URL | findResourceInJar(String name)Copied from Jetty.java.
 | 
|  boolean | getCommonClassPath()
 | 
|  String | getConfiguration()
 | 
|  String | getConfigurationURL()
 | 
|  org.exolab.castor.jdo.Database | getDatabase()
 | 
|  String | getDescription()
 | 
|  String | getJndiName()
 | 
|  int | getLockTimeout()
 | 
|  boolean | getLoggingEnabled()
 | 
|  Object | getObjectInstance(Object obj,
                  Name name,
                  Context nameCtx,
                  Hashtable environment)
 | 
| protected  javax.management.ObjectName | getObjectName(javax.management.MBeanServer server,
              javax.management.ObjectName name)
 | 
|  PrintWriter | getPrintWriter()
 | 
|  Reference | getReference()
 | 
|  boolean | isAutoStore()
 | 
|  boolean | isDatabasePooling()Return true if the Database instance uses the application server pooling.
 | 
|  void | loading(Class objClass,
        Object identity)
 | 
|  void | loading(Object objClass,
        Object identity)
 | 
|  void | message(String message)
 | 
|  void | queryStatement(String statement)
 | 
|  void | removing(Class objClass,
         Object identity)
 | 
|  void | removing(Object objClass,
         Object identity)
 | 
|  void | setAutoStore(boolean autoStore)
 | 
|  void | setCommonClassPath(boolean commonClassPath)
 | 
|  void | setConfiguration(String dbConf)
 | 
|  void | setDatabasePooling(boolean dbPooling)True if user prefers to use application server database pools.
 | 
|  void | setDescription(String description)
 | 
|  void | setJndiName(String jndiName)
 | 
|  void | setLockTimeout(int lockTimeout)
 | 
|  void | setLoggingEnabled(boolean loggingEnabled)
 | 
| protected  void | startService()
 | 
| protected  void | stopService()
 | 
|  void | storeStatement(String statement)
 | 
|  void | storing(Class objClass,
        Object identity)
 | 
|  void | storing(Object objClass,
        Object identity)
 | 
 
| Methods inherited from class org.jboss.system.ServiceMBeanSupport | 
| create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop | 
 
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport | 
| addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
| Methods inherited from interface org.jboss.system.ServiceMBean | 
| getName, getState, getStateString, jbossInternalLifecycle | 
 
| Methods inherited from interface org.jboss.system.Service | 
| create, destroy, start, stop | 
 
| Methods inherited from interface javax.management.MBeanRegistration | 
| postDeregister, postRegister, preDeregister, preRegister | 
 
CastorJDOImpl
public CastorJDOImpl()
getObjectName
protected javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
                                                    javax.management.ObjectName name)
                                             throws javax.management.MalformedObjectNameException
- 
 
- 
- Throws:
- javax.management.MalformedObjectNameException
 
startService
protected void startService()
                     throws Exception
- 
 
- 
- Throws:
- Exception
 
stopService
protected void stopService()
                    throws Exception
- 
 
- 
- Throws:
- Exception
 
findResourceInJar
public URL findResourceInJar(String name)
- Copied from Jetty.java.  Used to find resource within .sar.
 
- 
 
- 
 
setJndiName
public void setJndiName(String jndiName)
- 
- Specified by:
- setJndiNamein interface- CastorJDOImplMBean
 
- 
 
getJndiName
public String getJndiName()
- 
- Specified by:
- getJndiNamein interface- CastorJDOImplMBean
 
- 
 
setConfiguration
public void setConfiguration(String dbConf)
- 
- Specified by:
- setConfigurationin interface- CastorJDOImplMBean
 
- 
 
getConfiguration
public String getConfiguration()
- 
- Specified by:
- getConfigurationin interface- CastorJDOImplMBean
 
- 
 
getConfigurationURL
public String getConfigurationURL()
- 
- Specified by:
- getConfigurationURLin interface- CastorJDOImplMBean
 
- 
 
setLockTimeout
public void setLockTimeout(int lockTimeout)
- 
- Specified by:
- setLockTimeoutin interface- CastorJDOImplMBean
 
- 
 
getLockTimeout
public int getLockTimeout()
- 
- Specified by:
- getLockTimeoutin interface- CastorJDOImplMBean
 
- 
 
setLoggingEnabled
public void setLoggingEnabled(boolean loggingEnabled)
- 
- Specified by:
- setLoggingEnabledin interface- CastorJDOImplMBean
 
- 
 
getLoggingEnabled
public boolean getLoggingEnabled()
- 
- Specified by:
- getLoggingEnabledin interface- CastorJDOImplMBean
 
- 
 
setCommonClassPath
public void setCommonClassPath(boolean commonClassPath)
- 
- Specified by:
- setCommonClassPathin interface- CastorJDOImplMBean
 
- 
 
getCommonClassPath
public boolean getCommonClassPath()
- 
- Specified by:
- getCommonClassPathin interface- CastorJDOImplMBean
 
- 
 
setAutoStore
public void setAutoStore(boolean autoStore)
- 
- Specified by:
- setAutoStorein interface- CastorJDOImplMBean
 
- 
- Parameters:
- autoStore- True if user prefer all reachable object to be stored automatically.
                     False if user want only dependent object to be stored.
 
isAutoStore
public boolean isAutoStore()
- 
- Specified by:
- isAutoStorein interface- CastorJDOImplMBean
 
- 
- Returns:
- if the next Database instance will be set to autoStore.
 
setDatabasePooling
public void setDatabasePooling(boolean dbPooling)
- True if user prefers to use application server database pools.
 False if user wants a new connection for each call to getDatabase().
 
- 
- Specified by:
- setDatabasePoolingin interface- CastorJDOImplMBean
 
- 
 
isDatabasePooling
public boolean isDatabasePooling()
- Return true if the Database instance uses the application server pooling.
 
- 
- Specified by:
- isDatabasePoolingin interface- CastorJDOImplMBean
 
- 
 
getDatabase
public org.exolab.castor.jdo.Database getDatabase()
                                           throws org.exolab.castor.jdo.DatabaseNotFoundException,
                                                  org.exolab.castor.jdo.PersistenceException
- 
- Specified by:
- getDatabasein interface- org.exolab.castor.jdo.DataObjects
 
- 
- Throws:
- org.exolab.castor.jdo.DatabaseNotFoundException
- org.exolab.castor.jdo.PersistenceException
 
setDescription
public void setDescription(String description)
- 
- Specified by:
- setDescriptionin interface- org.exolab.castor.jdo.DataObjects
 
- 
 
getDescription
public String getDescription()
- 
- Specified by:
- getDescriptionin interface- org.exolab.castor.jdo.DataObjects
 
- 
 
getReference
public Reference getReference()
- 
- Specified by:
- getReferencein interface- Referenceable
 
- 
 
getObjectInstance
public Object getObjectInstance(Object obj,
                                Name name,
                                Context nameCtx,
                                Hashtable environment)
                         throws Exception
- 
- Specified by:
- getObjectInstancein interface- ObjectFactory
 
- 
- Throws:
- Exception
 
loading
public void loading(Class objClass,
                    Object identity)
- 
 
- 
 
creating
public void creating(Class objClass,
                     Object identity)
- 
 
- 
 
removing
public void removing(Class objClass,
                     Object identity)
- 
 
- 
 
storing
public void storing(Class objClass,
                    Object identity)
- 
 
- 
 
loading
public void loading(Object objClass,
                    Object identity)
- 
- Specified by:
- loadingin interface- org.exolab.castor.persist.spi.LogInterceptor
 
- 
 
creating
public void creating(Object objClass,
                     Object identity)
- 
- Specified by:
- creatingin interface- org.exolab.castor.persist.spi.LogInterceptor
 
- 
 
removing
public void removing(Object objClass,
                     Object identity)
- 
- Specified by:
- removingin interface- org.exolab.castor.persist.spi.LogInterceptor
 
- 
 
storing
public void storing(Object objClass,
                    Object identity)
- 
- Specified by:
- storingin interface- org.exolab.castor.persist.spi.LogInterceptor
 
- 
 
storeStatement
public void storeStatement(String statement)
- 
- Specified by:
- storeStatementin interface- org.exolab.castor.persist.spi.LogInterceptor
 
- 
 
queryStatement
public void queryStatement(String statement)
- 
- Specified by:
- queryStatementin interface- org.exolab.castor.persist.spi.LogInterceptor
 
- 
 
message
public void message(String message)
- 
- Specified by:
- messagein interface- org.exolab.castor.persist.spi.LogInterceptor
 
- 
 
exception
public void exception(Exception except)
- 
- Specified by:
- exceptionin interface- org.exolab.castor.persist.spi.LogInterceptor
 
- 
 
getPrintWriter
public PrintWriter getPrintWriter()
- 
- Specified by:
- getPrintWriterin interface- org.exolab.castor.persist.spi.LogInterceptor
 
- 
 
      
      
        Copyright © 2002 JBoss Group, LLC. All Rights Reserved.