NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

Entity
package com.highradius.payrad.data.model;

import java.util.Date;

public class PRGTProcessorMigrationConfig implements java.io.Serializable {

/**
*
*/
private static final long serialVersionUID = -6751719023399790480L;
private Integer pkPrGtProcessorMigrationConfigId;
private Integer fkAccountId;
private Integer fromProcessor;
private Integer toProcessor;
private Date startDate;
private Date endDate;
private boolean deleted;
private String createUser;
private String updateUser;
private Date createTime;
private Date updateTime;

public Integer getPkPrGtProcessorMigrationConfigId() {
return pkPrGtProcessorMigrationConfigId;
}

public void setPkPrGtProcessorMigrationConfigId(Integer pkPrGtProcessorMigrationConfigId) {
this.pkPrGtProcessorMigrationConfigId = pkPrGtProcessorMigrationConfigId;
}

public Integer getFkAccountId() {
return fkAccountId;
}

public void setFkAccountId(Integer fkAccountId) {
this.fkAccountId = fkAccountId;
}

public Integer getFromProcessor() {
return fromProcessor;
}

public void setFromProcessor(Integer fromProcessor) {
this.fromProcessor = fromProcessor;
}

public Integer getToProcessor() {
return toProcessor;
}

public void setToProcessor(Integer toProcessor) {
this.toProcessor = toProcessor;
}

public Date getStartDate() {
return startDate;
}

public void setStartDate(Date startDate) {
this.startDate = startDate;
}

public Date getEndDate() {
return endDate;
}

public void setEndDate(Date endDate) {
this.endDate = endDate;
}

public boolean isDeleted() {
return deleted;
}

public void setDeleted(boolean deleted) {
this.deleted = deleted;
}

public String getCreateUser() {
return createUser;
}

public void setCreateUser(String createUser) {
this.createUser = createUser;
}

public String getUpdateUser() {
return updateUser;
}

public void setUpdateUser(String updateUser) {
this.updateUser = updateUser;
}

public Date getCreateTime() {
return createTime;
}

public void setCreateTime(Date createTime) {
this.createTime = createTime;
}

public Date getUpdateTime() {
return updateTime;
}

public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}

}


Manager
package com.highradius.payrad.manager;

import java.util.List;

import com.highradius.payrad.data.model.PRGTProcessorMigrationConfig;

public abstract interface PRGTProcessorMigrationConfigManager {

/**
* @param accountId
* @return
*/
public abstract List<PRGTProcessorMigrationConfig> getConfigsForAccountId(Integer accountId);

/**
* @param accountId
* @param deleted
* @return
*/
public abstract List<PRGTProcessorMigrationConfig> getConfigsForAccountId(Integer accountId, boolean deleted);

/**
* @param accountId
* @param fromProcessor
* @param toProcessor
* @return
*/
public abstract PRGTProcessorMigrationConfig getConfig(Integer accountId, Integer fromProcessor,
Integer toProcessor);

/**
* @param accountId
* @param fromProcessor
* @return
*/
public abstract PRGTProcessorMigrationConfig getConfigFromProcessor(Integer accountId, Integer fromProcessor);

}

Manager Impl
package com.highradius.payrad.manager.impl;

import java.util.List;

import com.highradius.payrad.dao.PRGTProcessorMigrationConfigDAO;
import com.highradius.payrad.manager.PRGTProcessorMigrationConfigManager;
import com.highradius.payrad.data.model.PRGTProcessorMigrationConfig;

public class PRGTProcessorMigrationConfigManagerImpl implements PRGTProcessorMigrationConfigManager {

private PRGTProcessorMigrationConfigDAO prGTProcessorMigrationConfigDAO;

public List<PRGTProcessorMigrationConfig> getConfigsForAccountId(Integer accountId) {
return prGTProcessorMigrationConfigDAO.getConfigsForAccountId(accountId);
}

public List<PRGTProcessorMigrationConfig> getConfigsForAccountId(Integer accountId, boolean deleted) {
return prGTProcessorMigrationConfigDAO.getConfigsForAccountId(accountId, deleted);
}

public PRGTProcessorMigrationConfig getConfig(Integer accountId, Integer fromProcessor, Integer toProcessor) {
return prGTProcessorMigrationConfigDAO.getConfig(accountId, fromProcessor, toProcessor);
}

public PRGTProcessorMigrationConfig getConfigFromProcessor(Integer accountId, Integer fromProcessor) {
return prGTProcessorMigrationConfigDAO.getConfigFromProcessor(accountId, fromProcessor);
}

public PRGTProcessorMigrationConfigDAO getPrGTProcessorMigrationConfigDAO() {
return prGTProcessorMigrationConfigDAO;
}

public void setPrGTProcessorMigrationConfigDAO(PRGTProcessorMigrationConfigDAO prGTProcessorMigrationConfigDAO) {
this.prGTProcessorMigrationConfigDAO = prGTProcessorMigrationConfigDAO;
}

}

