RowsFrom(Table<?>... tables) { super("rows from"); this.tables = new TableList(Arrays.asList(tables)); }
this.start = function() { this.tableList = new TableList(); this.listView = new ListView({collection: this.tableList}); this.tableList.reset(initialModels); };
@Override public final void setForUpdateOf(Table<?>... tables) { setForUpdate(true); forUpdateOf = null; forUpdateOfTables = new TableList(Arrays.asList(tables)); }
UpdateQueryImpl(Configuration configuration, WithImpl with, Table<R> table) { super(configuration, with, table); this.updateMap = new FieldMapForUpdate(table, UPDATE_SET_ASSIGNMENT); this.from = new TableList(); this.condition = new ConditionProviderImpl(); }
UpdateQueryImpl(Configuration configuration, Table<R> table) { super(configuration, table); this.updateMap = new FieldMapForUpdate(UPDATE_SET_ASSIGNMENT); this.from = new TableList(); this.condition = new ConditionProviderImpl(); }
TableList tl = new TableList(3, "ID", "String 1", "String 2").sortBy(0).withUnicode(true); // from a list yourListOrWhatever.forEach(element -> tl.addRow(element.getID(), element.getS1(), element.getS2())); // or manually tl.addRow("Hi", "I am", "Bob"); tl.print();
SelectQueryImpl(Configuration configuration, TableLike<? extends R> from, boolean distinct) { super(configuration); this.distinct = distinct; this.select = new SelectFieldList(); this.from = new TableList(); this.condition = new ConditionProviderImpl(); this.connectBy = new ConditionProviderImpl(); this.connectByStartWith = new ConditionProviderImpl(); this.groupBy = new QueryPartList<GroupField>(); this.having = new ConditionProviderImpl(); this.window = new WindowList(); this.orderBy = new SortFieldList(); this.seek = new QueryPartList<Field<?>>(); this.limit = new Limit(); if (from != null) { this.from.add(from.asTable()); } this.forUpdateOf = new QueryPartList<Field<?>>(); this.forUpdateOfTables = new TableList(); }
SelectQueryImpl(Configuration configuration, WithImpl with, TableLike<? extends R> from, boolean distinct) { super(configuration); this.with = with; this.distinct = distinct; this.select = new SelectFieldList<SelectFieldOrAsterisk>(); this.from = new TableList(); this.condition = new ConditionProviderImpl(); this.connectBy = new ConditionProviderImpl(); this.connectByStartWith = new ConditionProviderImpl(); this.having = new ConditionProviderImpl(); this.orderBy = new SortFieldList(); this.seek = new QueryPartList<Field<?>>(); this.limit = new Limit(); this.unionOp = new ArrayList<CombineOperator>(); this.union = new ArrayList<QueryPartList<Select<?>>>(); this.unionOrderBy = new SortFieldList(); this.unionSeek = new QueryPartList<Field<?>>(); this.unionLimit = new Limit(); if (from != null) this.from.add(from.asTable()); }