-
Notifications
You must be signed in to change notification settings - Fork 537
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implemented simple variant of client properties
- Loading branch information
Showing
6 changed files
with
114 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
jdbc-v2/src/main/java/com/clickhouse/jdbc/internal/ClientInfoProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.clickhouse.jdbc.internal; | ||
|
||
public enum ClientInfoProperties { | ||
|
||
APPLICATION_NAME("ApplicationName", 255, "", "Client application name."), | ||
; | ||
|
||
private String key; | ||
private int maxValue; | ||
|
||
private String defaultValue; | ||
|
||
private String description; | ||
|
||
ClientInfoProperties(String key, int maxValue, String defaultValue, String description) { | ||
this.key = key; | ||
this.maxValue = maxValue; | ||
this.defaultValue = defaultValue; | ||
this.description = description; | ||
} | ||
|
||
public String getKey() { | ||
return key; | ||
} | ||
|
||
public int getMaxValue() { | ||
return maxValue; | ||
} | ||
|
||
public String getDefaultValue() { | ||
return defaultValue; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters