|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.store.raw.data.StreamFileContainerHandle
final class StreamFileContainerHandle
A handle to an open stream container, implememts StreamContainerHandle.
This class is an Observer to observe RawTransactions
MT - Mutable - Immutable identity - Thread Aware
| Field Summary | |
|---|---|
protected boolean |
active
Is this StreamContainerHandle active. |
protected StreamFileContainer |
container
The actual container we are accessing. |
private boolean |
hold
Whether this container should be held open across commit. |
protected ContainerKey |
identity
Container identifier MT - Immutable |
private UUID |
rawStoreId
Raw Store identifier MT - Immutable |
protected RawTransaction |
xact
our transaction. |
| Fields inherited from interface org.apache.derby.iapi.store.raw.StreamContainerHandle |
|---|
TEMPORARY_SEGMENT |
| Constructor Summary | |
|---|---|
StreamFileContainerHandle(UUID rawStoreId,
RawTransaction xact,
ContainerKey identity,
boolean hold)
|
|
StreamFileContainerHandle(UUID rawStoreId,
RawTransaction xact,
StreamFileContainer container,
boolean hold)
|
|
| Method Summary | |
|---|---|
void |
close()
Close me. |
boolean |
fetchNext(DataValueDescriptor[] row)
fetch a row from the container. |
void |
getContainerProperties(java.util.Properties prop)
Request the system properties associated with a container. |
ContainerKey |
getId()
get the container key for the stream container |
RawTransaction |
getTransaction()
Return the RawTransaction this object was opened in. |
void |
removeContainer()
remove the stream container |
java.lang.String |
toString()
|
void |
update(java.util.Observable obj,
java.lang.Object arg)
Called when the transaction is about to complete. |
boolean |
useContainer()
Attach me to a container. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final UUID rawStoreId
protected final ContainerKey identity
protected boolean active
protected StreamFileContainer container
protected RawTransaction xact
private boolean hold
| Constructor Detail |
|---|
public StreamFileContainerHandle(UUID rawStoreId,
RawTransaction xact,
ContainerKey identity,
boolean hold)
public StreamFileContainerHandle(UUID rawStoreId,
RawTransaction xact,
StreamFileContainer container,
boolean hold)
| Method Detail |
|---|
public void getContainerProperties(java.util.Properties prop)
throws StandardException
getContainerProperties in interface StreamContainerHandleprop - Property list to fill in.
StandardException - Standard exception policy.StreamContainerHandle.getContainerProperties(java.util.Properties)
public boolean fetchNext(DataValueDescriptor[] row)
throws StandardException
fetchNext in interface StreamContainerHandlerow - Row to be filled in with information from the record.
StandardException - Standard exception policy.public void close()
StreamContainerHandle
ref.close();
ref = null;
close in interface StreamContainerHandleStandardException - Standard exception policy.StreamContainerHandle.close()
public void removeContainer()
throws StandardException
removeContainer in interface StreamContainerHandleStandardException - Standard Derby error policyStreamContainerHandle.removeContainer()public ContainerKey getId()
getId in interface StreamContainerHandle
public void update(java.util.Observable obj,
java.lang.Object arg)
update in interface java.util.ObserverObserver.update(java.util.Observable, java.lang.Object)
public boolean useContainer()
throws StandardException
StandardException - Standard Derby error policypublic final RawTransaction getTransaction()
public java.lang.String toString()
toString in class java.lang.Object
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||