sentence: apache derby ( previously distributed as ibm cloudscape ) is a relational database management system ( rdbms ) developed by the apache software foundation that can be embedded in java programs and used for online transaction processing .