ApiVersion |
- Type
- double
- Properties
- Create, Filter, Sort, Update
- Description
- The API version for this class. Every class has an API version specified at
creation.
|
Body |
- Type
- textarea
- Properties
- Create, Nillable, Update
- Description
- The data for the Apex class.
|
BodyCrc |
- Type
- double
- Properties
- Create, Defaulted on create, Filter, Nillable, Sort, Update
- Description
- The CRC (cyclic redundancy check) of the class or trigger file
|
FullName |
- Type
- string
- Properties
- Group, Nillable
- Description
- The full name of the associated object in the Metadata API. Use to avoid race
conditions on create, before you have IDs.
- Query this field only if the query result contains no
more than one record. Otherwise, an error is returned. If more than one record
exists, use multiple queries to retrieve the records. This limit protects
performance.
|
IsValid |
- Type
- boolean
- Properties
- Create, Defaulted on create, Filter, Group, Sort, Update
- Description
- Indicates whether any dependent metadata has changed since the
class was last compiled (true) or not (false). The default value is false.
|
LengthWithoutComments |
- Type
- int
- Properties
- Create, Filter, Group, Sort, Update
- Description
-
Length of the class without comments.
|
ManageableState |
- Type
- ManageableState enumerated list
- Properties
- Filter, Group, Nillable, Restricted picklist, Sort
- Description
- Indicates the manageable state of the specified component that is contained
in a package:
- beta
- deleted
- deprecated
- deprecatedEditable
- installed
- installedEditable
- released
- unmanaged
This field is available in API version 38.0 and later.
|
Metadata |
- Type
- ApexClassMetadata
- Properties
- Create, Nillable, Update
- Description
- An object that describes the version, status, and packaged versions of the
corresponding Apex class.
- Query this field only if the query result contains no
more than one record. Otherwise, an error is returned. If more than one record
exists, use multiple queries to retrieve the records. This limit protects
performance.
|
Name |
- Type
- string
- Properties
- Create, Filter, Group, Sort, Update
- Description
-
Name of the class.
Limit: 255 characters
|
NamespacePrefix |
- Type
- string
- Properties
- Filter, Group, Nillable, Sort
- Description
- The namespace prefix associated with this object. Each Developer Edition organization
that creates a managed package has a unique namespace prefix. Limit: 15 characters. You
can refer to a component in a managed package by using the namespacePrefix__componentName
notation.
The namespace prefix can have one of the following values:
- In Developer Edition organizations, the namespace prefix is set to the namespace
prefix of the organization for all objects that support it. There’s an exception if an
object is in an installed managed package. In that case, the object has the namespace
prefix of the installed managed package. This field’s value is the namespace prefix of
the Developer Edition organization of the package developer.
- In organizations that aren’t Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an
installed managed package. There’s no namespace prefix for all other objects.
|
Status |
- Type
- picklist
- Properties
- Create, Filter, Group, Restricted picklist, Sort, Update
- Description
- The current status of the Apex class. Valid values are:
-
Active—The class is active.
-
Deleted—The class is marked for
deletion. This status is useful for managed packages, because it allows a class to be
deleted when a managed package is updated.
-
Inactive—This option is unused and is
only supported for ApexTrigger. For more information, see the Metadata API Developer
Guide.
|
SymbolTable |
- Type
- SymbolTable
- Properties
- Nillable
- Description
- A complex type that represents all user-defined tokens in the Body of an ApexClass,
ApexClassMember, or ApexTriggerMember and their associated line and column locations
within the Body.
This field is null if the symbol table can’t be created due to
reasons such as:
- Another Apex compilation is in progress and holding a compile lock
- The Apex class is in an invalid state and can’t compile successfully
|