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