public class RatingFormulaScript
extends com.accela.aa.emse.dom.service.BaseAAScript
implements java.io.Serializable, com.accela.aa.emse.dom.service.RatingFormulaScriptService
Accela Automation
File: RatingFormulaScript.java
Accela, Inc.
Copyright (C): 2008-2014
Description:
TODO
Notes:
$Id: RatingFormulaScript.java 270462 2014-04-28 10:05:58Z ..\rain.wang $
Revision History
<Date>, <Who>, <What>
Oct 17, 2008 Amy Shi Initial.
| Constructor and Description |
|---|
RatingFormulaScript()
Instantiates a new rating formula script.
|
RatingFormulaScript(java.lang.String serviceProviderCode,
java.lang.String auditID,
com.accela.aa.emse.dom.service.CachedService cachedService)
Deprecated.
|
RatingFormulaScript(java.lang.String serviceProviderCode,
java.lang.String auditID,
java.lang.String scriptText)
Construct method.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addDate(java.lang.String startDate,
long addDays)
addDate(Date date, int day ) Add or subtract date for some days.
|
static void |
addDatePatterns(java.util.Collection<java.lang.String> patterns)
Add other date patterns into DATE_PATTERNS
|
java.util.List |
createParamList()
Create a new lookup table query parameter.
|
long |
diffDate(java.lang.String startDate,
java.lang.String endDate)
Calculate how many days data1 before data2
|
java.lang.String |
getCallerID() |
java.util.HashMap<java.lang.String,com.accela.ams.rating.RatingFormulaFieldModel> |
getInputParams() |
java.lang.Double |
getReturnRating()
Set the portlet field into the 1st record of return list.
|
java.lang.String |
getScriptText() |
java.lang.String |
getServiceProviderCode()
Get serviceProviderCode
|
com.accela.ams.rating.RatingFormulaFieldModel |
getValue(java.lang.String variableKey)
Get expession field by variableKey.
|
java.util.Date |
parseDate(java.lang.String dateString)
Parser date string into java.util.Date
|
java.lang.Double |
runExpression(java.lang.String sqlStr,
java.util.List<java.lang.String> sqlParams)
Execute runExpression() function.
|
void |
setCallerID(java.lang.String auditID) |
void |
setInputParams(java.util.HashMap<java.lang.String,com.accela.ams.rating.RatingFormulaFieldModel> inputParams) |
void |
setReturnRating(java.lang.Double ratingValue)
Set the portlet field into the 1st record of return list.
|
void |
setScriptText(java.lang.String scriptText) |
void |
setServiceProviderCode(java.lang.String serviceProviderCode) |
void |
setValue(java.lang.String key,
com.accela.ams.rating.RatingFormulaFieldModel value) |
public RatingFormulaScript(java.lang.String serviceProviderCode,
java.lang.String auditID,
com.accela.aa.emse.dom.service.CachedService cachedService)
throws com.accela.aa.exception.AAException
serviceProviderCode - the service provider codeauditID - the audit idcom.accela.aa.exception.AAException - The AA exceptionpublic RatingFormulaScript()
throws com.accela.aa.exception.AAException
com.accela.aa.exception.AAException - The AA exceptionpublic RatingFormulaScript(java.lang.String serviceProviderCode,
java.lang.String auditID,
java.lang.String scriptText)
throws com.accela.aa.exception.AAException
serviceProviderCode - the service provider codescriptText - the script textauditID - the audit idcom.accela.aa.exception.AAException - The AA exceptionpublic java.lang.String getCallerID()
getCallerID in interface com.accela.aa.emse.dom.service.RatingFormulaScriptServicepublic void setCallerID(java.lang.String auditID)
setCallerID in interface com.accela.aa.emse.dom.service.RatingFormulaScriptServicepublic java.lang.String getServiceProviderCode()
com.accela.aa.emse.dom.service.BaseAAScriptgetServiceProviderCode in interface com.accela.aa.emse.dom.service.RatingFormulaScriptServicegetServiceProviderCode in class com.accela.aa.emse.dom.service.BaseAAScriptpublic void setServiceProviderCode(java.lang.String serviceProviderCode)
setServiceProviderCode in interface com.accela.aa.emse.dom.service.RatingFormulaScriptServicesetServiceProviderCode in class com.accela.aa.emse.dom.service.BaseAAScriptpublic java.lang.String getScriptText()
getScriptText in interface com.accela.aa.emse.dom.service.RatingFormulaScriptServicepublic void setScriptText(java.lang.String scriptText)
setScriptText in interface com.accela.aa.emse.dom.service.RatingFormulaScriptServicepublic java.util.HashMap<java.lang.String,com.accela.ams.rating.RatingFormulaFieldModel> getInputParams()
getInputParams in interface com.accela.aa.emse.dom.service.RatingFormulaScriptServicepublic void setInputParams(java.util.HashMap<java.lang.String,com.accela.ams.rating.RatingFormulaFieldModel> inputParams)
setInputParams in interface com.accela.aa.emse.dom.service.RatingFormulaScriptServicepublic com.accela.ams.rating.RatingFormulaFieldModel getValue(java.lang.String variableKey)
getValue in interface com.accela.aa.emse.dom.service.RatingFormulaScriptServicevariableKey - the variable keypublic void setValue(java.lang.String key,
com.accela.ams.rating.RatingFormulaFieldModel value)
setValue in interface com.accela.aa.emse.dom.service.RatingFormulaScriptServicepublic void setReturnRating(java.lang.Double ratingValue)
setReturnRating in interface com.accela.aa.emse.dom.service.RatingFormulaScriptServiceratingValue - the rating valuepublic java.lang.Double getReturnRating()
getReturnRating in interface com.accela.aa.emse.dom.service.RatingFormulaScriptServicepublic java.util.List createParamList()
createParamList in interface com.accela.aa.emse.dom.service.RatingFormulaScriptServicepublic java.lang.Double runExpression(java.lang.String sqlStr,
java.util.List<java.lang.String> sqlParams)
throws java.lang.Exception
runExpression in interface com.accela.aa.emse.dom.service.RatingFormulaScriptServicesqlStr - the sql strsqlParams - the sql paramsjava.lang.Exception - the exceptionpublic java.lang.String addDate(java.lang.String startDate,
long addDays)
throws com.accela.aa.exception.AAException
addDate in interface com.accela.aa.emse.dom.service.RatingFormulaScriptServicestartDate - - the data to be added. Date formate MM/DD/YYYY, for example 04/29/2008addDays - the add dayscom.accela.aa.exception.AAException - the AA exceptionpublic long diffDate(java.lang.String startDate,
java.lang.String endDate)
throws com.accela.aa.exception.AAException
diffDate in interface com.accela.aa.emse.dom.service.RatingFormulaScriptServicestartDate - - Date formate MM/DD/YYYY, for example: 04/29/2008endDate - - Date formate MM/DD/YYYY, for example: 04/29/2008java.lang.Exceptioncom.accela.aa.exception.AAExceptionpublic java.util.Date parseDate(java.lang.String dateString)
throws java.text.ParseException
parseDate in interface com.accela.aa.emse.dom.service.RatingFormulaScriptServicedateString - the date stringjava.text.ParseException - the parse exceptionpublic static void addDatePatterns(java.util.Collection<java.lang.String> patterns)
patterns -