Difference between revisions of "Java API"

From AgileApps Support Wiki
imported>Aeric
imported>Aeric
Line 35: Line 35:
:* [[Java API:Record_Handling#execSQL|<tt>execSQL</tt>]]
:* [[Java API:Record_Handling#execSQL|<tt>execSQL</tt>]]


''Learn more:'' [[Java_API:Record_Handling]]  
:''Learn more:'' [[Java_API:Record_Handling]]  


To operate on records in [[Composite Object]]s:
To operate on records in [[Composite Object]]s:
Line 41: Line 41:
:* [[Java API:Composite Objects#getRecord|<tt>getRecord</tt>]]
:* [[Java API:Composite Objects#getRecord|<tt>getRecord</tt>]]
:* [[Java API:Composite Objects#searchRecords|<tt>searchRecords</tt>]]
:* [[Java API:Composite Objects#searchRecords|<tt>searchRecords</tt>]]
''Learn more:'' [[Object Relationships]]
:''Learn more:'' [[Working with Composite Objects]]


===<span id="relay">Relay</span>===
===<span id="relay">Relay</span>===
Line 84: Line 84:
:* [[Tenant_Data_Sharing_Policies#getRecord|<tt>getRecord</tt>]]
:* [[Tenant_Data_Sharing_Policies#getRecord|<tt>getRecord</tt>]]


''Learn more:'' [[Tenant_Data_Sharing_Policies#Using the JAVA API to Access Shared Data]]
:''Learn more:'' [[Tenant_Data_Sharing_Policies#Using the JAVA API to Access Shared Data]]


===Data Import===
===Data Import===
Line 91: Line 91:
:* [[Java_API:Data Import#importData|<tt>importData</tt>]]
:* [[Java_API:Data Import#importData|<tt>importData</tt>]]


''Learn more:'' [[Java_API:Data Import]]
:''Learn more:'' [[Java_API:Data Import]]


===Email and Document Management===
===Email and Document Management===
Line 101: Line 101:
:* [[Java_API_Cheatsheet#Email_Handler_APIs|<tt>EmailHandler</tt> APIs]]
:* [[Java_API_Cheatsheet#Email_Handler_APIs|<tt>EmailHandler</tt> APIs]]


''Learn more:'' [[Java_API:Email_and_Document_Management]]
:''Learn more:'' [[Java_API:Email_and_Document_Management]]


===Transaction Management===
===Transaction Management===
Line 112: Line 112:
:*[[Java_API:Transaction_Management#removeSavePoint|<tt>removeSavePoint</tt>]]
:*[[Java_API:Transaction_Management#removeSavePoint|<tt>removeSavePoint</tt>]]


''Learn more:'' [[Java_API:Transaction_Management]]
:''Learn more:'' [[Java_API:Transaction_Management]]


===Support Classes and Objects===
===Support Classes and Objects===
Line 126: Line 126:
:* [[Java_API:Support_Classes_and_Objects#TenantContext_Object|<tt>TenantContext Object</tt>]]
:* [[Java_API:Support_Classes_and_Objects#TenantContext_Object|<tt>TenantContext Object</tt>]]


''Learn more:'' [[Java_API:Support_Classes_and_Objects]]
:''Learn more:'' [[Java_API:Support_Classes_and_Objects]]


===<span id="localization">Localization Functions</span>===
===<span id="localization">Localization Functions</span>===
Line 140: Line 140:
:* [{{DOCHOST}}/javadocs/com/platform/api/Functions.html#validatePercent(java.lang.String) <tt>validatePercent</tt>]
:* [{{DOCHOST}}/javadocs/com/platform/api/Functions.html#validatePercent(java.lang.String) <tt>validatePercent</tt>]


''Learn more:'' [[Localization]]
:''Learn more:'' [[Localization]]


===Utility Functions===
===Utility Functions===
Line 159: Line 159:
:* [{{DOCHOST}}/javadocs/com/platform/api/utility/ServiceConfiguration.html#getServiceDomainURL() <tt>getServiceDomainURL</tt>]
:* [{{DOCHOST}}/javadocs/com/platform/api/utility/ServiceConfiguration.html#getServiceDomainURL() <tt>getServiceDomainURL</tt>]


''Learn more:'' [[Java API:Utility functions|Utility functions]]
:''Learn more:'' [[Java API:Utility functions|Utility functions]]


===Customization APIs===
===Customization APIs===
Line 169: Line 169:
<!--:*[[Java_API:Customize#Form_Metadata|Form Metadata]]-->
<!--:*[[Java_API:Customize#Form_Metadata|Form Metadata]]-->


''Learn more:'' [[Java_API:Customize|Customize]]
:''Learn more:'' [[Java_API:Customize|Customize]]


===Status===
===Status===
Line 175: Line 175:
:*[[getStatus]]
:*[[getStatus]]


''Learn more:'' [[getStatus]]
:''Learn more:'' [[getStatus]]


==Identifying Objects and Records ==
==Identifying Objects and Records ==

Revision as of 22:58, 18 September 2013

The Java API is a set of built-in calls that are made to programmatically customize and extend the platform.

1 About the Java API

The following platform elements provide the ability to make Java API calls from the user interface (UI):

  • Standard Java classes, to create custom business logic that models your organization's environment
  • JSP Pages, which can invoke Java APIs

2 Prerequisites

You must know the Java programming language to make the Java API calls. This includes knowing the basic elements of Java such as conditional structures (if statement), looping structures (while and for loop statements), variable declaration and assignment, use of operators, variable naming conventions, debugging techniques, and so on.

Learn more about the platform:
Learn more about web services and programming:

3 Classes, Objects, and APIs

This table lists the APIs and links to detail pages. For a quick synopsis of syntax, see the Java API Cheatsheet.

3.1 Record Handling

To handle records in standard Objects

Learn more: Java_API:Record_Handling

To operate on records in Composite Objects:

Learn more: Working with Composite Objects

3.2 Relay

To do social networking.

3.3 Record Handling for Tenant Data Sharing

To handle records in Objects shared using Tenant Data Sharing Policies

Learn more: Tenant_Data_Sharing_Policies#Using the JAVA API to Access Shared Data

3.4 Data Import

Import CSV data into Objects

Learn more: Java_API:Data Import

3.5 Email and Document Management

APIs to manage Email and documents.


Learn more: Java_API:Email_and_Document_Management

3.6 Transaction Management

Provides the ability to Rollback transactions to a SavePoint

Learn more: Java_API:Transaction_Management

3.7 Support Classes and Objects

Use these support classes and objects when you work with the Java API.


Learn more: Java_API:Support_Classes_and_Objects

3.8 Localization Functions

Use these functions to convert between Database Formats and localized User Formats.

Learn more: Localization

3.9 Utility Functions

General-purpose operations.


Learn more: Utility functions

3.10 Customization APIs

Use these Provisional APIs give to manage metadata for program entities.

Learn more: Customize

3.11 Status

Check status of scheduled jobs.

Learn more: getStatus

4 Identifying Objects and Records

An object type identifier uniquely identifies an object type. It is used to specify object types in APIs.

There are two kinds of type identifiers:

  • objectName: This identifier is a human-readable name for both System Objects and Custom Objects.
  • objectID: This identifier is a human-readable name for System Objects (e.g. "cases"), but for Custom Objects, it is a computer-generated string with no humanly-interpretable semantic value (e.g. 123qwe456rty).
See also:

To find an object type identifier:

  1. Click GearIcon.png > Customization > Objects
  2. In the Display Title column, find the object you're looking for.
  3. The Object Name column has the identifier you need.

Alternatively:

  1. Go to GearIcon.png > Customization > Objects > {object}
  2. Click Properties
  3. The object name appears at the top of the page

Notepad.png

Note: