SqlScriptContent Class

  • java.lang.Object
    • com.azure.analytics.synapse.artifacts.models.SqlScriptContent

Implements

public final class SqlScriptContent
implements JsonSerializable<SqlScriptContent>

The content of the SQL script.

Constructor Summary

Constructor Description
SqlScriptContent()

Creates an instance of SqlScriptContent class.

Method Summary

Modifier and Type Method and Description
static SqlScriptContent fromJson(JsonReader jsonReader)

Reads an instance of SqlScriptContent from the JsonReader.

Map<String,Object> getAdditionalProperties()

Get the additionalProperties property: The content of the SQL script.

SqlConnection getCurrentConnection()

Get the currentConnection property: The connection used to execute the SQL script.

SqlScriptMetadata getMetadata()

Get the metadata property: The metadata of the SQL script.

String getQuery()

Get the query property: SQL query to execute.

Integer getResultLimit()

Get the resultLimit property: Limit of results, '-1' for no limit.

SqlScriptContent setAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: The content of the SQL script.

SqlScriptContent setCurrentConnection(SqlConnection currentConnection)

Set the currentConnection property: The connection used to execute the SQL script.

SqlScriptContent setMetadata(SqlScriptMetadata metadata)

Set the metadata property: The metadata of the SQL script.

SqlScriptContent setQuery(String query)

Set the query property: SQL query to execute.

SqlScriptContent setResultLimit(Integer resultLimit)

Set the resultLimit property: Limit of results, '-1' for no limit.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

SqlScriptContent

public SqlScriptContent()

Creates an instance of SqlScriptContent class.

Method Details

fromJson

public static SqlScriptContent fromJson(JsonReader jsonReader)

Reads an instance of SqlScriptContent from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SqlScriptContent if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getAdditionalProperties

public Map<String,Object> getAdditionalProperties()

Get the additionalProperties property: The content of the SQL script.

Returns:

the additionalProperties value.

getCurrentConnection

public SqlConnection getCurrentConnection()

Get the currentConnection property: The connection used to execute the SQL script.

Returns:

the currentConnection value.

getMetadata

public SqlScriptMetadata getMetadata()

Get the metadata property: The metadata of the SQL script.

Returns:

the metadata value.

getQuery

public String getQuery()

Get the query property: SQL query to execute.

Returns:

the query value.

getResultLimit

public Integer getResultLimit()

Get the resultLimit property: Limit of results, '-1' for no limit.

Returns:

the resultLimit value.

setAdditionalProperties

public SqlScriptContent setAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: The content of the SQL script.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the SqlScriptContent object itself.

setCurrentConnection

public SqlScriptContent setCurrentConnection(SqlConnection currentConnection)

Set the currentConnection property: The connection used to execute the SQL script.

Parameters:

currentConnection - the currentConnection value to set.

Returns:

the SqlScriptContent object itself.

setMetadata

public SqlScriptContent setMetadata(SqlScriptMetadata metadata)

Set the metadata property: The metadata of the SQL script.

Parameters:

metadata - the metadata value to set.

Returns:

the SqlScriptContent object itself.

setQuery

public SqlScriptContent setQuery(String query)

Set the query property: SQL query to execute.

Parameters:

query - the query value to set.

Returns:

the SqlScriptContent object itself.

setResultLimit

public SqlScriptContent setResultLimit(Integer resultLimit)

Set the resultLimit property: Limit of results, '-1' for no limit.

Parameters:

resultLimit - the resultLimit value to set.

Returns:

the SqlScriptContent object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to