throw Lang.makeThrow("Entity chain for UPDATE '%s'", en.getType().getName());
}
}
public int joinAdaptor(Entity<?> en, ValueAdaptor[] adaptors, int off) {
Chain c = chain.head();
while (c != null) {
MappingField mf = en.getField(c.name());
// TODO 移除这种数组下标用++的写法!!!
if (c.adaptor() == null)
adaptors[off++] = (null == mf ? Jdbcs.getAdaptorBy(c.value()) : mf.getAdaptor());
else
adaptors[off++] = c.adaptor();
c = c.next();
}
return off;
}