DBA Data[Home] [Help]

SYS.JVMRJBCINV dependencies on JVMRJBC

Line 1: package body jvmrjbcinv as

1: package body jvmrjbcinv as
2: -- runjava back channel state
3: m_sessid VARCHAR2(100);
4: rjbc_toclient VARCHAR2(120);
5: rjbc_fromclient VARCHAR2(120);

Line 68: m_sessid := sys.jvmrjbc.init;

64: function rjbc_init(flags NUMBER) return VARCHAR2 as
65: trash VARCHAR2(100);
66: begin
67: loop
68: m_sessid := sys.jvmrjbc.init;
69: rjbc_set_pipe_names;
70: begin
71: trash := dbms_pipe.remove_pipe(rjbc_toclient);
72: trash := dbms_pipe.remove_pipe(rjbc_fromclient);

Line 88: sys.jvmrjbc.done(m_sessid);

84: trash := dbms_pipe.remove_pipe(rjbc_fromclient);
85: exception when others then
86: null;
87: end;
88: sys.jvmrjbc.done(m_sessid);
89: end;
90: end loop;
91: m_flags := flags;
92: rjbc_client_started := false;

Line 100: 'call sys.jvmrjbcinv.rjbc_output(:1,:2)',

96: trash :=
97: dbms_java.remove_output_to_sql('___rjbc');
98: trash :=
99: dbms_java.set_output_to_sql('___rjbc',
100: 'call sys.jvmrjbcinv.rjbc_output(:1,:2)',
101: 'TEXT NL');
102: return m_sessid;
103: end;
104:

Line 116: sys.jvmrjbc.putpath(m_sessid, pathname);

112: return NUMBER as
113: status NUMBER;
114: begin
115: rjbc_ack;
116: sys.jvmrjbc.putpath(m_sessid, pathname);
117: dbms_pipe.pack_message(rtype);
118: rjbc_send(rjbc_toclient);
119: rjbc_receive(rjbc_fromclient);
120: dbms_pipe.unpack_message(status);

Line 122: lob := sys.jvmrjbc.getlob(m_sessid);

118: rjbc_send(rjbc_toclient);
119: rjbc_receive(rjbc_fromclient);
120: dbms_pipe.unpack_message(status);
121: if status = 0 and rtype = 0 then
122: lob := sys.jvmrjbc.getlob(m_sessid);
123: end if;
124: return status;
125: end;
126:

Line 141: sys.jvmrjbc.putpath(m_sessid, pathname);

137: return NUMBER as
138: status NUMBER;
139: begin
140: rjbc_ack;
141: sys.jvmrjbc.putpath(m_sessid, pathname);
142: dbms_pipe.pack_message(rtype);
143: rjbc_send(rjbc_toclient);
144: rjbc_receive(rjbc_fromclient);
145: dbms_pipe.unpack_message(status);

Line 146: normalized_pathname := sys.jvmrjbc.getpath(m_sessid);

142: dbms_pipe.pack_message(rtype);
143: rjbc_send(rjbc_toclient);
144: rjbc_receive(rjbc_fromclient);
145: dbms_pipe.unpack_message(status);
146: normalized_pathname := sys.jvmrjbc.getpath(m_sessid);
147: return status;
148: end;
149:
150: -- rjbc_output: set_output_to_sql entrypoint used by runjava to pass

Line 157: sys.jvmrjbc.putpath(m_sessid, text);

153: procedure rjbc_output(text VARCHAR2, nl NUMBER) as
154: trash number;
155: begin
156: rjbc_ack;
157: sys.jvmrjbc.putpath(m_sessid, text);
158: if nl = 0 then
159: dbms_pipe.pack_message(3);
160: else
161: dbms_pipe.pack_message(2);

Line 182: sys.jvmrjbc.done(m_sessid);

178: dbms_pipe.pack_message(-1);
179: rjbc_send(rjbc_toclient);
180: trash := dbms_pipe.remove_pipe(rjbc_toclient);
181: trash := dbms_pipe.remove_pipe(rjbc_fromclient);
182: sys.jvmrjbc.done(m_sessid);
183: trash :=
184: dbms_java.remove_output_to_sql('___rjbc');
185: m_sessid := null;
186: end;

Line 215: sys.jvmrjbc.putlob(m_sessid, l);

211: m_sessid := sid;
212: rjbc_set_pipe_names;
213: end if;
214: if status = 0 and rjbc_action = 0 then
215: sys.jvmrjbc.putlob(m_sessid, l);
216: end if;
217: if rjbc_action = 1 then
218: sys.jvmrjbc.putpath(m_sessid, p);
219: end if;

Line 218: sys.jvmrjbc.putpath(m_sessid, p);

214: if status = 0 and rjbc_action = 0 then
215: sys.jvmrjbc.putlob(m_sessid, l);
216: end if;
217: if rjbc_action = 1 then
218: sys.jvmrjbc.putpath(m_sessid, p);
219: end if;
220: dbms_pipe.pack_message(status);
221: rjbc_send(rjbc_fromclient);
222: rjbc_receive(rjbc_toclient);

Line 225: p := sys.jvmrjbc.getpath(m_sessid);

221: rjbc_send(rjbc_fromclient);
222: rjbc_receive(rjbc_toclient);
223: dbms_pipe.unpack_message(rjbc_action);
224: if rjbc_action <> -1 then
225: p := sys.jvmrjbc.getpath(m_sessid);
226: end if;
227: return rjbc_action;
228: end;
229:

Line 230: end jvmrjbcinv;

226: end if;
227: return rjbc_action;
228: end;
229:
230: end jvmrjbcinv;