12.07.2015 Views

Database.com Metadata API Developer's Guide - Salesforce.com

Database.com Metadata API Developer's Guide - Salesforce.com

Database.com Metadata API Developer's Guide - Salesforce.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Metadata</strong> TypesUnsupported <strong>Metadata</strong> TypesSupported CallsAll of the metadata types are supported by the main calls, unless it is stated otherwise in the individual <strong>com</strong>ponent sections.The main <strong>Metadata</strong> <strong>API</strong> calls are create(), delete(), update(), deploy(), retrieve(), list<strong>Metadata</strong>(), anddescribe<strong>Metadata</strong>(). All other calls, such as checkStatus(), are considered utility calls as they are used in conjunctionwith one of the main calls.Unsupported <strong>Metadata</strong> TypesSome things you can customize in a <strong>Database</strong>.<strong>com</strong> organization aren’t available in <strong>Metadata</strong> <strong>API</strong>.The following <strong>com</strong>ponents can’t be retrieved or deployed with <strong>Metadata</strong> <strong>API</strong>, and changes to them must be made manuallyin each of your organizations:• Currency Exchange Rates• Delegated Administration• Sharing Organization Wide Defaults• User Interface Settings (except calendar features, which are supported in ActivitiesSettings on page 148)ApexClassRepresents an Apex class. An Apex class is a template or blueprint from which Apex objects are created. Classes consist ofother classes, user-defined methods, variables, exception types, and static initialization code. For more information, see theForce.<strong>com</strong> Apex Code <strong>Developer's</strong> <strong>Guide</strong>. This metadata type extends the <strong>Metadata</strong>WithContent <strong>com</strong>ponent and shares its fields.Note: You can’t deploy updates to an Apex class if there are one or more active scheduled jobs for that class.Supported Callsdeploy(), retrieve(), describe<strong>Metadata</strong>(), list<strong>Metadata</strong>()Note: This metadata type is not supported by the create(), delete(), and update() calls.Declarative <strong>Metadata</strong> File Suffix and Directory LocationThe file suffix is .cls for the class file. The ac<strong>com</strong>panying metadata file is named ClassName-meta.xml.Apex classes are stored in the classes folder in the corresponding package directory.VersionApex classes are available in <strong>API</strong> version 10.0 and later.FieldsThis metadata type contains the following fields:76

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!