public final class Endpoint extends SqllrObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Endpoint.Builder
Collects the members of a new
Endpoint. |
SqllrObject.Reader<T>| Modifier and Type | Field and Description |
|---|---|
static List<String> |
MEMBERS
The members the schema defines, in schema order.
|
static SqllrObject.Reader<Endpoint> |
READER
Reads a JSON object as a
Endpoint. |
static List<String> |
REQUIRED
The members the schema requires.
|
| Modifier and Type | Method and Description |
|---|---|
static Endpoint.Builder |
builder() |
static Endpoint |
fromJson(Object json)
A
Endpoint with the members of a JSON object, all kept. |
String |
getDisplayName()
The member
displayName. |
String |
getDisplayPath()
The member
displayPath. |
Map<String,Extension> |
getExtensions()
The member
extensions. |
Long |
getGeneration()
The member
generation. |
Identity |
getIdentity()
The member
identity. |
String |
getKind()
The member
kind. |
Name |
getName()
The member
name. |
Long |
getOrdinal()
The member
ordinal. |
Long |
getOwnerRef()
The member
ownerRef. |
List<PathSegment> |
getPathSegments()
The member
pathSegments. |
Long |
getRef()
The member
ref. |
Long |
getResolvesToRef()
The member
resolvesToRef. |
String |
getRoutineKind()
The member
routineKind. |
String |
getRoutineNamespace()
The member
routineNamespace. |
Long |
getScopeRef()
The member
scopeRef. |
Signature |
getSignature()
The member
signature. |
Long |
getStatementRef()
The member
statementRef. |
Endpoint.Builder |
toBuilder()
A builder holding every member of this object.
|
public static final SqllrObject.Reader<Endpoint> READER
Endpoint.public static Endpoint fromJson(Object json)
Endpoint with the members of a JSON object, all kept.public static Endpoint.Builder builder()
public Endpoint.Builder toBuilder()
public Long getRef()
ref. A document-local reference: an integer that is unique across the
whole document (one reference space for every object that carries a ref). Local references
are assigned after merging and have no meaning outside the document (Sections 6.1 and 13).
Null when absent; throws IllegalStateException when the member holds another JSON type.public String getKind()
kind. The kind of an endpoint. Registry group 'endpointKinds' (Sections
3.1, 7.4, 9.1 and 11.1). Null when absent; throws IllegalStateException when the member holds
another JSON type.public Name getName()
name. Null when absent; throws IllegalStateException when the member holds
another JSON type.public Long getOwnerRef()
ownerRef. The owner endpoint of a FIELD or ROW_SET, or the STAGE of a
STORAGE_LOCATION. A document-local reference: an integer that is unique across the whole
document (one reference space for every object that carries a ref). Local references are
assigned after merging and have no meaning outside the document (Sections 6.1 and 13). Null
when absent; throws IllegalStateException when the member holds another JSON type.public Long getStatementRef()
statementRef. The statement whose top-level result a QUERY_RESULT is, or
the statement that defines a LOCAL ROUTINE (Section 7.3). A document-local reference: an
integer that is unique across the whole document (one reference space for every object that
carries a ref). Local references are assigned after merging and have no meaning outside the
document (Sections 6.1 and 13). Null when absent; throws IllegalStateException when the
member holds another JSON type.public Long getScopeRef()
scopeRef. The scope that bounds the lifetime of a local endpoint
(TEMP_TABLE, TABLE_VARIABLE, CTE, VARIABLE, PARAMETER). A document-local reference: an
integer that is unique across the whole document (one reference space for every object that
carries a ref). Local references are assigned after merging and have no meaning outside the
document (Sections 6.1 and 13). Null when absent; throws IllegalStateException when the
member holds another JSON type.public Long getGeneration()
generation. The creation generation of a TEMP_TABLE within its scope;
re-creating it after DROP gives a new generation. A 0-based ordinal. Null when absent; throws
IllegalStateException when the member holds another JSON type.public Long getOrdinal()
ordinal. The 0-based select-list position of a FIELD owned by a
QUERY_RESULT. A 0-based ordinal. Null when absent; throws IllegalStateException when the
member holds another JSON type.public Long getResolvesToRef()
resolvesToRef. For a name as written through a synonym, linked server or
database link: the resolved object, when the mapping is known. Absent when it is unknown; the
chain is then not connected (Section 9.1). A document-local reference: an integer that is
unique across the whole document (one reference space for every object that carries a ref).
Local references are assigned after merging and have no meaning outside the document
(Sections 6.1 and 13). Null when absent; throws IllegalStateException when the member holds
another JSON type.public Identity getIdentity()
identity. Null when absent; throws IllegalStateException when the member
holds another JSON type.public String getDisplayName()
displayName. Display only; never identity. Null when absent; throws
IllegalStateException when the member holds another JSON type.public List<PathSegment> getPathSegments()
pathSegments. Nested field path below the owner FIELD. Module
nested-fields. Null when absent; throws IllegalStateException when the member holds another
JSON type.public String getDisplayPath()
displayPath. Display only. Module nested-fields. Null when absent; throws
IllegalStateException when the member holds another JSON type.public String getRoutineNamespace()
routineNamespace. ROUTINE only. Module routines. The namespace of a
routine identity. Registry group 'routineNamespaces' (Section 7.3). Null when absent; throws
IllegalStateException when the member holds another JSON type.public String getRoutineKind()
routineKind. ROUTINE only. Module routines. The kind of a routine.
Registry group 'routineKinds' (Section 7.3). Null when absent; throws IllegalStateException
when the member holds another JSON type.public Signature getSignature()
signature. ROUTINE only; absent while the overload is not proven. Module
routines. Null when absent; throws IllegalStateException when the member holds another JSON
type.public Map<String,Extension> getExtensions()
extensions. Extension data keyed by namespace. Every core object may carry
it; it never takes part in a core identity. Null when absent; throws IllegalStateException
when the member holds another JSON type.