Overview | Package | Class | Tree | Deprecated | Index | Help
| Kodo 4.1.4 generated on June 22 2007
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## kodo.kernel
Class FinalizingKodoBroker

    java.lang.Object
      org.apache.openjpa.kernel.BrokerImpl
          kodo.kernel.KodoBroker
              kodo.kernel.FinalizingKodoBroker

All Implemented Interfaces:
  com.solarmetric.profile.ProfilingAgentProvider, com.solarmetric.profile.ProfilingEnvironment, Cloneable, Connection, LocalTransaction, Synchronization, KodoStoreContext, CallbackModes, AutoClear, AutoDetach, Broker, ConnectionRetainModes, DetachState, FindCallbacks, LockLevels, RestoreState, StoreContext, Closeable

    public class FinalizingKodoBroker

extends KodoBroker

Subtype of `KodoBroker` that automatically closes itself during finalization. This implementation guards against potential resource leaks, but also incurs a scalability bottleneck as instances are enlisted in the finalization queue and subsequently cleaned up.

Since:
  4.1.3
See Also:
  `FinalizingBrokerImpl`

Field Summary

Fields inherited from class org.apache.openjpa.kernel.BrokerImpl
`FLUSH_COMMIT, FLUSH_INC, FLUSH_LOGICAL, FLUSH_ROLLBACK`

Fields inherited from interface org.apache.openjpa.kernel.StoreContext
`EXCLUDE_ALL, OID_ALLOW_NEW, OID_COPY, OID_NODELETED, OID_NOVALIDATE`

Fields inherited from interface org.apache.openjpa.kernel.ConnectionRetainModes
`CONN_RETAIN_ALWAYS, CONN_RETAIN_DEMAND, CONN_RETAIN_TRANS`

Fields inherited from interface org.apache.openjpa.kernel.DetachState
`DETACH_ALL, DETACH_FETCH_GROUPS, DETACH_FGS, DETACH_LOADED`

Fields inherited from interface org.apache.openjpa.kernel.LockLevels
`LOCK_NONE, LOCK_READ, LOCK_WRITE`

Fields inherited from interface org.apache.openjpa.kernel.RestoreState
`RESTORE_ALL, RESTORE_IMMUTABLE, RESTORE_NONE`

Fields inherited from interface org.apache.openjpa.kernel.AutoClear
`CLEAR_ALL, CLEAR_DATASTORE`

Fields inherited from interface org.apache.openjpa.kernel.AutoDetach
`DETACH_CLOSE, DETACH_COMMIT, DETACH_NONTXREAD, DETACH_ROLLBACK`

Fields inherited from interface org.apache.openjpa.event.CallbackModes
`CALLBACK_FAIL_FAST, CALLBACK_IGNORE, CALLBACK_LOG, CALLBACK_RETHROW, CALLBACK_ROLLBACK`

Constructor Summary
`FinalizingKodoBroker()`

Method Summary
`protected void` | `finalize()` Close on finalize.

Methods inherited from class kodo.kernel.KodoBroker
`attach, attachAll, begin, commit, delete, deleteAll, detach, detachAll, detachAll, evict, evictAll, evictAll, evictAll, find, findAll, free, getProfilingAgent, initialize, initialize, newQuery, newQuery, newQueryImpl, newStateManagerImpl, nontransactional, nontransactionalAll, persist, persistAll, refresh, refreshAll, release, releaseAll, retrieve, retrieveAll, rollback, transactional, transactionalAll`

