Classes and Methods Supported in Groovy Scripts

Groovy is a standard, dynamic scripting language for the Java platform for which Application Composer provides support. This topic covers the supported classes and methods for use in Groovy scripts.

Classes and Methods

When writing Groovy scripts, you may only use the classes and methods that are documented in the following table. Using any other class or method may work initially, but will throw a run time exception when you migrate your code to later versions. Therefore, we strongly suggest that you ensure the Groovy code you write adheres to the classes and methods shown here.

For each class, in addition to the method names listed in the table, the following method names are also allowed:

  • equals()

  • hashCode()

  • toString()

In contrast, the following methods are never allowed on any object:

  • finalize()

  • getClass()

  • getMetaClass()

  • notify()

  • notifyAll()

  • wait()

Note: The following supported classes and methods will expand over time depending on customer requirements and business need. Thus, periodically review this table to assess what is newly supported in each release.

Class Name

Allowed Methods

Package

ADFContext

getLocale()

getSecurityContext()

getUserRoles()

isUserInRole()

oracle.adf.share

Array

Any constructor

Any method

java.sql

Array

getArray()

getElemType()

getList()

oracle.jbo.domain

ArrayList

Any constructor

Any method

java.util

Arrays

Any constructor

Any method

java.util

AttributeDef

getAttributeKind()

getIndex()

getJavaType()

getName()

getPrecision()

getProperty()

getScale()

getUIHelper()

getUpdateableFlag()

isMandatory()

isQueriable()

oracle.jbo

AttributeHints

getControlType()

getDisplayHeight()

getDisplayHint()

getDisplayWidth()

getFormat()

getFormattedAttribute()

getFormatter()

getFormatterClassName()

getHint()

getLocaleName()

parseFormattedAttribute()

oracle.jbo

AttributeList

getAttribute()

getAttributeIndexOf()

getAttributeNames()

setAttribute()

oracle.jbo

BaseLobDomain

closeCharacterStream()

closeInputStream()

closeOutputStream()

getInputStream()

getLength()

getOutputStream()

getcharacterStream()

oracle.jbo.domain

BigDecimal

Any constructor

Any method

java.math

BigInteger

Any constructor

Any method

java.math

BitSet

Any constructor

Any method

java.util

Blob

Any constructor

Any method

java.sql

BlobDomain

Any constructor

getBinaryOutputStream()

getBinaryStream()

getBufferSize()

oracle.jbo.domain

Boolean

Any constructor

Any method

java.lang

Byte

Any constructor

Any method

java.lang

Calendar

Any constructor

Any method

java.util

Char

Any constructor

bigDecimalValue()

bigIntegerValue()

booleanValue()

doubleValue()

floatValue()

getValue()

intValue()

longValue()

oracle.jbo.domain

Clob

Any constructor

Any method

java.sql

ClobDomain

Any constructor

toCharArray()

oracle.jbo.domain

Collection

Any constructor

Any method

java.util

Collections

Any constructor

Any method

java.util

Comparator

Any constructor

Any method

java.util

Currency

Any constructor

Any method

java.util

DBSequence

Any constructor

getValue()

oracle.jbo.domain

Date

Any constructor

Any method

java.util

Date

Any constructor

Any method

java.sql

Date

Any constructor

compareTo()

dateValue()

getValue()

stringValue()

timeValue()

timestampValue()

oracle.jbo.domain

Dictionary

Any constructor

Any method

java.util

Double

Any constructor

Any method

java.lang

Enum

Any constructor

Any method

java.lang

EnumMap

Any constructor

Any method

java.util

EnumSet

Any constructor

Any method

java.util

Enumeration

Any constructor

Any method

java.util

EventListener

Any constructor

Any method

java.util

EventListenerProxy

Any constructor

Any method

java.util

EventObject

Any constructor

Any method

java.util

Exception

Any constructor

Any method

java.lang

ExprValueErrorHandler

addAttribute()

clearAttributes()

raise()

raiseLater()

warn()

oracle.jbo

Float

Any constructor

Any method

java.lang

Formattable

Any constructor

Any method

java.util

FormattableFlags

