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

com.wizarius.orm.database.postgres.actions.PostgresDBDelete 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.AbstractDBDelete;
import com.wizarius.orm.database.postgres.helpers.PostgresWritableHelper;

/**
 * Created by Vladyslav Shyshkin on 12.11.17.
 */
public class PostgresDBDelete extends AbstractDBDelete {
    /**
     * DB delete constructor
     *
     * @param fieldsMap fields map
     * @param db        database connection pool
     */
    public PostgresDBDelete(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 PostgresDBDelete getInstance() {
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy