public class MX1TableBeanUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
MX1TableBeanUtils.FakeInquiry
Fake implementation of an inquiry.
|
protected static class |
MX1TableBeanUtils.FakeInquiryIndented
Creates a fake inquiry used to load a TableBean with row information from
an IndentedTableBean
|
Constructor and Description |
---|
MX1TableBeanUtils() |
Modifier and Type | Method and Description |
---|---|
static TableBean<? extends TableData> |
createTableBean(java.lang.Object tableBean,
java.lang.String timeStamp,
java.lang.String rootOid)
Creates a TableBean instance from a MX1 tablebean.
|
static TableBean<? extends TableData> |
createTableBean(java.lang.Object tableBean,
java.lang.String timeStamp,
java.lang.String rootOid,
boolean forceTableChange)
Creates a table bean and forces a table change.
|
public static TableBean<? extends TableData> createTableBean(java.lang.Object tableBean, java.lang.String timeStamp, java.lang.String rootOid) throws TVCException
Creates a TableBean instance from a MX1 tablebean.
Since we didn't want to have dependencies to MatrixOne JAR files during compile time of TVC, the Matrix One tablebean instance is passed as an Object, and we use reflection to execute methods on this object.
Following code illustrates how to use this functionality:
HttpSession session = request.getSession();
String timeStamp = request.getParameter(RequestParameters.TIME_STAMP_PARAM);
Object tableBean = session.getAttribute("tableBean");
String rootOid = request.getParameter("objectId");
TableBean tb = MX1TableBeanUtils.createTableBean(tableBean, timeStamp, rootOid);
tableBean
- An MatrixOne tablebean instance.timeStamp
- The timestamp parameter used to get the table datarootOid
- The object id of the root item in the tableTVCException
public static TableBean<? extends TableData> createTableBean(java.lang.Object tableBean, java.lang.String timeStamp, java.lang.String rootOid, boolean forceTableChange) throws TVCException
TVCException
createTableBean(Object,String,String)
Copyright ? Technia AB. All Rights Reserved.