1 package mobisnap.mobile_trx; 2 3 import mobisnap.*; 4 5 /*** 6 * Used to represent the notify funtion internally 7 */ 8 public class MSQLTFunNotify 9 implements MSQLTFunction 10 { 11 public MSQLTFunNotify() { 12 // do nothing 13 } 14 15 /*** 16 * Returns the value of the variable 17 */ 18 public Object getValue() throws Exception { 19 throw new mobisnap.MobisnapException( "Notify: getValue requires 3 parameters"); 20 } 21 22 /*** 23 * Returns the value of the function / executes subroutine 24 */ 25 public Object getValue( Object[] params) throws Exception { 26 System.out.println( "Notify not supported"); 27 return null; 28 } 29 30 /*** 31 * Sets the value of the given variable 32 */ 33 public void setValue( Object obj) throws Exception { 34 throw new mobisnap.MobisnapException( "setValue can not be applied to functions"); 35 } 36 37 /*** 38 * Returns true if the following parameters can be the parameters of 39 * the function 40 */ 41 public boolean parametersOK( Object[] params) { 42 if( params == null || params.length != 3) 43 return false; 44 for( int i = 0; i < 3; i++) 45 if( ! ( params[i] instanceof String)) 46 return false; 47 return true; 48 } 49 }

This page was automatically generated by Maven