private final boolean knownTable(Table<?> table) { return table.fieldsRow().size() > 0; }
@Override public final Row fieldsRow() { return asTable().fieldsRow(); }
@Override public final Row fieldsRow() { return asTable().fieldsRow(); }
private final boolean knownTable(Table<?> table) { if (table instanceof JoinTable) return knownTable(((JoinTable) table).lhs) && knownTable(((JoinTable) table).rhs); else return table.fieldsRow().size() > 0; }
/** * Get a list of names of the <code>NamedQueryParts</code> contained in this * list. */ final void toSQLFieldNames(RenderContext context) { String separator = ""; for (Table<?> table : this) { for (Field<?> field : table.fieldsRow().fields()) { context.sql(separator); context.literal(field.getName()); separator = ", "; } } } }
/** * Register fields for this table alias */ @SuppressWarnings({ "rawtypes", "unchecked" }) private final Fields<R> init(String[] fieldAliases) { List<Field<?>> result = new ArrayList<Field<?>>(); Row row = this.alias.wrapped().fieldsRow(); int size = row.size(); for (int i = 0; i < size; i++) { Field<?> field = row.field(i); String name = field.getName(); if (fieldAliases != null && fieldAliases.length > i) { name = fieldAliases[i]; } result.add(new TableFieldImpl(name, field.getDataType(), this, field.getComment())); } return new Fields<R>(result); }
/** * Register fields for this table alias */ @SuppressWarnings({ "rawtypes", "unchecked" }) private final Fields<R> init(Name[] fieldAliases) { Row row = this.alias.wrapped().fieldsRow(); int size = row.size(); List<Field<?>> result = new ArrayList<Field<?>>(size); for (int i = 0; i < size; i++) { Field<?> field = row.field(i); Name name = (fieldAliases != null && fieldAliases.length > i) ? fieldAliases[i] : field.getUnqualifiedName(); result.add(new TableFieldImpl(name, field.getDataType(), this, DSL.comment(field.getComment()), field.getBinding())); } return new Fields<R>(result); }
/** * Get a list of names of the <code>NamedQueryParts</code> contained in this * list. */ final void toSQLFields(Context<?> ctx) { String separator = ""; // [#4151] [#6117] Some databases don't allow for qualifying column // names here. Copy also to SelectQueryImpl boolean unqualified = UNQUALIFY_FIELDS.contains(ctx.family()); boolean qualify = ctx.qualify(); if (unqualified) ctx.qualify(false); for (Table<?> table : this) { for (Field<?> field : table.fieldsRow().fields()) { ctx.sql(separator); ctx.visit(field); separator = ", "; } } if (unqualified) ctx.qualify(qualify); } }
Map<Field<?>, Field<?>> insert = new LinkedHashMap<Field<?>, Field<?>>(); for (int i = 0; i < src.fieldsRow().size(); i++) {
Map<Field<?>, Field<?>> insert = new LinkedHashMap<Field<?>, Field<?>>(); for (int i = 0; i < src.fieldsRow().size(); i++) {