DAO
package com.highradius.payrad.dao;

import java.util.List;

import com.highradius.payrad.data.model.PRGTProcessorMigrationConfig;

public abstract interface PRGTProcessorMigrationConfigDAO {

/**
* @param accountId
* @return
*/
public abstract List<PRGTProcessorMigrationConfig> getConfigsForAccountId(Integer accountId);

/**
* @param accountId
* @param deleted
* @return
*/
public abstract List<PRGTProcessorMigrationConfig> getConfigsForAccountId(Integer accountId, boolean deleted);

/**
* @param accountId
* @param fromProcessor
* @param toProcessor
* @return
*/
public abstract PRGTProcessorMigrationConfig getConfig(Integer accountId, Integer fromProcessor,
Integer toProcessor);

/**
* @param accountId
* @param fromProcessor
* @return
*/
public abstract PRGTProcessorMigrationConfig getConfigFromProcessor(Integer accountId, Integer fromProcessor);

}

DAO Impl
package com.highradius.payrad.dao.impl;

import java.util.List;

import org.apache.commons.collections4.CollectionUtils;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Restrictions;

import com.highradius.common.util.HRCLog;
import com.highradius.common.util.HRCLogFactory;
import com.highradius.payrad.dao.PRGTProcessorMigrationConfigDAO;
import com.highradius.payrad.data.model.PRGTProcessorMigrationConfig;
import com.hrc.pr.dao.impl.GenericHibernateDAOImpl;

public class PRGTProcessorMigrationConfigDAOImpl extends GenericHibernateDAOImpl<PRGTProcessorMigrationConfig, Integer>
implements PRGTProcessorMigrationConfigDAO {

private static final HRCLog LOGGER = HRCLogFactory.getLog(PRGTProcessorMigrationConfigDAOImpl.class);
private static final String FK_ACCOUNT_ID = "fkAccountId";
private static final String DELETED = "deleted";

public List<PRGTProcessorMigrationConfig> getConfigsForAccountId(Integer accountId, boolean deleted) {

LOGGER.info(
"Entering getConfigsForAccountId() method with accountId = " + accountId + " and deleted = " + deleted);

DetachedCriteria criteria = DetachedCriteria.forClass(PRGTProcessorMigrationConfig.class);

criteria.add(Restrictions.eq(FK_ACCOUNT_ID, accountId));
criteria.add(Restrictions.eq(DELETED, deleted));
LOGGER.info("Finding processors by criteria");
return findByCriteria(criteria);

}

public List<PRGTProcessorMigrationConfig> getConfigsForAccountId(Integer accountId) {
LOGGER.info("Entering getConfigsForAccountId() method with accountId = " + accountId);
return getConfigsForAccountId(accountId, false);
}

public PRGTProcessorMigrationConfig getConfig(Integer accountId, Integer fromProcessor, Integer toProcessor) {

LOGGER.info("Entering getConfig() method with processor id => " + accountId);

PRGTProcessorMigrationConfig processorMigrationConfig = null;
DetachedCriteria criteria = DetachedCriteria.forClass(PRGTProcessorMigrationConfig.class);

criteria.add(Restrictions.eq(FK_ACCOUNT_ID, accountId));
criteria.add(Restrictions.eq("fromProcessor", fromProcessor));
criteria.add(Restrictions.eq("toProcessor", toProcessor));
criteria.add(Restrictions.eq(DELETED, false));
LOGGER.info("Finding processor migration configurations by criteria");
List<PRGTProcessorMigrationConfig> list = findByCriteria(criteria);
if (CollectionUtils.isNotEmpty(list)) {
processorMigrationConfig = list.get(0);
}
return processorMigrationConfig;
}

public PRGTProcessorMigrationConfig getConfigFromProcessor(Integer accountId, Integer fromProcessor) {

LOGGER.info("Entering getConfigFromProcessor() method with processor id => " + accountId);

PRGTProcessorMigrationConfig processorMigrationConfig = null;
DetachedCriteria criteria = DetachedCriteria.forClass(PRGTProcessorMigrationConfig.class);

criteria.add(Restrictions.eq(FK_ACCOUNT_ID, accountId));
criteria.add(Restrictions.eq("fromProcessor", fromProcessor));
criteria.add(Restrictions.eq(DELETED, false));
LOGGER.info("Finding processor migration configurations by criteria");
List<PRGTProcessorMigrationConfig> list = findByCriteria(criteria);
if (CollectionUtils.isNotEmpty(list)) {
processorMigrationConfig = list.get(0);
}
return processorMigrationConfig;
}

}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.