com.wizarius.orm.database.postgres.actions.PostgresDBDelete Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wizarius-orm Show documentation
Show all versions of wizarius-orm Show documentation
Java orm for Postgres or Mysql with migration system and connection pool
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;
}
}