Methods inherited from class org.apache.openjpa.kernel.BrokerImpl
`addLifecycleListener, addTransactionListener, afterCompletion, assertActiveTransaction, assertNontransactionalRead, assertOpen, assertPersistenceCapable, assertWriteOperation, beforeCompletion, beginOperation, beginStore, cancelAll, clone, close, commitAndResume, createInteraction, detachAll, dirtyType, embed, endOperation, endTransaction, extentIterator, find, find, findAll, findAll, findCached, flush, flush, getAutoClear, getAutoDetach, getBroker, getBrokerFactory, getClassLoader, getConfiguration, getConnection, getConnectionPassword, getConnectionRetainMode, getConnectionUserName, getDeletedTypes, getDetachState, getDirtyObjects, getDirtyStates, getEvictFromDataCache, getFetchConfiguration, getIdentitySequence, getIgnoreChanges, getInverseManager, getLifecycleEventManager, getLifecycleListenerCallbackMode, getLocalTransaction, getLockLevel, getLockManager, getManagedObjects, getManagedRuntime, getManagedStates, getMetaData, getMultithreaded, getNontransactionalRead, getNontransactionalWrite, getObjectId, getObjectIdType, getOptimistic, getOrderDirtyObjects, getPendingTransactionalObjects, getPendingTransactionalStates, getPersistedTypes, getPopulateDataCache, getRestoreState, getResultSetInfo, getRetainState, getRollbackCause, getRollbackOnly, getStateManager, getStateManagerImpl, getStateManagerImplById, getStoreManager, getSynchronization, getSyncWithManagedTransactions, getTransactionalObjects, getTransactionalStates, getTransactionListenerCallbackMode, getUpdatedTypes, getUserObject, getValueSequence, getVersion, hasConnection, isActive, isClosed, isCloseInvoked, isDeleted, isDetached, isDetachedNew, isDirty, isLargeTransaction, isManaged, isNew, isPersistent, isStoreActive, isTransactional, lock, lock, lock, lockAll, lockAll, newExtent, newInstance, newManagedObjectCache, newObjectId, persist, persist, persist, persistAll, preFlush, processArgument, processReturn, putUserObject, refreshInternal, refreshInternal, releaseSavepoint, releaseSavepoint, removeLifecycleListener, removeTransactionListener, rollbackAndResume, rollbackToSavepoint, rollbackToSavepoint, setAuthentication, setAutoClear, setAutoDetach, setAutoDetach, setDetachedNew, setDetachState, setEvictFromDataCache, setIgnoreChanges, setImplicitBehavior, setLargeTransaction, setLifecycleListenerCallbackMode, setMultithreaded, setNontransactionalRead, setNontransactionalWrite, setOptimistic, setOrderDirtyObjects, setPopulateDataCache, setRestoreState, setRetainState, setRollbackOnly, setRollbackOnly, setSavepoint, setSynchronization, setSyncWithManagedTransactions, setTransactionListenerCallbackMode, syncWithManagedTransaction, unlock, validateChanges`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface org.apache.openjpa.kernel.StoreContext
`beginStore, embed, extentIterator, find, findAll, findCached, getBroker, getClassLoader, getConfiguration, getConnection, getConnectionPassword, getConnectionUserName, getDeletedTypes, getDetachState, getDirtyObjects, getFetchConfiguration, getLockLevel, getLockManager, getManagedObjects, getObjectId, getObjectIdType, getOrderDirtyObjects, getPendingTransactionalObjects, getPersistedTypes, getPopulateDataCache, getStateManager, getStoreManager, getTransactionalObjects, getUpdatedTypes, getVersion, hasConnection, isActive, isDeleted, isDirty, isLargeTransaction, isManaged, isNew, isPersistent, isStoreActive, isTransactional, lock, newObjectId, setDetachState, setLargeTransaction, setOrderDirtyObjects, setPopulateDataCache, unlock`

Constructor Detail

### FinalizingKodoBroker

    public FinalizingKodoBroker()

Method Detail

### finalize

    protected void finalize()
                     throws Throwable

  Close on finalize.

  Overrides:
    `finalize` in class `Object`
  Throws:
    `Throwable`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Kodo 4.1.4 generated on June 22 2007
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 2001-2006 BEA Systems, Inc. All Rights Reserved.