CUBRID Engine  latest
jsp_cl.h File Reference
#include "parse_tree.h"
Include dependency graph for jsp_cl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SP_CLASS_NAME   "_db_stored_procedure"
 
#define SP_ARG_CLASS_NAME   "_db_stored_procedure_args"
 
#define SP_ATTR_NAME   "sp_name"
 
#define SP_ATTR_SP_TYPE   "sp_type"
 
#define SP_ATTR_RETURN_TYPE   "return_type"
 
#define SP_ATTR_ARGS   "args"
 
#define SP_ATTR_ARG_COUNT   "arg_count"
 
#define SP_ATTR_LANG   "lang"
 
#define SP_ATTR_TARGET   "target"
 
#define SP_ATTR_OWNER   "owner"
 
#define SP_ATTR_COMMENT   "comment"
 
#define SP_ATTR_ARG_NAME   "arg_name"
 
#define SP_ATTR_INDEX_OF_NAME   "index_of"
 
#define SP_ATTR_DATA_TYPE   "data_type"
 
#define SP_ATTR_MODE   "mode"
 
#define SP_ATTR_ARG_COMMENT   "comment"
 

Enumerations

enum  SP_TYPE_ENUM { SP_TYPE_PROCEDURE = 1, SP_TYPE_FUNCTION }
 
enum  SP_MODE_ENUM { SP_MODE_IN = 1, SP_MODE_OUT, SP_MODE_INOUT }
 
enum  SP_LANG_ENUM { SP_LANG_JAVA = 1 }
 

Functions

int jsp_create_stored_procedure (PARSER_CONTEXT *parser, PT_NODE *statement)
 
int jsp_alter_stored_procedure (PARSER_CONTEXT *parser, PT_NODE *statement)
 
int jsp_drop_stored_procedure (PARSER_CONTEXT *parser, PT_NODE *statement)
 
int jsp_call_stored_procedure (PARSER_CONTEXT *parser, PT_NODE *statement)
 
int jsp_is_exist_stored_procedure (const char *name)
 
int jsp_get_return_type (const char *name)
 
void jsp_init (void)
 
void jsp_close_connection (void)
 
MOP jsp_find_stored_procedure (const char *name)
 
void jsp_set_prepare_call (void)
 
void jsp_unset_prepare_call (void)
 
int jsp_call_from_server (DB_VALUE *returnval, DB_VALUE **argarray, const char *name, const int arg_cnt)
 
void * jsp_get_db_result_set (int h_id)
 
void jsp_srv_handle_free (int h_id)
 
int jsp_send_destroy_request_all ()
 
int jsp_send_destroy_request (const SOCKET sockfd)
 

Macro Definition Documentation

#define SP_ARG_CLASS_NAME   "_db_stored_procedure_args"

Definition at line 38 of file jsp_cl.h.

Referenced by jsp_add_stored_procedure_argument().

#define SP_ATTR_ARG_COMMENT   "comment"

Definition at line 54 of file jsp_cl.h.

Referenced by emit_stored_procedure_args(), and jsp_add_stored_procedure_argument().

#define SP_ATTR_ARG_COUNT   "arg_count"
#define SP_ATTR_ARG_NAME   "arg_name"

Definition at line 50 of file jsp_cl.h.

Referenced by emit_stored_procedure_args(), and jsp_add_stored_procedure_argument().

#define SP_ATTR_ARGS   "args"
#define SP_ATTR_COMMENT   "comment"
#define SP_ATTR_DATA_TYPE   "data_type"
#define SP_ATTR_INDEX_OF_NAME   "index_of"

Definition at line 51 of file jsp_cl.h.

Referenced by jsp_add_stored_procedure_argument().

#define SP_ATTR_LANG   "lang"

Definition at line 45 of file jsp_cl.h.

Referenced by jsp_add_stored_procedure().

#define SP_ATTR_MODE   "mode"
#define SP_ATTR_NAME   "sp_name"
#define SP_ATTR_OWNER   "owner"
#define SP_ATTR_RETURN_TYPE   "return_type"
#define SP_ATTR_SP_TYPE   "sp_type"
#define SP_ATTR_TARGET   "target"
#define SP_CLASS_NAME   "_db_stored_procedure"

Enumeration Type Documentation

Enumerator
SP_LANG_JAVA 

Definition at line 69 of file jsp_cl.h.

Enumerator
SP_MODE_IN 
SP_MODE_OUT 
SP_MODE_INOUT 

Definition at line 62 of file jsp_cl.h.

Enumerator
SP_TYPE_PROCEDURE 
SP_TYPE_FUNCTION 

Definition at line 56 of file jsp_cl.h.

Function Documentation

int jsp_call_from_server ( DB_VALUE returnval,
DB_VALUE **  argarray,
const char *  name,
const int  arg_cnt 
)
void jsp_close_connection ( void  )

Definition at line 209 of file jsp_cl.c.

References INVALID_SOCKET, IS_INVALID_SOCKET, jsp_disconnect_server(), and sock_fds.

Referenced by boot_shutdown_client(), and jsp_execute_stored_procedure().

Here is the caller graph for this function:

void* jsp_get_db_result_set ( int  h_id)

Definition at line 3075 of file jsp_cl.c.

References libcas_get_db_result_set().

int jsp_get_return_type ( const char *  name)

Definition at line 287 of file jsp_cl.c.

References assert, AU_DISABLE, AU_ENABLE, db_get(), db_get_int(), er_errid(), err, jsp_find_stored_procedure(), NO_ERROR, NULL, and SP_ATTR_RETURN_TYPE.

Referenced by pt_make_method_call().

Here is the caller graph for this function:

void jsp_init ( void  )

Definition at line 185 of file jsp_cl.c.

References call_cnt, i, INVALID_SOCKET, is_prepare_call, MAX_CALL_COUNT, and sock_fds.

Referenced by boot_restart_client().

Here is the caller graph for this function:

int jsp_is_exist_stored_procedure ( const char *  name)

Definition at line 267 of file jsp_cl.c.

References er_clear(), jsp_find_stored_procedure(), and NULL.

Referenced by jsp_create_stored_procedure(), pt_bind_names(), pt_check_method(), and pt_make_method_call().

Here is the caller graph for this function:

int jsp_send_destroy_request_all ( )
void jsp_set_prepare_call ( void  )

Definition at line 3048 of file jsp_cl.c.

References call_cnt, and is_prepare_call.

void jsp_srv_handle_free ( int  h_id)

Definition at line 3089 of file jsp_cl.c.

References libcas_srv_handle_free().

void jsp_unset_prepare_call ( void  )

Definition at line 3061 of file jsp_cl.c.

References call_cnt, and is_prepare_call.