7Supported Classes and Methods for Use in Groovy

Supported Classes and Methods for Use in Groovy Scripts

When writing Groovy scripts, you may only use the classes and methods that are documented in the table below. Using any other class or method may work initially, but will throw a runtime 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()

Table Groovy Allowed Classes, Methods, and Packages

Class Name

Allowed Methods

Package

ADFContext

  • getLocale()

  • getSecurityContext()

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()

  • 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 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

Hashtable

  • 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

Number

  • abs()

  • and()

  • compareTo()

  • div()

  • downto()

  • intdiv()

  • leftShift()

  • minus()

  • mod()

  • multiply()

  • next()

  • or()

  • plus()

  • power()

  • previous()

  • rightShift()

  • rightShiftUnsigned()

  • step()

  • times()

  • toBigDecimal()

  • toBigInteger()

  • toDouble()

  • toInteger()

  • toLong()

  • unaryMinus()

  • upto()

  • xor()

java.lang

Object

  • any()

  • asBoolean()

  • asType()

  • collect()

  • each()

  • eachWithIndex()

  • every()

  • find()

  • findAll()

  • findIndexOf()

  • findIndexValues()

  • findLastIndexOf()

  • findResult()

  • getAt()

  • grep()

  • identity()

  • inject()

  • inspect()

  • is()

  • isCase()

  • iterator()

  • print()

  • printf()

  • println()

  • putAt()

  • split()

  • sprintf()

  • toString()

  • with()

java.lang

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()

  • getOriginalAttributeValue()

  • getPrimaryRowState()

  • getSelectedListDisplayValue()

  • getSelectedListDisplayValues()

  • getStructureDef()

  • isAttributeChanged()

  • isAttributeUpdateable()

  • remove()

  • revertRow()

  • revertRowAndContainees()

  • setAttribute()

  • setAttributeValues()

  • setAttributeValuesFromMap()
  • validate()

oracle.jbo

RowId

  • Any constructor

  • Any method

java.sql

RowIterator

  • createAndInitRow()

  • createAndInitRowFromMap()
  • 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()

  • isUserInRole()

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

Timestamp

  • Any constructor

  • Any method

java.sql

Timestamp

  • 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()

  • getWirelessAccountNumber()

oracle.adf.share.security.identitymanagment

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