Is ORCA the latest attraction at Seaworld? No, actually it's the Object Repository CASE API which Powersoft first introduced with PowerBuilder version 4. It allows you to perform all the utility functions found in the library painter such as importing objects from source, creating new libraries, and even creating executables or deploying to EAServer.
PBOrcapi is an interface between PowerScript and ORCA which allows for the average PowerBuilder programmer to be able to easily create their own ORCA enabled applications. Because many of the ORCA functions use callbacks which aren't supported by PowerBuilder, the interface between PowerScript and ORCA must be written in C. PBOrcapi supports PowerBuilder version 6 and above as well as PocketBuilder.
PBOrcapi eliminates the need for you to write C code, you can use what you know best, PowerBuilder! PBOrcapi also includes an HTML help file and sample code to get you going. Below is a summary of the available ORCA functions:
|Sets various ORCA session options
|Opens an ORCA session and returns the session handle
|Closes an ORCA session
|Specifies the libraries for the session
|Specifies the Application object for the session
|Provides information about an error
|Modify the comments for a library
|Get the comments for a library
|Create a new library file
|Delete a library file
|Get directory listing of a library file
|Copy an object from one library to another
|Delete an object from a library
|Get the source code for an object
|Get details about an object
|Move an object from one library to another
|Optimizes a library
|Compiles all the objects in all the libraries associated with an application
|Imports an object and compiles it
|Imports a list of objects and compiles them
|Compiles an object
Object Query Functions:
|Gets a list of an objects ancestors
|Gets a list of the objects an object refers to
|Deploys EAServer components by running a project
|Deploys EAServer components with server/port overrides
|Creates an executable using the current library list and Application object
|Creates a PowerBuilder dynamic library from a PBL
|Sets version information to be used when creating executable
Source Control Functions (PB6/PB7 only):
|Checks an object into a library
|Checks an object out of a library
|Reports objects that are registered or checked out
Source Control Functions (PB9 & higher):
|Closes the active SCC project.
|Initializes source control and opens a project.
|Opens a source-controlled project for refreshing and rebuilding offline.
|Names the libraries that should not be synchronized in the next refresh.
|Returns the SCC connection properties associated with a workspace.
|Retrieves the latest version of files from the SCC provider.
|Calls SccGetLatestVersion to refresh the source for all the objects.
|Call this function to reset the revision number for an object.
|Retrieves the target file and sets the ORCA session library list.