# sandesha2_rm_bean.h

    00001 /*
    00002  * copyright 1999-2004 The Apache Software Foundation.
    00003  *
    00004  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
    00005  * use this file except in compliance with the License. You may obtain a copy of
    00006  * 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, WITHOUT
    00012  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
    00013  * License for the specific language governing permissions and limitations under
    00014  * the License.
    00015  */
    00016
    00017 #ifndef SANDESHA2_RM_BEAN_H
    00018 #define SANDESHA2_RM_BEAN_H
    00019
    00020 #include <axutil_qname.h>
    00021 #include <axutil_env.h>
    00022 #include <axutil_utils.h>
    00023 #include <axutil_utils_defines.h>
    00024
    00025 #ifdef __cplusplus
    00026 extern "C"
    00027 {
    00028 #endif
    00029
    00030 typedef struct sandesha2_rm_bean sandesha2_rm_bean_t;
    00031 typedef struct sandesha2_rm_bean_ops sandesha2_rm_bean_ops_t;
    00032 struct sandesha2_transaction;
    00033
    00034 AXIS2_DECLARE_DATA struct sandesha2_rm_bean_ops
    00035 {
    00036     void (AXIS2_CALL *
    00037             free) (
    00038                 sandesha2_rm_bean_t *rm_bean,
    00039                 const axutil_env_t *env);
    00040
    00041     sandesha2_rm_bean_t * (AXIS2_CALL *
    00042             get_base) (
    00043                 sandesha2_rm_bean_t *rm_bean,
    00044                 const axutil_env_t *env);
    00045
    00046     void (AXIS2_CALL *
    00047             set_id) (
    00048                 sandesha2_rm_bean_t *rm_bean,
    00049                 const axutil_env_t *env,
    00050                 long id);
    00051
    00052     long (AXIS2_CALL *
    00053             get_id) (
    00054                 sandesha2_rm_bean_t *rm_bean,
    00055                 const axutil_env_t *env);
    00056
    00057     void (AXIS2_CALL *
    00058             set_transaction) (
    00059                 sandesha2_rm_bean_t *rm_bean,
    00060                 const axutil_env_t *env,
    00061                 struct sandesha2_transaction *transaction);
    00062
    00063     struct sandesha2_transaction *(AXIS2_CALL *
    00064             get_transaction) (
    00065                 sandesha2_rm_bean_t *rm_bean,
    00066                 const axutil_env_t *env);
    00067
    00068     axis2_char_t *(AXIS2_CALL *
    00069             get_key) (
    00070                 sandesha2_rm_bean_t *rm_bean,
    00071                 const axutil_env_t *env);
    00072 };
    00073
    00074 AXIS2_DECLARE_DATA struct sandesha2_rm_bean
    00075 {
    00076     sandesha2_rm_bean_ops_t ops;
    00077 };
    00078
    00079 /* constructors
    00080  */
    00081 AXIS2_EXTERN sandesha2_rm_bean_t* AXIS2_CALL
    00082 sandesha2_rm_bean_create(
    00083     const axutil_env_t *env);
    00084
    00085 void AXIS2_CALL
    00086 sandesha2_rm_bean_free(
    00087     sandesha2_rm_bean_t *rm_bean,
    00088         const axutil_env_t *env);
    00089
    00090 sandesha2_rm_bean_t * AXIS2_CALL
    00091 sandesha2_rm_bean_get_base(
    00092     sandesha2_rm_bean_t *rm_bean,
    00093     const axutil_env_t *env);
    00094
    00095 void AXIS2_CALL
    00096 sandesha2_rm_bean_set_id(
    00097     sandesha2_rm_bean_t *rm_bean,
    00098         const axutil_env_t *env,
    00099     long id);
    00100
    00101 long AXIS2_CALL
    00102 sandesha2_rm_bean_get_id(
    00103     sandesha2_rm_bean_t *rm_bean,
    00104         const axutil_env_t *env);
    00105
    00106 void AXIS2_CALL
    00107 sandesha2_rm_bean_set_transaction(
    00108     sandesha2_rm_bean_t *rm_bean,
    00109         const axutil_env_t *env,
    00110     struct sandesha2_transaction *transaction);
    00111
    00112 struct sandesha2_transaction *AXIS2_CALL
    00113 sandesha2_rm_bean_get_transaction(
    00114     sandesha2_rm_bean_t *rm_bean,
    00115         const axutil_env_t *env);
    00116
    00117 axis2_char_t *AXIS2_CALL
    00118 sandesha2_rm_bean_get_key(
    00119     sandesha2_rm_bean_t *rm_bean,
    00120         const axutil_env_t *env);
    00121
    00122 #ifdef __cplusplus
    00123 }
    00124
    00125 #endif
    00126
    00127 #endif /* End of SANDESHA2_RM_BEAN_H */