Skip to content

Commit

Permalink
Added more details for certain getters and setters
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-jf committed Nov 6, 2024
1 parent 38900bf commit 5d53094
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/main/java/net/snowflake/client/core/SFBaseSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,11 @@ public void setDatabaseMinorVersion(int databaseMinorVersion) {
}

/**
* Get if prepared statement logging is enabled
* Gets the value of CLIENT_ENABLE_LOG_INFO_STATEMENT_PARAMETERS if one has been set. False by
* default.
*
* @see <a
* href="https://docs.snowflake.com/en/sql-reference/parameters#client-enable-log-info-statement-parameters">CLIENT_ENABLE_LOG_INFO_STATEMENT_PARAMETERS</a>
* @return true if enabled
*/
public boolean getPreparedStatementLogging() {
Expand All @@ -301,6 +304,7 @@ public boolean getPreparedStatementLogging() {
/**
* Set prepared statement logging
*
* @see SFBaseSession#getPreparedStatementLogging()
* @param value boolean
*/
public void setPreparedStatementLogging(boolean value) {
Expand Down Expand Up @@ -328,6 +332,8 @@ public void setInjectFileUploadFailure(String fileToFail) {
/**
* Get timestamp mapped type
*
* @see <a
* href="https://docs.snowflake.com/en/sql-reference/parameters#client-timestamp-type-mapping">CLIENT_TIMESTAMP_TYPE_MAPPING</a>
* @return SnowflakeType {@link SnowflakeType}
*/
public SnowflakeType getTimestampMappedType() {
Expand All @@ -337,6 +343,7 @@ public SnowflakeType getTimestampMappedType() {
/**
* Set the timestamp mapped type
*
* @see SFBaseSession#getTimestampMappedType()
* @param timestampMappedType SnowflakeType
*/
public void setTimestampMappedType(SnowflakeType timestampMappedType) {
Expand All @@ -346,6 +353,7 @@ public void setTimestampMappedType(SnowflakeType timestampMappedType) {
/**
* Get if result column is case-insensitive
*
* @see SFBaseSession#setResultColumnCaseInsensitive(boolean)
* @return true if result column is case-insensitive
*/
public boolean isResultColumnCaseInsensitive() {
Expand All @@ -355,6 +363,8 @@ public boolean isResultColumnCaseInsensitive() {
/**
* Set if result column is case-insensitive
*
* @see <a
* href="https://docs.snowflake.com/en/sql-reference/parameters#client-result-column-case-insensitive">CLIENT_RESULT_COLUMN_CASE_INSENSITIVE</a>
* @param resultColumnCaseInsensitive boolean
*/
public void setResultColumnCaseInsensitive(boolean resultColumnCaseInsensitive) {
Expand All @@ -364,6 +374,8 @@ public void setResultColumnCaseInsensitive(boolean resultColumnCaseInsensitive)
/**
* Check if we want to treat decimal as int JDBC types
*
* @see <a
* href="https://docs.snowflake.com/en/sql-reference/parameters#jdbc-treat-decimal-as-int">JDBC_TREAT_DECIMAL_AS_INT</a>
* @return true if decimal is treated as int
*/
public boolean isJdbcTreatDecimalAsInt() {
Expand All @@ -373,6 +385,7 @@ public boolean isJdbcTreatDecimalAsInt() {
/**
* Set if decimal should be treated as int type
*
* @see SFBaseSession#isJdbcTreatDecimalAsInt()
* @param jdbcTreatDecimalAsInt boolean
*/
public void setJdbcTreatDecimalAsInt(boolean jdbcTreatDecimalAsInt) {
Expand Down

0 comments on commit 5d53094

Please sign in to comment.