This class is an Observer to observe RawTransactions
MT - Mutable - Immutable identity - Thread Aware
| Modifier and Type | Field and Description |
|---|---|
| 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 final ContainerKey | identity
Container identifier MT - Immutable |
| private final UUID | rawStoreId
Raw Store identifier MT - Immutable |
| protected RawTransaction | xact
our transaction. |
| Access | Constructor and Description |
|---|---|
| public | StreamFileContainerHandle(UUID rawStoreId, RawTransaction xact, ContainerKey identity, boolean hold)
|
| public | StreamFileContainerHandle(UUID rawStoreId, RawTransaction xact, StreamFileContainer container, boolean hold)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | fetchNext(DataValueDescriptor[]
Row to be filled in with information from the record. row)Implements org. fetch a row from the container. |
| public void | getContainerProperties(Properties
Property list to fill in. prop)Implements org. Request the system properties associated with a container. |
| public ContainerKey | getId()
Implements org. get the container key for the stream container |
| public final RawTransaction | |
| public void | removeContainer()
Implements org. remove the stream container |
| public String | |
| public void | update(DerbyObservable
The object which is being observed obj, Object Extra information being passed to the callback arg)Implements org. Called when the transaction is about to complete. |
| public boolean |
| active | back to summary |
|---|---|
| protected boolean active Is this StreamContainerHandle active.
| |
| container | back to summary |
|---|---|
| protected StreamFileContainer container The actual container we are accessing. Only valid when active is true.
| |
| hold | back to summary |
|---|---|
| private boolean hold Whether this container should be held open across commit.
Only valid when active is true.
| |
| identity | back to summary |
|---|---|
| protected final ContainerKey identity Container identifier
| |
| rawStoreId | back to summary |
|---|---|
| private final UUID rawStoreId Raw Store identifier
| |
| xact | back to summary |
|---|---|
| protected RawTransaction xact our transaction. Only valid when active is true.
| |
| StreamFileContainerHandle | back to summary |
|---|---|
| public StreamFileContainerHandle(UUID rawStoreId, RawTransaction xact, ContainerKey identity, boolean hold) | |
| StreamFileContainerHandle | back to summary |
|---|---|
| public StreamFileContainerHandle(UUID rawStoreId, RawTransaction xact, StreamFileContainer container, boolean hold) | |
| close | back to summary |
|---|---|
| public void close() Implements org. Doc from org. Close me. After using this method the caller must throw away the reference to the Container object, e.g. ref.close(); ref = null; The container will be closed automatically at the commit or abort of the transaction if this method is not called explictly.
| |
| fetchNext | back to summary |
|---|---|
| public boolean fetchNext(DataValueDescriptor[] row) throws StandardException Implements org. fetch a row from the container.
| |
| getContainerProperties | back to summary |
|---|---|
| public void getContainerProperties(Properties prop) throws StandardException Implements org. Request the system properties associated with a container.
| |
| getId | back to summary |
|---|---|
| public ContainerKey getId() Implements org. get the container key for the stream container | |
| getTransaction | back to summary |
|---|---|
| public final RawTransaction getTransaction() Return the RawTransaction this object was opened in. | |
| removeContainer | back to summary |
|---|---|
| public void removeContainer() throws StandardException Implements org. remove the stream container
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| update | back to summary |
|---|---|
| public void update(DerbyObservable obj, Object arg) Implements org. Called when the transaction is about to complete.
| |
| useContainer | back to summary |
|---|---|
| public boolean useContainer() throws StandardException Attach me to a container. If this method returns false then I cannot be used anymore, and any reference to me must be discarded.
| |