File: CosPersistenceDS_CLI.idl

package info (click to toggle)
omniorb-dfsg 4.3.3%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,172 kB
  • sloc: cpp: 115,843; python: 24,962; ansic: 13,414; sh: 2,665; makefile: 40
file content (85 lines) | stat: -rw-r--r-- 2,257 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
//File: CosPersistenceDS_CLI.idl
//Part of the Persistence Service

#ifndef _COS_PERSISTENCE_DS_CLI_IDL_
#define _COS_PERSISTENCE_DS_CLI_IDL_

// omniORB specific pragmas to insert extra includes into the stub header.
#pragma hh #include "COS_sysdep.h"

#include <CosPersistenceDDO.idl>

#pragma prefix "omg.org"

module CosPersistenceDS_CLI {
	interface UserEnvironment {
		void set_option (in long option,in any value);
		void get_option (in long option,out any value);
		void release();
	};

	interface Connection {
		void set_option (in long option,in any value);
		void get_option (in long option,out any value);
	};

	interface ConnectionFactory {
		Connection create_object (
			in UserEnvironment user_envir);
	};

	interface Cursor { 
		void set_position (in long position,in any value);
		CosPersistenceDDO::DDO fetch_object();
	};

	interface CursorFactory {
		Cursor create_object (
			in Connection a_connection);
	};

 	interface PID_CLI : CosPersistencePID::PID {
		attribute string datastore_id;
		attribute string id;
	};

	interface Datastore_CLI {
		void connect (in Connection a_connection,
			in string datastore_id,
			in string user_name,
			in string authentication);
		void disconnect (in Connection a_connection);
		Connection get_connection (
			in string datastore_id,
			in string user_name);
		void add_object (in Connection a_connection,
			in CosPersistenceDDO::DDO data_obj);
		void delete_object (
			in Connection a_connection,
			in CosPersistenceDDO::DDO data_obj);
		void update_object (
			in Connection a_connection,
			in CosPersistenceDDO::DDO data_obj);
		void retrieve_object(
			in Connection a_connection,
			in CosPersistenceDDO::DDO data_obj);
		Cursor select_object(
			in Connection a_connection,
			in string key);
		void transact (in UserEnvironment user_envir,
			in short completion_type);
		void assign_PID (in PID_CLI p);
		void assign_PID_relative (
			in PID_CLI source_pid,
			in PID_CLI target_pid);
		boolean is_identical_PID (
			in PID_CLI pid_1,
			in PID_CLI pid_2);
		string get_object_type (in PID_CLI p);
		void register_mapping_schema (in string schema_file); 
		Cursor execute (in Connection a_connection,
			in string command); 
	};

};
#endif /* ifndef _COS_PERSISTENCE_DS_CLI_IDL_ */