Business Service Property Utility Classes

These utility classes are available for the business service property:

  • ServicePropertyAccess

  • ServicePropertyException

You use ServicePropertyAccess to access property values.

You use ServicePropertyException to find and handle errors when accessing business service properties.

You use these two APIs to retrieve a business service property:

  • Public static String getSvcPropertyValue(Context context, String key) throws ServicePropertyException.

    • Retrieves the property value for a given key.

    • Requires context to obtain connection to the JD Edwards EnterpriseOne database.

    • Returns the value stored in the database.

    • Throws ServicePropertyException if an error occurs.

  • Public static String getSvcPropertyValue(Context context, String key, String defaultVal) throws ServicePropertyException.

    • Retrieves the property value for a given key.

    • Requires context to obtain connection to the JD Edwards EnterpriseOne database.

    • Returns the value stored in the database if it is not null or blank.

    • Returns the passed default value if the value in the database is null or blank.

    • Throws ServicePropertyException if an error occurs.