Beispiel #1
0
        public void addTable(String tableName)
        {
            if (tables.ContainsKey(tableName))
            {
                Logger.getInstance().log("Adding table that exists", LOGGING_NAME, Logger.Level.WARNING);
                return;
            }

            tables[tableName] = new TableState(tableName);
        }
Beispiel #2
0
        protected TableState getTableByName(String tableName)
        {
            TableState ts = null;
            if (tables.ContainsKey(tableName))
            {
                ts = tables[tableName];
            }
            if (ts == null)
            {
                ts = new TableState(tableName);
                tables[tableName] = ts;
            }

            return ts;
        }