-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2dbba0
commit 8f83b38
Showing
6 changed files
with
85 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.panosen.codedom.clickhouse; | ||
|
||
public class Column { | ||
|
||
private String columnName; | ||
|
||
private String columnAs; | ||
|
||
public String getColumnName() { | ||
return columnName; | ||
} | ||
|
||
public void setColumnName(String columnName) { | ||
this.columnName = columnName; | ||
} | ||
|
||
public String getColumnAs() { | ||
return columnAs; | ||
} | ||
|
||
public void setColumnAs(String columnAs) { | ||
this.columnAs = columnAs; | ||
} | ||
} |
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
22 changes: 22 additions & 0 deletions
22
src/main/java/com/panosen/codedom/clickhouse/builder/ColumnBuilder.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,22 @@ | ||
package com.panosen.codedom.clickhouse.builder; | ||
|
||
import com.panosen.codedom.clickhouse.Column; | ||
|
||
public class ColumnBuilder { | ||
|
||
private final Column column = new Column(); | ||
|
||
public Column getColumn() { | ||
return column; | ||
} | ||
|
||
public ColumnBuilder name(String name) { | ||
column.setColumnName(name); | ||
return this; | ||
} | ||
|
||
public ColumnBuilder as(String as) { | ||
column.setColumnAs(as); | ||
return this; | ||
} | ||
} |
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