com.wizarius.orm.database.postgres.actions.PostgresDBUpdate 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.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;
}
}