
org.activiti.engine.impl.cmd.GetTableNameCmd Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of activiti-engine Show documentation
Show all versions of activiti-engine Show documentation
workflow engine base on bboss and activiti.
The newest version!
package org.activiti.engine.impl.cmd;
import java.io.Serializable;
import org.activiti.engine.ActivitiException;
import org.activiti.engine.ActivitiIllegalArgumentException;
import org.activiti.engine.impl.interceptor.Command;
import org.activiti.engine.impl.interceptor.CommandContext;
public class GetTableNameCmd implements Command, Serializable {
private static final long serialVersionUID = 1L;
private Class> entityClass;
public GetTableNameCmd(Class< ? > entityClass) {
this.entityClass = entityClass;
}
public String execute(CommandContext commandContext) {
if(entityClass == null) {
throw new ActivitiIllegalArgumentException("entityClass is null");
}
return commandContext
.getTableDataManager()
.getTableName(entityClass, true);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy