1 PACKAGE wma_derive AUTHID CURRENT_USER AS
2 /* $Header: wmacdrvs.pls 115.4 2002/12/12 16:05:28 rmahidha ship $ */
3
4 /**
5 * returns mobile txn mode:
6 * wip_constants.online or wip_constants.background
7 */
8 FUNCTION getTxnMode (orgID IN NUMBER) return NUMBER;
9
10 /**
11 * returns the next value in a database sequence
12 */
13 FUNCTION getNextVal (sequence IN VARCHAR2) return NUMBER;
14
15 /**
16 * given an itemID, getItem populates the wma_common.Item structure
17 * with the item information.
18 */
19 FUNCTION getItem (
20 itemID IN NUMBER,
21 orgID IN NUMBER) return wma_common.Item;
22
23 /**
24 * given an itemID and a locatorID, getItem populates the
25 * wma_common.Item structure with the item information. Calling this
26 * version of getItem fills in the projectID and taskID fields of
27 * wma_common.Item
28 */
29 FUNCTION getItem (
30 itemID IN NUMBER,
31 orgID IN NUMBER,
32 locatorID IN NUMBER) return wma_common.Item;
33
34 /**
35 * getJob will fill out the structure wma_common.Job given the
36 * wipEntityID. Note that the given wipEntityID should be connected
37 * to a discrete job instead of a repetitive schedule.
38 */
39 Function getJob(wipEntityID NUMBER) return wma_common.Job;
40
41 /**
42 * deriveEnvironment will take a partially filled Environment
43 * (the ID's must be filled) and derive the rest of the structure
44 * as possible depending on the information available to it.
45 */
46 PROCEDURE deriveEnvironment(environment IN OUT NOCOPY wma_common.Environment);
47
48
49 END wma_derive;