Any constructor

Any method

java.util

Formatter

Any constructor

Any method

java.util

GregorianCalendar

Any constructor

Any method

java.util

HashMap

Any constructor

Any method

java.util

HashSet

Any constructor

Any method

java.util

Hash table

Any constructor

Any method

java.util

IdentityHashMap

Any constructor

Any method

java.util

Integer

Any constructor

Any method

java.lang

Iterator

Any constructor

Any method

java.util

JboException

getDetails()

getErrorCode()

getErrorParameters()

getLocalizedMessage()

getMessage()

getProductCode()

getProperty()

oracle.jbo

JboWarning

Any constructor

getDetails()

getErrorCode()

getErrorParameters()

getLocalizedMessage()

getMessage()

getProductCode()

getProperty()

oracle.jbo

Key

toStringFormat()

oracle.jbo

LinkedHashMap

Any constructor

Any method

java.util

LinkedHashSet

Any constructor

Any method

java.util

LinkedList

Any constructor

Any method

java.util

List

Any constructor

Any method

java.util

ListIterator

Any constructor

Any method

java.util

ListResourceBundle

Any constructor

Any method

java.util

Locale

Any constructor

Any method

java.util

Long

Any constructor

Any method

java.lang

Map

Any constructor

Any method

java.util

Math

Any constructor

Any method

java.lang

MathContext

Any constructor

Any method

java.math

NClob

Any constructor

Any method

java.sql

NameValuePairs

Any constructor

getAttribute()

getAttributeIndexOf()

getAttributeNames()

setAttribute()

oracle.jbo

NativeTypeDomainInterface

getNativeObject()

oracle.jbo.domain

Number

Any constructor

bigDecimalValue()

bigIntegerValue()

booleanValue()

byteValue()

doubleValue()

floatValue()

getValue()

intValue()

longValue()

shortValue()

oracle.jbo.domain

Observable

Any constructor

Any method

java.util

Observer

Any constructor

Any method

java.util

PriorityQueue

Any constructor

Any method

java.util

Properties

Any constructor

Any method

java.util

PropertyPermission

Any constructor

Any method

java.util

PropertyResourceBundle

Any constructor

Any method

java.util

Queue

Any constructor

Any method

java.util

Random

Any constructor

Any method

java.util

RandomAccess

Any constructor

Any method

java.util

Ref

Any constructor

Any method

java.sql

ResourceBundle

Any constructor

Any method

java.util

Row

getAttribute()

getAttributeHints()

getKey()

getLookupDescription()
Note: This method is for a dynamic choice list field and the attribute name is the ID attribute of the dynamic choice list field, DCL FOREIGN KEY(ID_C). For example, a dynamic choice list field Test_c getLookupDescription('Test_Id_c'), which returns a dynamic choice list value.

getOriginalAttributeValue()

getPrimaryRowState()

getSelectedListDisplayValue()

getSelectedListDisplayValues()

isAttributeChanged()

isAttributeUpdateable()

remove()

revertRow()

revertRowAndContainees()

setAttribute()

validate()

oracle.jbo

RowId

Any constructor

Any method

java.sql

RowIterator

createAndInitRow()

createRow()

findByKey()

findRowsMatchingCriteria()

first()

getAllRowsInRange()

getCurrentRow()

getEstimatedRowCount()

hasNext()

hasPrevious()

insertRow()

last()

next()

previous()

reset()

oracle.jbo

RowSet

avg()

count()

createAndInitRow()

createRow()

executeQuery()

findByKey()

findRowsMatchingCriteria()

first()

getAllRowsInRange()

getCurrentRow()

getEstimatedRowCount()

hasNext()

hasPrevious()

insertRow()

last()

max()

min()

next()

previous()

reset()

sum()

oracle.jbo

Scanner

Any constructor

Any method

java.util

SecurityContext

getUserName()

getUserProfile()

oracle.adf.share.security

Session

getLocale()

getLocaleContext()

getUserData()

oracle.jbo

Set

Any constructor

Any method

java.util

Short

Any constructor

Any method

java.lang

Short

Any constructor

Any method

java.lang

