it.eng.qbe.utility
Class CalculatedField

java.lang.Object
  extended by it.eng.qbe.utility.CalculatedField

public class CalculatedField
extends java.lang.Object

The Class CalculatedField.


Constructor Summary
CalculatedField()
           
 
Method Summary
 java.lang.Object calculate(groovy.util.GroovyScriptEngine gse, java.lang.Object[] record, groovy.lang.Binding binding)
          Calculate.
 void calculateMappings(IQuery query)
          Calculate mappings.
 boolean equals(java.lang.Object obj)
           
 java.lang.String getClassNameInQuery()
          Gets the class name in query.
 CalculatedField getCopy()
          Gets the copy.
 java.lang.String getEntityName()
          Gets the entity name.
 java.lang.String getFldCompleteNameInQuery()
          Gets the fld complete name in query.
 java.lang.String getFldLabel()
          Gets the fld label.
 java.lang.String getId()
          Gets the id.
 java.lang.String getInExport()
          Gets the in export.
 java.util.Map getMappingMap()
          Gets the mapping map.
 java.util.Map getMappingPositions()
          Gets the mapping positions.
 java.lang.String getMappings()
          Gets the mappings.
 java.lang.String getScript()
          Gets the script.
 void setClassNameInQuery(java.lang.String classNameInQuery)
          Sets the class name in query.
 void setEntityName(java.lang.String entityName)
          Sets the entity name.
 void setFldCompleteNameInQuery(java.lang.String fldCompleteNameInQuery)
          Sets the fld complete name in query.
 void setFldLabel(java.lang.String fldLabel)
          Sets the fld label.
 void setId(java.lang.String id)
          Sets the id.
 void setInExport(java.lang.String inExport)
          Sets the in export.
 void setMappingMap(java.util.Map mappingMap)
          Sets the mapping map.
 void setMappingPositions(java.util.Map mappingPositions)
          Sets the mapping positions.
 void setMappings(java.lang.String mappings)
          Sets the mappings.
 void setScript(java.lang.String script)
          Sets the script.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalculatedField

public CalculatedField()
Method Detail

getCopy

public CalculatedField getCopy()
Gets the copy.

Returns:
the copy

getEntityName

public java.lang.String getEntityName()
Gets the entity name.

Returns:
the entity name

setEntityName

public void setEntityName(java.lang.String entityName)
Sets the entity name.

Parameters:
entityName - the new entity name

getFldLabel

public java.lang.String getFldLabel()
Gets the fld label.

Returns:
the fld label

setFldLabel

public void setFldLabel(java.lang.String fldLabel)
Sets the fld label.

Parameters:
fldLabel - the new fld label

getMappings

public java.lang.String getMappings()
Gets the mappings.

Returns:
the mappings

setMappings

public void setMappings(java.lang.String mappings)
Sets the mappings.

Parameters:
mappings - the new mappings

calculateMappings

public void calculateMappings(IQuery query)
Calculate mappings.

Parameters:
query - the query

getScript

public java.lang.String getScript()
Gets the script.

Returns:
the script

setScript

public void setScript(java.lang.String script)
Sets the script.

Parameters:
script - the new script

calculate

public java.lang.Object calculate(groovy.util.GroovyScriptEngine gse,
                                  java.lang.Object[] record,
                                  groovy.lang.Binding binding)
                           throws java.lang.Exception
Calculate.

Parameters:
gse - the gse
record - the record
binding - the binding
Returns:
the object
Throws:
java.lang.Exception - the exception

getId

public java.lang.String getId()
Gets the id.

Returns:
the id

setId

public void setId(java.lang.String id)
Sets the id.

Parameters:
id - the new id

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getMappingMap

public java.util.Map getMappingMap()
Gets the mapping map.

Returns:
the mapping map

setMappingMap

public void setMappingMap(java.util.Map mappingMap)
Sets the mapping map.

Parameters:
mappingMap - the new mapping map

getMappingPositions

public java.util.Map getMappingPositions()
Gets the mapping positions.

Returns:
the mapping positions

setMappingPositions

public void setMappingPositions(java.util.Map mappingPositions)
Sets the mapping positions.

Parameters:
mappingPositions - the new mapping positions

getFldCompleteNameInQuery

public java.lang.String getFldCompleteNameInQuery()
Gets the fld complete name in query.

Returns:
the fld complete name in query

setFldCompleteNameInQuery

public void setFldCompleteNameInQuery(java.lang.String fldCompleteNameInQuery)
Sets the fld complete name in query.

Parameters:
fldCompleteNameInQuery - the new fld complete name in query

getClassNameInQuery

public java.lang.String getClassNameInQuery()
Gets the class name in query.

Returns:
the class name in query

setClassNameInQuery

public void setClassNameInQuery(java.lang.String classNameInQuery)
Sets the class name in query.

Parameters:
classNameInQuery - the new class name in query

getInExport

public java.lang.String getInExport()
Gets the in export.

Returns:
the in export

setInExport

public void setInExport(java.lang.String inExport)
Sets the in export.

Parameters:
inExport - the new in export