sandesha2_seq_property_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_SEQ_PROPERTY_MGR_H
00018 #define SANDESHA2_SEQ_PROPERTY_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_seq_property_bean.h>
00033 
00034 #ifdef __cplusplus
00035 extern "C"
00036 {
00037 #endif
00038 
00039 typedef struct sandesha2_seq_property_mgr sandesha2_seq_property_mgr_t;
00040 typedef struct sandesha2_seq_property_mgr_ops sandesha2_seq_property_mgr_ops_t;
00041 
00046 AXIS2_DECLARE_DATA struct sandesha2_seq_property_mgr_ops
00047 {
00052     void (AXIS2_CALL * 
00053             free)(
00054                 sandesha2_seq_property_mgr_t *seq_property,
00055                 const axutil_env_t *envv);
00056 
00057     axis2_bool_t (AXIS2_CALL *
00058             insert)(
00059                 sandesha2_seq_property_mgr_t *seq_property,
00060                 const axutil_env_t *env,
00061                 sandesha2_seq_property_bean_t *bean);
00062 
00063     axis2_bool_t (AXIS2_CALL *
00064             remove)(
00065                 sandesha2_seq_property_mgr_t *seq_property,
00066                 const axutil_env_t *env,
00067                 axis2_char_t *seq_id,
00068                 axis2_char_t *name);
00069 
00070     sandesha2_seq_property_bean_t *(AXIS2_CALL *
00071             retrieve)(
00072                 sandesha2_seq_property_mgr_t *seq_property,
00073                 const axutil_env_t *env,
00074                 const axis2_char_t *seq_id,
00075                 const axis2_char_t *name);
00076 
00077     axis2_bool_t (AXIS2_CALL *
00078             update)(
00079                 sandesha2_seq_property_mgr_t *seq_property,
00080                 const axutil_env_t *env,
00081                 sandesha2_seq_property_bean_t *bean);
00082 
00083     axutil_array_list_t *(AXIS2_CALL *
00084             find)(
00085                 sandesha2_seq_property_mgr_t *seq_property,
00086                 const axutil_env_t *env,
00087                 sandesha2_seq_property_bean_t *bean);
00088 
00089     sandesha2_seq_property_bean_t *(AXIS2_CALL *
00090             find_unique)(
00091                 sandesha2_seq_property_mgr_t *seq_property,
00092                 const axutil_env_t *env,
00093                 sandesha2_seq_property_bean_t *bean);
00094 
00095     axutil_array_list_t *(AXIS2_CALL *
00096             retrieve_all)(
00097                 sandesha2_seq_property_mgr_t *seq_property,
00098                 const axutil_env_t *env);
00099 };
00100 
00101 AXIS2_DECLARE_DATA struct sandesha2_seq_property_mgr
00102 {
00103     sandesha2_seq_property_mgr_ops_t ops;
00104 };
00105 
00106 AXIS2_EXTERN sandesha2_seq_property_mgr_t * AXIS2_CALL
00107 sandesha2_seq_property_mgr_create(
00108     const axutil_env_t *env,
00109     axis2_char_t *dbname);
00110 
00111 void AXIS2_CALL 
00112 sandesha2_seq_property_mgr_free(
00113     sandesha2_seq_property_mgr_t *seq_property,
00114     const axutil_env_t *envv);
00115 
00116 axis2_bool_t AXIS2_CALL
00117 sandesha2_seq_property_mgr_insert(
00118     sandesha2_seq_property_mgr_t *seq_property,
00119     const axutil_env_t *env,
00120     sandesha2_seq_property_bean_t *bean);
00121 
00122 axis2_bool_t AXIS2_CALL
00123 sandesha2_seq_property_mgr_remove(
00124     sandesha2_seq_property_mgr_t *seq_property,
00125     const axutil_env_t *env,
00126     axis2_char_t *seq_id,
00127     axis2_char_t *name);
00128 
00129 sandesha2_seq_property_bean_t *AXIS2_CALL
00130 sandesha2_seq_property_mgr_retrieve(
00131     sandesha2_seq_property_mgr_t *seq_property,
00132     const axutil_env_t *env,
00133     const axis2_char_t *seq_id,
00134     const axis2_char_t *name);
00135 
00136 axis2_bool_t AXIS2_CALL
00137 sandesha2_seq_property_mgr_update(
00138     sandesha2_seq_property_mgr_t *seq_property,
00139     const axutil_env_t *env,
00140     sandesha2_seq_property_bean_t *bean);
00141 
00142 axutil_array_list_t *AXIS2_CALL
00143 sandesha2_seq_property_mgr_find(
00144     sandesha2_seq_property_mgr_t *seq_property,
00145     const axutil_env_t *env,
00146     sandesha2_seq_property_bean_t *bean);
00147 
00148 sandesha2_seq_property_bean_t *AXIS2_CALL
00149 sandesha2_seq_property_mgr_find_unique(
00150     sandesha2_seq_property_mgr_t *seq_property,
00151     const axutil_env_t *env,
00152     sandesha2_seq_property_bean_t *bean);
00153 
00154 axutil_array_list_t *AXIS2_CALL
00155 sandesha2_seq_property_mgr_retrieve_all(
00156     sandesha2_seq_property_mgr_t *seq_property,
00157     const axutil_env_t *env);
00158 
00160 #ifdef __cplusplus
00161 }
00162 #endif
00163 #endif /* SANDESHA2_SEQ_PROPERTY_MGR_H */

Generated on Wed Oct 14 01:02:17 2009 for Sandesha2/C by  doxygen 1.5.7.1