public final void load(final LentilObject object, final String sfield, final Object value) throws LentilObjectNotFound { final LentilClass lclass = object.getLentilClass(); final LentilField field = lclass.getField(sfield); if (field == null) throw new IllegalStateException(); field.set(object, value); final StringBuilder builder = new StringBuilder(); builder.append(lclass.getLoadSql()); builder.append(" where "); builder.append(field.getColumn()); builder.append(" = "); builder.append(field.getSqlLiteral(object)); object.load(this, builder.toString()); }
public final LentilCursor load(final LentilClass lclass) { return lclass.load(this); }
public final int delete(final LentilClass lclass) { return lclass.delete(this); }