1 24 25 package org.objectweb.cjdbc.common.sql; 26 27 34 public class ParsingGranularities 35 { 36 37 public static final int NO_PARSING = 0; 38 39 42 public static final int TABLE = 1; 43 44 48 public static final int COLUMN = 2; 49 50 58 public static final int COLUMN_UNIQUE = 3; 59 60 66 public static String getInformation(int granularity) 67 { 68 switch (granularity) 69 { 70 case NO_PARSING : 71 return "NO_PARSING"; 72 case TABLE : 73 return "TABLE"; 74 case COLUMN : 75 return "COLUMN"; 76 case COLUMN_UNIQUE : 77 return "COLUMN_UNIQUE"; 78 default : 79 return "Illegal parsing granularity"; 80 } 81 } 82 } 83 | Popular Tags |