Package com.veeva.vault.sdk.api.query
Interface QueryShowRelationshipsRequest.Builder
- Enclosing interface:
- QueryShowRelationshipsRequest
public static interface QueryShowRelationshipsRequest.Builder
Creates an instance of
QueryShowRelationshipsRequest. Requires calling withTargetName(String) to set the
metadata query target in the FROM clause.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Retrieves the completedQueryShowRelationshipsRequest.Optional: Sets aLIKEclause to filter the returned relationship names based on a pattern.Enables Query Describe on theSHOW RELATIONSHIPSquery.withTargetName(String targetName) Required: Sets the mandatory query target name in theFROMclause of theSHOW RELATIONSHIPSstatement.
-
Method Details
-
withTargetName
Required: Sets the mandatory query target name in theFROMclause of theSHOW RELATIONSHIPSstatement.Calling this method again replaces any previously set query target name. This method must be called at least once before
build().- Parameters:
targetName- name of the target of the query- Returns:
- this Builder
-
withLike
Optional: Sets aLIKEclause to filter the returned relationship names based on a pattern. For example,LIKE 'vql%'.If this method is called multiple times, the request retains only the value from the last call. If this method is never called, the request does not apply a
LIKEfilter and returns all queryable relationships.- Parameters:
likeString-LIKEclause- Returns:
- this Builder
-
withQueryDescribe
QueryShowRelationshipsRequest.Builder withQueryDescribe()Enables Query Describe on theSHOW RELATIONSHIPSquery.- Returns:
- this Builder
-
build
QueryShowRelationshipsRequest build()Retrieves the completedQueryShowRelationshipsRequest.The metadata query target name must not be empty.
- Returns:
- the completed QueryShowRelationshipsRequest
-