Esempio n. 1
0
        public AllTypeBean getAllTypeBean(bool aboolean, byte abyte,
                                          short ashort, char achar, int aint, long along, float afloat,
                                          double adouble, DateTime adate, String astring)
        {
            StandardTransferObject to = transferObjectFactory.createTransferObject();

            to.setCalleeClass("com.qileyuan.tatala.example.proxy.TestServerProxy");
            to.setCalleeMethod("getAllTypeBean");
            to.registerReturnType(TransferObject.DATATYPE_WRAPPER);

            to.putBoolean("aboolean", aboolean);
            to.putByte("abyte", abyte);
            to.putShort("ashort", ashort);
            to.putChar("achar", achar);
            to.putInt("aint", aint);
            to.putLong("along", along);
            to.putFloat("afloat", afloat);
            to.putDouble("adouble", adouble);
            to.putDate("adate", adate);
            to.putString("astring", astring);

            AllTypeBeanWrapper allTypeBeanWrapper = (AllTypeBeanWrapper)ServerExecutor.execute(to);

            if (allTypeBeanWrapper != null)
            {
                return(allTypeBeanWrapper.getAllTypeBean());
            }
            else
            {
                return(null);
            }
        }