/*
* Action class
* Created on 17 d�c. 2012 ( Time 15:40:00 )
*/
package org.demo.employeegroup.action;
import org.demo.employeegroup.bean.EmployeeGroup;
import org.demo.employeegroup.service.EmployeeGroupServices;
import org.telosys.starterkits.strutsjpa.GenericAction;
import org.telosys.starterkits.strutsjpa.IServices;
import org.demo.employeegroup.bean.EmployeeGroupKey;
public class Actions extends GenericAction<EmployeeGroup, EmployeeGroupKey>
{
private static final long serialVersionUID = 1L;
private IServices<EmployeeGroup, EmployeeGroupKey> service = new EmployeeGroupServices();
private EmployeeGroup current = null ;
private EmployeeGroupKey restid = null;
public Actions() {
super();
if (LOG.isDebugEnabled()) {
LOG.debug("=== ACTION CONSTRUCTOR");
}
}
/*
* @see org.demo.action.GenericAction#getServices()
*/
protected IServices<EmployeeGroup, EmployeeGroupKey> getServices() {
return this.service;
}
/**
* Get current entity
* @return current entity
*/
public EmployeeGroup getCurrent() {
if (LOG.isDebugEnabled()) LOG.debug("getCurrent");
return this.current;
}
/**
* Set current entity
* @param currentIn entity
*/
public void setCurrent(final EmployeeGroup currentIn) {
if (LOG.isDebugEnabled()) LOG.debug("setCurrent");
this.current = currentIn;
}
/**
* Get restid
* @return restid
*/
public EmployeeGroupKey getRestid() {
if (LOG.isDebugEnabled()) LOG.debug("getRestid");
return restid;
}
/**
* Set restid
* @param id restid
*/
public void setRestid(final EmployeeGroupKey id) {
if (LOG.isDebugEnabled()) LOG.debug("setRestid");
this.restid = id;
}
@Override
protected EmployeeGroup getInnerCurrent() {
if (LOG.isDebugEnabled()) LOG.debug("getCurrent");
return this.current;
}
@Override
protected void setInnerCurrent(final EmployeeGroup currentIn) {
if (LOG.isDebugEnabled()) LOG.debug("setCurrent");
this.current = currentIn;
}
@Override
protected EmployeeGroupKey getInnerRestid() {
if (LOG.isDebugEnabled()) LOG.debug("getInnerRestid");
return this.restid;
}
@Override
protected void setInnerRestid(final EmployeeGroupKey id) {
if (LOG.isDebugEnabled()) LOG.debug("setInnerRestid");
this.restid = id;
}
}