Package oracle.pgx.api
Class Scalar<V>
java.lang.Object
oracle.pgx.api.internal.ApiObject
oracle.pgx.api.Destroyable
oracle.pgx.api.PgxManagedObject
oracle.pgx.api.Scalar<V>
- Type Parameters:
V- the value type
- All Implemented Interfaces:
AutoCloseable
A scalar value.
-
Method Summary
Modifier and TypeMethodDescriptionRequests destruction of this object.get()Blocking version ofgetAsync().getAsync()intgetGraph()Gets the graph the scalar is bound to.getName()getType()Gets the type of this Scalar.voidBlocking version ofsetAsync(Object).Sets the scalar value.toString()Methods inherited from class oracle.pgx.api.PgxManagedObject
equals, hashCodeMethods inherited from class oracle.pgx.api.Destroyable
close, destroy
-
Method Details
-
getName
- Specified by:
getNamein classPgxManagedObject- Returns:
- the name identifying this managed object
-
getGraph
Gets the graph the scalar is bound to.- Returns:
- graph
-
destroyAsync
Description copied from class:DestroyableRequests destruction of this object. After this method returns, the behavior of any method of this class becomes undefined.- Specified by:
destroyAsyncin classDestroyable- Returns:
- a future which will be completed once the destruction request finishes.
-
getType
Gets the type of this Scalar.- Returns:
- the type
-
getDimension
public int getDimension() -
getAsync
-
setAsync
Sets the scalar value.- Parameters:
value- the value to be assigned
-
toString
-
get
- Throws:
InterruptedException- if the caller thread gets interrupted while waiting for completion.ExecutionException- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
set
Blocking version ofsetAsync(Object). CallssetAsync(Object)and waits for the returnedPgxFutureto complete.- Throws:
InterruptedException- if the caller thread gets interrupted while waiting for completion.ExecutionException- if any exception occurred during asynchronous execution. The actual exception will be nested.
-