public interface PersistenceBrokerInternal extends PersistenceBroker
PersistenceBroker specifying additional functionality
that is only relevant internally.| Modifier and Type | Method and Description |
|---|---|
void |
checkRefreshRelationships(java.lang.Object obj,
Identity oid,
ClassDescriptor cld)
Refreshes the references of the given object whose
refresh
is set to true. |
java.lang.Object |
createProxy(java.lang.Class proxyClass,
Identity realSubjectsIdentity)
Shortcut method for creating a proxy of the given type.
|
void |
delete(java.lang.Object obj,
boolean ignoreReferences)
Deletes the persistence representation of the given object in the underlying
persistence system.
|
ProxyFactory |
getProxyFactory()
Return the factory for creating proxies.
|
QueryReferenceBroker |
getReferenceBroker()
Returns the broker specifically for retrieving references via query.
|
RelationshipPrefetcherFactory |
getRelationshipPrefetcherFactory()
Return the factory for creating relationship prefetcher objects.
|
boolean |
isManaged()
Determines whether this instance is handled by a managed
environment, i.e.
|
void |
setManaged(boolean managed)
Specifies whether this instance is handled by a managed
environment, i.e.
|
void |
store(java.lang.Object obj,
Identity oid,
ClassDescriptor cld,
boolean insert,
boolean ignoreReferences)
Performs the real store work (insert or update) and is intended for use by
top-level apis internally.
|
abortTransaction, addListener, addListener, addMtoNImplementor, beginTransaction, clearCache, close, commitTransaction, delete, deleteByQuery, deleteMtoNImplementor, fireBrokerEvent, fireBrokerEvent, fireBrokerEvent, getClassDescriptor, getCollectionByQuery, getCollectionByQuery, getCount, getDescriptorRepository, getIteratorByQuery, getObjectByIdentity, getObjectByQuery, getPBKey, getPKEnumerationByQuery, getReportQueryIteratorByQuery, getTopLevelClass, hasClassDescriptor, isClosed, isInTransaction, removeAllListeners, removeAllListeners, removeFromCache, removeListener, retrieveAllReferences, retrieveReference, serviceBrokerHelper, serviceConnectionManager, serviceIdentity, serviceJdbcAccess, serviceObjectCache, serviceSequenceManager, serviceSqlGenerator, serviceStatementManager, store, storequeryboolean isManaged()
true if this broker is managedvoid setManaged(boolean managed)
PersistenceBroker.close() this will automatically be reset
to false.managed - true if this broker is managedvoid store(java.lang.Object obj,
Identity oid,
ClassDescriptor cld,
boolean insert,
boolean ignoreReferences)
obj - The object to storeoid - The identity of the object to storecld - The class descriptor of the objectinsert - If true an insert operation will be performed, else update
operationignoreReferences - Whether automatic storing of contained references/collections (except
super-references) shall be suppressed (independent of the auto-update
setting in the metadata)void delete(java.lang.Object obj,
boolean ignoreReferences)
throws PersistenceBrokerException
obj - The object to deleteignoreReferences - Whether automatic deletion of contained references/collections (except
super-references) shall be suppressed (independent of the auto-delete
setting in the metadata)PersistenceBrokerExceptionQueryReferenceBroker getReferenceBroker()
void checkRefreshRelationships(java.lang.Object obj,
Identity oid,
ClassDescriptor cld)
refresh
is set to true.obj - The object to checkoid - The identity of the objectcld - The class descriptor for the objectRelationshipPrefetcherFactory getRelationshipPrefetcherFactory()
ProxyFactory getProxyFactory()
java.lang.Object createProxy(java.lang.Class proxyClass,
Identity realSubjectsIdentity)
proxyClass - The proxy typerealSubjectsIdentity - The identity of the real subject(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30