1 24 25 package org.objectweb.cjdbc.common.util; 26 27 33 public class Constants 34 { 35 36 public static final String VERSION = "@VERSION@"; 37 38 43 public static final int getMajorVersion() 44 { 45 int ind = VERSION.indexOf('.'); 46 if (ind > 0) 47 return Integer.parseInt(VERSION.substring(0, ind)); 48 else 49 return 1; 50 } 51 52 57 public static final int getMinorVersion() 58 { 59 int ind = VERSION.indexOf('.'); 60 if (ind > 0) 61 return Integer.parseInt(VERSION.substring(ind + 1, ind + 2)); 62 else 63 return 0; 64 } 65 66 70 public static final int SQL_SHORT_FORM_LENGTH = 40; 71 72 73 public static final int SHUTDOWN_WAIT = 1; 74 78 public static final int SHUTDOWN_SAFE = 2; 79 83 public static final int SHUTDOWN_FORCE = 3; 84 85 86 public static final String C_JDBC_DTD_FILE = "c-jdbc.dtd"; 87 88 } | Popular Tags |