TypeConversionSettings Class

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

public final class TypeConversionSettings

Type conversion settings.

Constructor Summary

Constructor Description
TypeConversionSettings()

Creates an instance of TypeConversionSettings class.

Method Summary

Modifier and Type Method and Description
Object getAllowDataTruncation()

Get the allowDataTruncation property: Whether to allow data truncation when converting the data.

Object getCulture()

Get the culture property: The culture used to convert data from/to string.

Object getDateTimeFormat()

Get the dateTimeFormat property: The format for DateTime values.

Object getDateTimeOffsetFormat()

Get the dateTimeOffsetFormat property: The format for DateTimeOffset values.

Object getTimeSpanFormat()

Get the timeSpanFormat property: The format for TimeSpan values.

Object getTreatBooleanAsNumber()

Get the treatBooleanAsNumber property: Whether to treat boolean values as numbers.

TypeConversionSettings setAllowDataTruncation(Object allowDataTruncation)

Set the allowDataTruncation property: Whether to allow data truncation when converting the data.

TypeConversionSettings setCulture(Object culture)

Set the culture property: The culture used to convert data from/to string.

TypeConversionSettings setDateTimeFormat(Object dateTimeFormat)

Set the dateTimeFormat property: The format for DateTime values.

TypeConversionSettings setDateTimeOffsetFormat(Object dateTimeOffsetFormat)

Set the dateTimeOffsetFormat property: The format for DateTimeOffset values.

TypeConversionSettings setTimeSpanFormat(Object timeSpanFormat)

Set the timeSpanFormat property: The format for TimeSpan values.

TypeConversionSettings setTreatBooleanAsNumber(Object treatBooleanAsNumber)

Set the treatBooleanAsNumber property: Whether to treat boolean values as numbers.

Methods inherited from java.lang.Object

Constructor Details

TypeConversionSettings

public TypeConversionSettings()

Creates an instance of TypeConversionSettings class.

Method Details

getAllowDataTruncation

public Object getAllowDataTruncation()

Get the allowDataTruncation property: Whether to allow data truncation when converting the data. Type: boolean (or Expression with resultType boolean).

Returns:

the allowDataTruncation value.

getCulture

public Object getCulture()

Get the culture property: The culture used to convert data from/to string. Type: string (or Expression with resultType string).

Returns:

the culture value.

getDateTimeFormat

public Object getDateTimeFormat()

Get the dateTimeFormat property: The format for DateTime values. Type: string (or Expression with resultType string).

Returns:

the dateTimeFormat value.

getDateTimeOffsetFormat

public Object getDateTimeOffsetFormat()

Get the dateTimeOffsetFormat property: The format for DateTimeOffset values. Type: string (or Expression with resultType string).

Returns:

the dateTimeOffsetFormat value.

getTimeSpanFormat

public Object getTimeSpanFormat()

Get the timeSpanFormat property: The format for TimeSpan values. Type: string (or Expression with resultType string).

Returns:

the timeSpanFormat value.

getTreatBooleanAsNumber

public Object getTreatBooleanAsNumber()

Get the treatBooleanAsNumber property: Whether to treat boolean values as numbers. Type: boolean (or Expression with resultType boolean).

Returns:

the treatBooleanAsNumber value.

setAllowDataTruncation

public TypeConversionSettings setAllowDataTruncation(Object allowDataTruncation)

Set the allowDataTruncation property: Whether to allow data truncation when converting the data. Type: boolean (or Expression with resultType boolean).

Parameters:

allowDataTruncation - the allowDataTruncation value to set.

Returns:

the TypeConversionSettings object itself.

setCulture

public TypeConversionSettings setCulture(Object culture)

Set the culture property: The culture used to convert data from/to string. Type: string (or Expression with resultType string).

Parameters:

culture - the culture value to set.

Returns:

the TypeConversionSettings object itself.

setDateTimeFormat

public TypeConversionSettings setDateTimeFormat(Object dateTimeFormat)

Set the dateTimeFormat property: The format for DateTime values. Type: string (or Expression with resultType string).

Parameters:

dateTimeFormat - the dateTimeFormat value to set.

Returns:

the TypeConversionSettings object itself.

setDateTimeOffsetFormat

public TypeConversionSettings setDateTimeOffsetFormat(Object dateTimeOffsetFormat)

Set the dateTimeOffsetFormat property: The format for DateTimeOffset values. Type: string (or Expression with resultType string).

Parameters:

dateTimeOffsetFormat - the dateTimeOffsetFormat value to set.

Returns:

the TypeConversionSettings object itself.

setTimeSpanFormat

public TypeConversionSettings setTimeSpanFormat(Object timeSpanFormat)

Set the timeSpanFormat property: The format for TimeSpan values. Type: string (or Expression with resultType string).

Parameters:

timeSpanFormat - the timeSpanFormat value to set.

Returns:

the TypeConversionSettings object itself.

setTreatBooleanAsNumber

public TypeConversionSettings setTreatBooleanAsNumber(Object treatBooleanAsNumber)

Set the treatBooleanAsNumber property: Whether to treat boolean values as numbers. Type: boolean (or Expression with resultType boolean).

Parameters:

treatBooleanAsNumber - the treatBooleanAsNumber value to set.

Returns:

the TypeConversionSettings object itself.

Applies to