Java in Adaptive Server provides you with:
Java user-defined functions (UDFs)
Java classes as datatypes in SQL