1 package mobisnap; 2 3 /*** 4 * @version 0.045 12-Dec-2000 5 * @author Nuno Pregui´┐Ża 6 */ 7 public class MobisnapConstants 8 { 9 // Mobisnap client mode code 10 public static final int MODE_SERVERONLY = 1; 11 public static final int MODE_SERVERIFPOSSIBLE = 2; 12 public static final int MODE_DISCONNECTED = 3; 13 14 // message codes 15 // client->server 16 public static final short MSG_CS_GETUID = 100; 17 public static final short MSG_CS_CREATESNAPSHOT = 101; 18 public static final short MSG_CS_SUBMITTRX = 102; 19 public static final short MSG_CS_GETRESERVATION = 103; 20 public static final short MSG_CS_SUBMITSYNCTRX = 104; 21 public static final short MSG_CS_SUBMITSYNCQUERY = 105; 22 public static final short MSG_CS_GETCLUID = 106; 23 public static final short MSG_CS_ADDITIONALSNAPSHOT = 107; 24 public static final short MSG_CS_OPENSESSION = 108; 25 public static final short MSG_CS_CLOSESESSION = 109; 26 27 // Interpreter processing type 28 public static final int MSQL_SERVER = 1; 29 public static final int MSQL_TENTATIVE_CLIENT = 2; 30 public static final int MSQL_STABLE_CLIENT = 3; 31 public static final int MSQL_RESERVATION_CLIENT = 4; 32 public static final int MSQL_ORIGINAL = 5; // return the original text 33 public static final int MSQL_STATIC = 10; 34 35 // mobile transaction result 36 public static final int MSQLR_SERVER_COMMIT = 1000; 37 public static final int MSQLR_RESERVATION_COMMIT = 1001; 38 public static final int MSQLR_TENTATIVE_COMMIT = 1002; 39 public static final int MSQLR_TENTATIVE_ABORT = 1003; 40 public static final int MSQLR_UNKNOWN = 1004; 41 public static final int MSQLR_SERVER_ABORT = 1005; 42 43 // mobile transaction result in clients 44 // this constants are deprecated 45 public static final int MSQLCR_RESERVATION_COMMIT = MSQLR_RESERVATION_COMMIT; 46 public static final int MSQLCR_TENTATIVE_COMMIT = MSQLR_TENTATIVE_COMMIT; 47 public static final int MSQLCR_TENTATIVE_ABORT = MSQLR_TENTATIVE_ABORT; 48 public static final int MSQLCR_UNKNOWN = MSQLR_UNKNOWN; 49 50 // mobile transaction result in servers 51 // this constants are deprecated 52 public static final int MSQLSR_COMMIT = MSQLR_SERVER_COMMIT; 53 public static final int MSQLSR_ABORT = MSQLR_SERVER_ABORT; 54 55 // general propose constants 56 public final static String systemFileSeparator = System.getProperty( "file.separator"); 57 58 // awareness transaports 59 public static final String Email_Media = "SMTP"; 60 public static final String SMS_Media = "SMS"; 61 62 // Reservation type 63 public static final int RSV_ESCROW = 1; 64 public static final int RSV_SLOT = 2; 65 public static final int RSV_VALUE_USE = 3; 66 public static final int RSV_VALUE_CHANGE = 4; 67 68 // Specifies it 69 public static boolean server; 70 }

This page was automatically generated by Maven