sandesha2_sender_mgr.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2004,2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef SANDESHA2_SENDER_MGR_H
00018 #define SANDESHA2_SENDER_MGR_H
00019 
00025 #include <axutil_allocator.h>
00026 #include <axutil_env.h>
00027 #include <axutil_error.h>
00028 #include <axutil_string.h>
00029 #include <axutil_utils.h>
00030 #include <axis2_ctx.h>
00031 #include <axutil_array_list.h>
00032 #include <sandesha2_sender_bean.h>
00033 
00034 #ifdef __cplusplus
00035 extern "C"
00036 {
00037 #endif
00038 
00039 typedef struct sandesha2_sender_mgr sandesha2_sender_mgr_t;
00040 typedef struct sandesha2_sender_mgr_ops sandesha2_sender_mgr_ops_t;
00041 
00046 AXIS2_DECLARE_DATA struct sandesha2_sender_mgr_ops
00047 {
00052     void (AXIS2_CALL * 
00053             free)(
00054                 sandesha2_sender_mgr_t *sender,
00055                 const axutil_env_t *env);
00056 
00057     axis2_bool_t (AXIS2_CALL *
00058             insert)(
00059                 sandesha2_sender_mgr_t *sender,
00060                 const axutil_env_t *env,
00061                 sandesha2_sender_bean_t *bean);
00062 
00063     axis2_bool_t (AXIS2_CALL *
00064             remove)(
00065                 sandesha2_sender_mgr_t *sender,
00066                 const axutil_env_t *env,
00067                 axis2_char_t *msg_id);
00068 
00069     sandesha2_sender_bean_t *(AXIS2_CALL *
00070             retrieve)(
00071                 sandesha2_sender_mgr_t *sender,
00072                 const axutil_env_t *env,
00073                 axis2_char_t *msg_id);
00074 
00075     axis2_bool_t (AXIS2_CALL *
00076             update)(
00077                 sandesha2_sender_mgr_t *sender,
00078                 const axutil_env_t *env,
00079                 sandesha2_sender_bean_t *bean);
00080 
00081     axutil_array_list_t *(AXIS2_CALL *
00082             find_by_internal_seq_id)(
00083                 sandesha2_sender_mgr_t *sender,
00084                 const axutil_env_t *env,
00085                 axis2_char_t *internal_seq_id);
00086 
00087     axutil_array_list_t *(AXIS2_CALL *
00088             find_by_sender_bean)(
00089                 sandesha2_sender_mgr_t *sender,
00090                 const axutil_env_t *env,
00091                 sandesha2_sender_bean_t *bean);
00092 
00093     sandesha2_sender_bean_t *(AXIS2_CALL *
00094             find_unique)(
00095                 sandesha2_sender_mgr_t *sender,
00096                 const axutil_env_t *env,
00097                 sandesha2_sender_bean_t *bean);
00098 
00099     sandesha2_sender_bean_t *(AXIS2_CALL *
00100             get_next_msg_to_send)(
00101                 sandesha2_sender_mgr_t *sender,
00102                 const axutil_env_t *env,
00103                 const axis2_char_t *seq_id);
00104 };
00105 
00106 AXIS2_DECLARE_DATA struct sandesha2_sender_mgr
00107 {
00108     sandesha2_sender_mgr_ops_t ops;
00109 };
00110 
00111 AXIS2_EXTERN sandesha2_sender_mgr_t * AXIS2_CALL
00112 sandesha2_sender_mgr_create(
00113     const axutil_env_t *env,
00114     axis2_char_t *dbname);
00115 
00116 void AXIS2_CALL 
00117 sandesha2_sender_mgr_free(
00118     sandesha2_sender_mgr_t *sender,
00119     const axutil_env_t *envv);
00120 
00121 axis2_bool_t AXIS2_CALL
00122 sandesha2_sender_mgr_insert(
00123     sandesha2_sender_mgr_t *sender,
00124     const axutil_env_t *env,
00125     sandesha2_sender_bean_t *bean);
00126 
00127 axis2_bool_t AXIS2_CALL
00128 sandesha2_sender_mgr_remove(
00129     sandesha2_sender_mgr_t *sender,
00130     const axutil_env_t *env,
00131     axis2_char_t *msg_id);
00132 
00133 sandesha2_sender_bean_t *AXIS2_CALL
00134 sandesha2_sender_mgr_retrieve(
00135     sandesha2_sender_mgr_t *sender,
00136     const axutil_env_t *env,
00137     axis2_char_t *msg_id);
00138 
00139 axis2_bool_t AXIS2_CALL
00140 sandesha2_sender_mgr_update(
00141     sandesha2_sender_mgr_t *sender,
00142     const axutil_env_t *env,
00143     sandesha2_sender_bean_t *bean);
00144 
00145 axutil_array_list_t *AXIS2_CALL
00146 sandesha2_sender_mgr_find_by_internal_seq_id(
00147     sandesha2_sender_mgr_t *sender,
00148     const axutil_env_t *env,
00149     axis2_char_t *internal_seq_id);
00150 
00151 axutil_array_list_t *AXIS2_CALL
00152 sandesha2_sender_mgr_find_by_sender_bean(
00153     sandesha2_sender_mgr_t *sender,
00154     const axutil_env_t *env,
00155     sandesha2_sender_bean_t *bean);
00156 
00157 sandesha2_sender_bean_t *AXIS2_CALL
00158 sandesha2_sender_mgr_find_unique(
00159     sandesha2_sender_mgr_t *sender,
00160     const axutil_env_t *env,
00161     sandesha2_sender_bean_t *bean);
00162 
00163 sandesha2_sender_bean_t *AXIS2_CALL
00164 sandesha2_sender_mgr_get_next_msg_to_send(
00165     sandesha2_sender_mgr_t *sender,
00166     const axutil_env_t *env,
00167     const axis2_char_t *seq_id);
00168 
00170 #ifdef __cplusplus
00171 }
00172 #endif
00173 #endif /* SANDESHA2_SENDER_MGR_H */

Generated on Fri May 23 15:50:26 2008 for Sandesha2/C by  doxygen 1.5.5