All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.itranswarp.rdb.UpdateT Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
package com.itranswarp.rdb;

public class UpdateT {

    final UpdateInfo updateInfo;

    UpdateT(UpdateInfo updateInfo, Class beanClass) {
        updateInfo.beanClass = beanClass;
        updateInfo.beanMapper = Mappers.getMapper(beanClass);
        this.updateInfo = updateInfo;
    }

    public UpdateFieldsOnlyT fieldsOnly(String... fields) {
        return new UpdateFieldsOnlyT(this.updateInfo, fields);
    }

    public String dryRun() {
        return dryRun(false);
    }

    public String dryRun(boolean includeParams) {
        return new UpdateRunner(this.updateInfo).dryRun(includeParams);
    }

    public void run(T bean) {
        this.updateInfo.bean = bean;
        new UpdateRunner(this.updateInfo).run();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy