00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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 axis2_char_t *seq_id,
00075 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
00102 AXIS2_DECLARE_DATA struct sandesha2_seq_property_mgr
00103 {
00104 sandesha2_seq_property_mgr_ops_t ops;
00105 };
00106
00107 AXIS2_EXTERN sandesha2_seq_property_mgr_t * AXIS2_CALL
00108 sandesha2_seq_property_mgr_create(
00109 const axutil_env_t *env,
00110 axis2_char_t *dbname);
00111
00112 void AXIS2_CALL
00113 sandesha2_seq_property_mgr_free(
00114 sandesha2_seq_property_mgr_t *seq_property,
00115 const axutil_env_t *envv);
00116
00117 axis2_bool_t AXIS2_CALL
00118 sandesha2_seq_property_mgr_insert(
00119 sandesha2_seq_property_mgr_t *seq_property,
00120 const axutil_env_t *env,
00121 sandesha2_seq_property_bean_t *bean);
00122
00123 axis2_bool_t AXIS2_CALL
00124 sandesha2_seq_property_mgr_remove(
00125 sandesha2_seq_property_mgr_t *seq_property,
00126 const axutil_env_t *env,
00127 axis2_char_t *seq_id,
00128 axis2_char_t *name);
00129
00130 sandesha2_seq_property_bean_t *AXIS2_CALL
00131 sandesha2_seq_property_mgr_retrieve(
00132 sandesha2_seq_property_mgr_t *seq_property,
00133 const axutil_env_t *env,
00134 axis2_char_t *seq_id,
00135 axis2_char_t *name);
00136
00137 axis2_bool_t AXIS2_CALL
00138 sandesha2_seq_property_mgr_update(
00139 sandesha2_seq_property_mgr_t *seq_property,
00140 const axutil_env_t *env,
00141 sandesha2_seq_property_bean_t *bean);
00142
00143 axutil_array_list_t *AXIS2_CALL
00144 sandesha2_seq_property_mgr_find(
00145 sandesha2_seq_property_mgr_t *seq_property,
00146 const axutil_env_t *env,
00147 sandesha2_seq_property_bean_t *bean);
00148
00149 sandesha2_seq_property_bean_t *AXIS2_CALL
00150 sandesha2_seq_property_mgr_find_unique(
00151 sandesha2_seq_property_mgr_t *seq_property,
00152 const axutil_env_t *env,
00153 sandesha2_seq_property_bean_t *bean);
00154
00155 axutil_array_list_t *AXIS2_CALL
00156 sandesha2_seq_property_mgr_retrieve_all(
00157 sandesha2_seq_property_mgr_t *seq_property,
00158 const axutil_env_t *env);
00159
00161 #ifdef __cplusplus
00162 }
00163 #endif
00164 #endif