1 33 package smallsql.database; 34 35 36 public class CommandSet extends Command { 37 38 int isolationLevel; 39 40 CommandSet( Logger log, int type ){ 41 super(log); 42 this.type = type; 43 } 44 45 void executeImpl(SSConnection con, SSStatement st) throws java.sql.SQLException { 46 switch(type){ 47 case SQLTokenizer.LEVEL: 48 con.isolationLevel = isolationLevel; 49 break; 50 case SQLTokenizer.USE: 51 con.setCatalog(name); 52 break; 53 default: 54 throw new Error (); 55 } 56 } 57 } | Popular Tags |