public abstract class AbstractERPSupport extends Object
Constructor and Description |
---|
AbstractERPSupport() |
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Function<String,String> |
ensureMaxLength(int maxLength) |
static String |
formatAccountId(String accountECCIdasString) |
static String |
formatDate(Object value,
TimeZone... tz) |
static String |
getBaseUri(String eccDestination) |
static com.sap.conn.jco.JCoFunction |
getReqFunction(com.sap.conn.jco.JCoRepository repository,
String functionName)
Tries to fetch the function with the given name from the given
repository.
|
static com.sap.conn.jco.JCoDestination |
getRFCDestination(String eccDestination) |
static com.google.common.base.Supplier<String> |
numberSupplier(int start,
int inc) |
public static com.google.common.base.Function<String,String> ensureMaxLength(int maxLength)
public static String formatAccountId(String accountECCIdasString) throws AppCustomException
AppCustomException
public static com.sap.conn.jco.JCoFunction getReqFunction(com.sap.conn.jco.JCoRepository repository, String functionName) throws com.sap.conn.jco.JCoException
VerifyException
is
thrown.repository
- the repository to use for fetching the functionfunctionName
- the name of the function to fetchcom.sap.conn.jco.JCoException
- in case of errors during retrievalcom.google.common.base.VerifyException
- if no function with the given name can be foundpublic static com.sap.conn.jco.JCoDestination getRFCDestination(String eccDestination) throws com.sap.conn.jco.JCoException
com.sap.conn.jco.JCoException
public static com.google.common.base.Supplier<String> numberSupplier(int start, int inc)