SimpleTimeZone

Any constructor

Any method

java.util

SortedMap

Any constructor

Any method

java.util

SortedSet

Any constructor

Any method

java.util

Stack

Any constructor

Any method

java.util

StackTraceElement

Any constructor

Any method

java.lang

StrictMath

Any constructor

Any method

java.lang

String

Any constructor

Any method

java.lang

StringBuffer

Any constructor

Any method

java.lang

StringBuilder

Any constructor

Any method

java.lang

StringTokenizer

Any constructor

Any method

java.util

Struct

Any constructor

Any method

java.sql

Struct

getAttribute()

setAttribute()

oracle.jbo.domain

StructureDef

findAttributeDef()

getAttributeIndexOf()

oracle.jbo

Time

Any constructor

Any method

java.sql

TimeZone

Any constructor

Any method

java.util

Timer

Any constructor

Any method

java.util

TimerTask

Any constructor

Any method

java.util

Time stamp

Any constructor

Any method

java.sql

Time stamp

Any constructor

compareTo()

dateValue()

getValue()

stringValue()

timeValue()

timestampValue()

oracle.jbo.domain

TreeMap

Any constructor

Any method

java.util

TreeSet

Any constructor

Any method

java.util

UUID

Any constructor

Any method

java.util

UserProfile

getBusinessCity()

getBusinessCountry()

getBusinessEmail()

getBusinessFax()

getBusinessMobile()

getBusinessPOBox()

getBusinessPager()

getBusinessPhone()

getBusinessPostalAddr()

getBusinessPostalCode()

getBusinessState()

getBusinessStreet()

getDateofBirth()

getDateofHire()

getDefaultGroup()

getDepartment()

getDepartmentNumber()

getDescription()

getDisplayName()

getEmployeeNumber()

getEmployeeType()

getFirstName()

getGUID()

getGivenName()

getHomeAddress()

getHomePhone()

getInitials()

getJpegPhoto()

getLastName()

getMaidenName()

getManager()

getMiddleName()

getName()

getNameSuffix()

getOrganization()

getOrganizationalUnit()

getPreferredLanguage()

getPrincipal()

getProperties()

getProperty()

getTimeZone()

getTitle()

getUIAccessMode()

getUniqueName()

getUserID()

getUserName()

getWirelessAcctNumber()

oracle.adf.share.security.identitymanagment

Note: Some of these methods may return null if the corresponding attribute of the user record is not populated in the identity store or if the identity provider does not support those methods.

UserProfile

getUserPartyId()

oracle.apps.cdm.foundation.publicModel.common.util.HzSessionUtil

ValidationException

getDetails()

getErrorCode()

getErrorParameters()

getLocalizedMessage()

getMessage()

getProductCode()

getProperty()

oracle.jbo

Vector

Any constructor

Any method

java.util

ViewCriteria

createAndInitRow()

createRow()

createViewCriteriaRow()

findByKey()

findRowsMatchingCriteria()

first()

getAllRowsInRange()

getCurrentRow()

getEstimatedRowCount()

hasNext()

hasPrevious()

insertRow()

last()

next()

previous()

reset()

oracle.jbo

ViewCriteriaItem

getValue()

makeCompound()

setOperator()

setUpperColumns()

setValue()

oracle.jbo

ViewCriteriaItemCompound

ensureItem()

getValue()

makeCompound()

setOperator()

setUpperColumns()

setValue()

oracle.jbo

ViewCriteriaRow

ensureCriteriaItem()

getConjunction()

isUpperColumns()

setConjunction()

setUpperColumns()

oracle.jbo

ViewObject

appendViewCriteria()

avg()

count()

createAndInitRow()

createRow()

createViewCriteria()

executeQuery()

findByKey()

findRowsMatchingCriteria()

first()

getAllRowsInRange()

getCurrentRow()

getEstimatedRowCount()

getMaxFetchSize()

hasNext()

hasPrevious()

insertRow()

last()

max()

min()

next()

previous()

reset()

setMaxFetchSize()

setSortBy()

sum()

oracle.jbo

WeakHashMap

Any constructor

Any method

java.util