1 22 23 package org.continuent.sequoia.controller.requests; 24 25 32 public class ParsingGranularities 33 { 34 35 public static final int NO_PARSING = 0; 36 37 40 public static final int TABLE = 1; 41 42 46 public static final int COLUMN = 2; 47 48 55 public static final int COLUMN_UNIQUE = 3; 56 57 63 public static String getInformation(int granularity) 64 { 65 switch (granularity) 66 { 67 case NO_PARSING : 68 return "NO_PARSING"; 69 case TABLE : 70 return "TABLE"; 71 case COLUMN : 72 return "COLUMN"; 73 case COLUMN_UNIQUE : 74 return "COLUMN_UNIQUE"; 75 default : 76 return "Illegal parsing granularity"; 77 } 78 } 79 } 80 | Popular Tags |