|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PersistenceBrokerInternal
Extended version of the PersistenceBroker
specifying additional functionality
that is only relevant internally.
Method Summary | |
---|---|
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. |
Methods inherited from interface org.apache.ojb.broker.util.configuration.Configurable |
---|
configure |
Methods inherited from interface org.odbms.ObjectContainer |
---|
query |
Method Detail |
---|
boolean 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)
PersistenceBrokerException
QueryReferenceBroker 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |