org.objectweb.jorm.facility.meminst.manager.basic.lib
Class ManagerImpl
java.lang.Object
|
+--org.objectweb.jorm.facility.meminst.manager.basic.lib.ManagerImpl
- All Implemented Interfaces:
- Loggable, Manager
- Direct Known Subclasses:
- CollectionManager, SetManager
- public abstract class ManagerImpl
- extends java.lang.Object
- implements Manager, Loggable
- Author:
- Sebastien Chassande-Barrioz
|
Field Summary |
protected org.objectweb.util.monolog.api.Logger |
logger
|
protected org.objectweb.util.monolog.api.LoggerFactory |
loggerFactory
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected org.objectweb.util.monolog.api.Logger logger
loggerFactory
protected org.objectweb.util.monolog.api.LoggerFactory loggerFactory
ManagerImpl
public ManagerImpl()
getPBinding
public PBinding getPBinding(java.lang.Object conn,
PName pn)
throws PException
- This method permits to obtain a PBinding linked to a PAccessor and bound
to the PName specified in parameter.
- Specified by:
getPBinding in interface Manager
getPBinding
public PBinding getPBinding(java.lang.Object conn,
PName pn,
boolean create)
throws PException
- This method permits to obtain a PBinding linked to a PAccessor and bound
to the PName specified in parameter.
The additionnal boolean parameter permits to know if the object must be
created if is not found in the cache (the binder). Indeed a mapper is not
always able to know if the object exist in the persistent support. This
method must be used in this case only. In other case the previous method
without the boolean must be used.
- Specified by:
getPBinding in interface Manager
recurseResolve
protected java.lang.Object recurseResolve(java.lang.Object conn,
PName pn)
throws PException
load
public void load(PBinding pb,
java.lang.Object conn)
throws PException
store
public void store(PBinding pb,
java.lang.Object conn)
throws PException
createPAccessor
public PAccessor createPAccessor()
createPBinding
public PBinding createPBinding(PClassMapping pcm)
throws PException
bindingExtendsAccessor
public abstract boolean bindingExtendsAccessor()
isGenericAccessor
public boolean isGenericAccessor()
setLogger
public void setLogger(org.objectweb.util.monolog.api.Logger _logger)
- It assigns a logger to an component that wants to log things.
- Specified by:
setLogger in interface Loggable
- Parameters:
Logger - The logger object.
setLoggerFactory
public void setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory lf)
- It assigns a logger factory that allows the creation of new loggers.
- Specified by:
setLoggerFactory in interface Loggable
- Parameters:
loggerfactory - The LoggerFactory object to obtain new loggers.
getLogger
public org.objectweb.util.monolog.api.Logger getLogger()
- Description copied from interface:
Loggable
- Returns a logger to an component that wants to log things.
- Specified by:
getLogger in interface Loggable
- Following copied from interface:
org.objectweb.jorm.util.api.Loggable
- Parameters:
logger - the logger object
getLoggerFactory
public org.objectweb.util.monolog.api.LoggerFactory getLoggerFactory()
- Description copied from interface:
Loggable
- Returns a logger factory that allows the creation of new loggers.
- Specified by:
getLoggerFactory in interface Loggable
- Following copied from interface:
org.objectweb.jorm.util.api.Loggable
- Parameters:
loggerfactory - the LoggerFactory object to obtain new loggers