Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-expression-widget@91782 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
dbcd0f235e
commit
7aabcf2fd6
|
@ -31,6 +31,8 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expressi
|
|||
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnDataType;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnTypeMap;
|
||||
|
||||
import com.allen_sauer.gwt.log.client.Log;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
@ -48,6 +50,7 @@ public class OperatorTypeMap {
|
|||
}
|
||||
|
||||
public C_Expression map(ColumnData column,C_OperatorType operatorType, String firstArg, String secondArg){
|
||||
Log.debug("OperatorTypeMap Map");
|
||||
C_Expression exp=null;
|
||||
if(column.getTrId()==null){
|
||||
exp=mapPlaceHolder(column,operatorType,firstArg,secondArg);
|
||||
|
@ -58,12 +61,16 @@ public class OperatorTypeMap {
|
|||
}
|
||||
|
||||
public C_Expression mapPlaceHolder(ColumnData column,C_OperatorType operatorType, String firstArg, String secondArg){
|
||||
Log.debug("OperatorTypeMap Map Place Holder");
|
||||
C_Expression exp = null;
|
||||
|
||||
Log.debug("Column Data Type Name:"+column.getDataTypeName());
|
||||
ColumnDataType dataType=ColumnTypeMap.getColumnDataType(column.getDataTypeName());
|
||||
Log.debug("Data Type:"+dataType);
|
||||
|
||||
C_ColumnReferencePlaceholder placeHolder=new C_ColumnReferencePlaceholder(dataType
|
||||
, column.getColumnId());
|
||||
Log.debug("placeHolder:"+placeHolder);
|
||||
|
||||
List<TD_Value> arguments=new ArrayList<TD_Value>();
|
||||
TD_Value fArg;
|
||||
TD_Value sArg;
|
||||
|
@ -232,12 +239,18 @@ public class OperatorTypeMap {
|
|||
|
||||
|
||||
public C_Expression mapTypedColumnReference(ColumnData column,C_OperatorType operatorType, String firstArg, String secondArg){
|
||||
Log.debug("OperatorTypeMap Map Typed Column Reference");
|
||||
C_Expression exp = null;
|
||||
|
||||
Log.debug("Column Data Type Name:"+column.getDataTypeName());
|
||||
ColumnDataType dataType=ColumnTypeMap.getColumnDataType(column.getDataTypeName());
|
||||
Log.debug("Data Type:"+dataType);
|
||||
|
||||
C_TypedColumnReference columnReference=new C_TypedColumnReference(column.getTrId(), dataType
|
||||
, column.getColumnId());
|
||||
Log.debug("Typed Column Reference:"+columnReference);
|
||||
|
||||
|
||||
List<TD_Value> arguments=new ArrayList<TD_Value>();
|
||||
TD_Value fArg;
|
||||
TD_Value sArg;
|
||||
|
|
Loading…
Reference in New Issue