public static class AggregationInfo.CurrencyProcessing
extends java.lang.Object
loginEnv.getUsedCapabilities().add(AISClientCapability.DATA_SERVICE_AGGREGATION); DataRequest dataAggregation = new DataRequest(loginEnv); dataAggregation.setDataServiceType(DataRequest.TYPE_AGGREGATION); dataAggregation.setFindOnEntry(true); dataAggregation.setTargetName("F20112"); dataAggregation.setTargetType(DataRequest.TARGET_TABLE); AggregationInfo aggregation = new AggregationInfo(loginEnv); aggregation.addAggregationColumn("F20112.EXPFAMT", AggregationType.AGG_TYPE_SUM()); aggregation.addAggregationColumn("F20112.EXPFAMT", AggregationType.AGG_TYPE_AVG()); aggregation.addCount(); dataAggregation.setAggregation(aggregation); AggregationInfo.CurrencyProcessing currency = new AggregationInfo.CurrencyProcessing(loginEnv); currency.setType(AggregationInfo.CurrencyProcessing.CURRENCYCODE); currency.addToKeyCols("F20112.CRCD"); currency.addToCurrencyCols("F20112.EXPFAMT"); aggregation.setCurrency(currency); String response = JDERestServiceProvider.jdeRestServiceCall(loginEnv, dataAggregation, JDERestServiceProvider.POST_METHOD, JDERestServiceProvider.DATA_SERVICE_URI);
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AID |
static java.lang.String |
COMPANY |
static java.lang.String |
CURRENCYCODE |
static java.lang.String |
LEDGERTYPE_COMPANY_CURRENCYCODE |
static java.lang.String |
LEDGERTYPE_CURRENCYCODE |
static java.lang.String |
MCU |
static java.lang.String |
STATIC |
Constructor and Description |
---|
AggregationInfo.CurrencyProcessing(LoginEnvironment loginEnv) |
Modifier and Type | Method and Description |
---|---|
void |
addToCurrencyCols(java.lang.String currencyCol)
Deprecated.
As of release 1.6.0, replaced by
addToCurrencyCols(String table, String currencyCol) |
void |
addToCurrencyCols(java.lang.String table,
java.lang.String currencyCol)
Add to the list of columns the currency decimals will be applied to
|
void |
addToKeyCols(java.lang.String keyCol)
Deprecated.
As of release 1.6.0, replaced by
addToKeyCols(String table, String keyCol) |
void |
addToKeyCols(java.lang.String table,
java.lang.String keyCol)
Add to the list of key columns for currency processing
|
java.lang.String |
getAsIfCurrency() |
java.lang.String |
getAsIfDate() |
java.lang.String |
getCurrencyCode()
A static currency code, to be applied when static type is selected.
|
java.util.ArrayList<java.lang.String> |
getCurrencyCols()
The list of columns the specified type of currency processing will be applied to
|
java.util.ArrayList<java.lang.String> |
getKeyCols()
The list of key columns necessary to perform the specified type of currency processing
|
java.lang.String |
getType()
The type of currency processing, use the list of constants provided
|
void |
setAsIfCurrency(LoginEnvironment loginEnv,
java.lang.String asIfCurrency) |
void |
setAsIfDate(java.util.Date asIfDate) |
void |
setAsIfDate(java.lang.String asIfDate) |
void |
setCurrencyCode(java.lang.String currencyCode) |
void |
setCurrencyCols(java.util.ArrayList<java.lang.String> currencyCols) |
void |
setKeyCols(java.util.ArrayList<java.lang.String> keyCols) |
void |
setType(java.lang.String type) |
public static final java.lang.String COMPANY
public static final java.lang.String CURRENCYCODE
public static final java.lang.String MCU
public static final java.lang.String AID
public static final java.lang.String LEDGERTYPE_COMPANY_CURRENCYCODE
public static final java.lang.String LEDGERTYPE_CURRENCYCODE
public static final java.lang.String STATIC
public AggregationInfo.CurrencyProcessing(LoginEnvironment loginEnv) throws CapabilityException
CapabilityException
public void addToKeyCols(java.lang.String keyCol)
addToKeyCols(String table, String keyCol)
keyCol
- public void addToCurrencyCols(java.lang.String currencyCol)
addToCurrencyCols(String table, String currencyCol)
currencyCol
- public void addToKeyCols(java.lang.String table, java.lang.String keyCol)
keyCol
- public void addToCurrencyCols(java.lang.String table, java.lang.String currencyCol)
currencyCol
- public java.lang.String getType()
public void setType(java.lang.String type)
public java.lang.String getCurrencyCode()
public void setCurrencyCode(java.lang.String currencyCode)
public void setKeyCols(java.util.ArrayList<java.lang.String> keyCols)
public void setCurrencyCols(java.util.ArrayList<java.lang.String> currencyCols)
public java.util.ArrayList<java.lang.String> getKeyCols()
public java.util.ArrayList<java.lang.String> getCurrencyCols()
public void setAsIfCurrency(LoginEnvironment loginEnv, java.lang.String asIfCurrency) throws CapabilityException
CapabilityException
public java.lang.String getAsIfCurrency()
public void setAsIfDate(java.lang.String asIfDate)
public void setAsIfDate(java.util.Date asIfDate)
public java.lang.String getAsIfDate()
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.