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

com.wizarius.orm.database.postgres.actions.PostgresDBUpdate Maven / Gradle / Ivy

There is a newer version: 0.0.27.3
Show newest version
package com.wizarius.orm.database.postgres.actions;

import com.wizarius.orm.database.DBConnectionPool;
import com.wizarius.orm.database.DBParsedFieldsList;
import com.wizarius.orm.database.actions.AbstractDBUpdate;
import com.wizarius.orm.database.postgres.helpers.PostgresWritableHelper;

/**
 * Created by Vladyslav Shyshkin on 12.11.17.
 */
public class PostgresDBUpdate extends AbstractDBUpdate {
    /**
     * DBSelect constructor
     *
     * @param fieldsMap fields map
     * @param db        database constructor
     */
    public PostgresDBUpdate(DBParsedFieldsList fieldsMap, DBConnectionPool db) {
        super(fieldsMap, db);
    }

    /**
     * Setup writable handlers for write action
     */
    @Override
    protected void setupWritableHandlers() {
        super.setupWritableHandlers();
        writableHandlers.putAll(PostgresWritableHelper.getWritableHandlers());
    }

    /**
     * Get abstract action instance
     *
     * @return abstract action instance
     */
    @Override
    public PostgresDBUpdate getInstance() {
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy