aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/iciql/TableDefinition.java
diff options
context:
space:
mode:
authoruchicom <2980920+uchicom@users.noreply.github.com>2021-05-03 01:09:41 +0900
committerGitHub <noreply@github.com>2021-05-02 12:09:41 -0400
commit3ae6f66919787d279a78818605126bcdec8f9139 (patch)
treef509aa0bd3b2a89be88e0cfd12815c178eacfcba /src/main/java/com/iciql/TableDefinition.java
parent7c0aec71814f5b1bf4f93a9186b945beec42c70b (diff)
downloadiciql-3ae6f66919787d279a78818605126bcdec8f9139.tar.gz
iciql-3ae6f66919787d279a78818605126bcdec8f9139.zip
simple join select (#39)
* simple join select * test for simple join select * test for simple join select
Diffstat (limited to 'src/main/java/com/iciql/TableDefinition.java')
-rw-r--r--src/main/java/com/iciql/TableDefinition.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/com/iciql/TableDefinition.java b/src/main/java/com/iciql/TableDefinition.java
index fe273c0..05cdbf6 100644
--- a/src/main/java/com/iciql/TableDefinition.java
+++ b/src/main/java/com/iciql/TableDefinition.java
@@ -1150,6 +1150,17 @@ public class TableDefinition<T> {
}
}
+ void appendSelectList(SQLStatement stat, String as) {
+ for (int i = 0; i < fields.size(); i++) {
+ if (i > 0) {
+ stat.appendSQL(", ");
+ }
+ stat.appendSQL(as + ".");
+ FieldDefinition def = fields.get(i);
+ stat.appendColumn(def.columnName);
+ }
+ }
+
<Y, X> void appendSelectList(SQLStatement stat, Query<Y> query, X x) {
// select t0.col1, t0.col2, t0.col3...
// select table1.col1, table1.col2, table1.col3...