| org.apache.ojb.broker.PersistenceBrokerInternal
All known Subclasses: org.apache.ojb.broker.core.PersistenceBrokerAbstractImpl, org.apache.ojb.broker.core.DelegatingPersistenceBroker,
PersistenceBrokerInternal | public interface PersistenceBrokerInternal extends PersistenceBroker(Code) | | Extended version of the
PersistenceBroker specifying additional functionality
that is only relevant internally.
author: Armin Waibel version: $Id: PersistenceBrokerInternal.java,v 1.1.2.6 2005/12/29 22:47:48 tomdz Exp $ |
Method Summary | |
public void | checkRefreshRelationships(Object obj, Identity oid, ClassDescriptor cld) Refreshes the references of the given object whose refresh
is set to true . | public Object | createProxy(Class proxyClass, Identity realSubjectsIdentity) Shortcut method for creating a proxy of the given type. | public void | delete(Object obj, boolean ignoreReferences) Deletes the persistence representation of the given object in the underlying
persistence system. | public ProxyFactory | getProxyFactory() Return the factory for creating proxies. | public QueryReferenceBroker | getReferenceBroker() Returns the broker specifically for retrieving references via query. | public RelationshipPrefetcherFactory | getRelationshipPrefetcherFactory() Return the factory for creating relationship prefetcher objects. | public boolean | isManaged() Determines whether this instance is handled by a managed
environment, i.e. | public void | setManaged(boolean managed) Specifies whether this instance is handled by a managed
environment, i.e. | public void | store(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. |
checkRefreshRelationships | public void checkRefreshRelationships(Object obj, Identity oid, ClassDescriptor cld)(Code) | | Refreshes the references of the given object whose refresh
is set to true .
Parameters: obj - The object to check Parameters: oid - The identity of the object Parameters: cld - The class descriptor for the object |
createProxy | public Object createProxy(Class proxyClass, Identity realSubjectsIdentity)(Code) | | Shortcut method for creating a proxy of the given type.
Parameters: proxyClass - The proxy type Parameters: realSubjectsIdentity - The identity of the real subject The proxy |
delete | public void delete(Object obj, boolean ignoreReferences) throws PersistenceBrokerException(Code) | | Deletes the persistence representation of the given object in the underlying
persistence system. This method is intended for use in top-level apis internally.
Parameters: obj - The object to delete Parameters: ignoreReferences - Whether automatic deletion of contained references/collections (exceptsuper-references) shall be suppressed (independent of the auto-deletesetting in the metadata) |
getProxyFactory | public ProxyFactory getProxyFactory()(Code) | | Return the factory for creating proxies.
The factory |
getReferenceBroker | public QueryReferenceBroker getReferenceBroker()(Code) | | Returns the broker specifically for retrieving references via query.
The query reference broker |
getRelationshipPrefetcherFactory | public RelationshipPrefetcherFactory getRelationshipPrefetcherFactory()(Code) | | Return the factory for creating relationship prefetcher objects.
The factory |
isManaged | public boolean isManaged()(Code) | | Determines whether this instance is handled by a managed
environment, i.e. whether it is registered within a JTA transaction.
true if this broker is managed |
setManaged | public void setManaged(boolean managed)(Code) | | Specifies whether this instance is handled by a managed
environment, i.e. whether it is registered within a JTA transaction.
Note that on
PersistenceBrokerInternal.close() this will automatically be reset
to false.
Parameters: managed - true if this broker is managed |
store | public void store(Object obj, Identity oid, ClassDescriptor cld, boolean insert, boolean ignoreReferences)(Code) | | Performs the real store work (insert or update) and is intended for use by
top-level apis internally.
Parameters: obj - The object to store Parameters: oid - The identity of the object to store Parameters: cld - The class descriptor of the object Parameters: insert - If true an insert operation will be performed, else updateoperation Parameters: ignoreReferences - Whether automatic storing of contained references/collections (exceptsuper-references) shall be suppressed (independent of the auto-updatesetting in the metadata) |
|
|