|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.farrago.fennel.FennelDbHandleImpl
public class FennelDbHandleImpl
FennelDbHandle is a public wrapper for FennelStorage, and represents a handle to a loaded Fennel database.
| Field Summary | |
|---|---|
private FennelCmdExecutor |
cmdExecutor
|
private long |
dbHandle
|
private Map<RefPackage,Collection<RefBaseObject>> |
handleAssociationsMap
|
private static Logger |
jhTracer
|
private FarragoMetadataFactory |
metadataFactory
|
private static Logger |
tracer
|
| Constructor Summary | |
|---|---|
FennelDbHandleImpl(FarragoMetadataFactory metadataFactory,
FarragoAllocationOwner owner,
FennelCmdExecutor cmdExecutor,
FemCmdOpenDatabase cmd)
Opens a Fennel database. |
|
| Method Summary | |
|---|---|
FennelJavaHandle |
allocateNewObjectHandle(FarragoAllocationOwner owner,
Object obj)
Creates a native handle for a Java object for reference by XML commands. |
void |
closeAllocation()
Closes this object. |
long |
executeCmd(FemCmd cmd)
Executes a FemCmd object. |
long |
executeCmd(FemCmd cmd,
FennelExecutionHandle execHandle)
Executes a FemCmd object, associating an optional execution handle with the command. |
String |
getAccessorXmiForTupleDescriptorTraced(FemTupleDescriptor tupleDesc)
Constructs a FemTupleAccessor for a FemTupleDescriptor. |
FemDbHandle |
getFemDbHandle(FarragoMetadataFactory callerFactory)
|
private Collection |
getHandleAssociations(RefPackage fennelPackage)
|
FarragoMetadataFactory |
getMetadataFactory()
|
EigenbaseException |
handleNativeException(SQLException ex)
|
void |
setObjectHandle(long handle,
Object obj)
Changes the object referenced by a handle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final Logger tracer
private static final Logger jhTracer
private final FarragoMetadataFactory metadataFactory
private final FennelCmdExecutor cmdExecutor
private Map<RefPackage,Collection<RefBaseObject>> handleAssociationsMap
private long dbHandle
| Constructor Detail |
|---|
public FennelDbHandleImpl(FarragoMetadataFactory metadataFactory,
FarragoAllocationOwner owner,
FennelCmdExecutor cmdExecutor,
FemCmdOpenDatabase cmd)
metadataFactory - FarragoMetadataFactory for creating Fem instancesowner - the object which will be made responsible for this
database's allocationcmdExecutor - FennelCmdExecutor to use for executing all commands on
this databasecmd - instance of FemCmdOpenDatabase with all parameters set| Method Detail |
|---|
public FarragoMetadataFactory getMetadataFactory()
getMetadataFactory in interface FennelDbHandleprivate Collection getHandleAssociations(RefPackage fennelPackage)
public FemDbHandle getFemDbHandle(FarragoMetadataFactory callerFactory)
getFemDbHandle in interface FennelDbHandlecallerFactory - override for metadataFactory
public String getAccessorXmiForTupleDescriptorTraced(FemTupleDescriptor tupleDesc)
getAccessorXmiForTupleDescriptorTraced in interface FennelDbHandletupleDesc - source FemTupleDescriptor
public long executeCmd(FemCmd cmd)
executeCmd in interface FennelDbHandlecmd - instance of FemCmd with all parameters set
public long executeCmd(FemCmd cmd,
FennelExecutionHandle execHandle)
executeCmd in interface FennelDbHandlecmd - instance of FemCmd with all parameters setexecHandle - the execution handle associated with the command; null
if there is no associated execution handle
public FennelJavaHandle allocateNewObjectHandle(FarragoAllocationOwner owner,
Object obj)
allocateNewObjectHandle in interface FennelDbHandleowner - the object which will be made responsible for the handle's
allocation as a result of this callobj - object for which to create a handle, or null to create a
placeholder handle
public void setObjectHandle(long handle,
Object obj)
setObjectHandle in interface FennelDbHandlehandle - the handle to changeobj - new objectpublic void closeAllocation()
ClosableAllocation
closeAllocation in interface FennelDbHandlecloseAllocation in interface ClosableAllocationpublic EigenbaseException handleNativeException(SQLException ex)
handleNativeException in interface FennelDbHandle
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||