PageRenderTime 10ms CodeModel.GetById 6ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/db-migrate/src/main/java/com/googlecode/hdbc/dbmigrate/processor/CurrentDbVersionProcessor.java

http://hdbc.googlecode.com/
Java | 19 lines | 14 code | 5 blank | 0 comment | 0 complexity | b481aa12f26e73dbf008580b14772f5b MD5 | raw file
 1package com.googlecode.hdbc.dbmigrate.processor;
 2
 3import java.io.IOException;
 4import java.util.EnumMap;
 5import java.util.List;
 6
 7import com.googlecode.hdbc.dbmigrate.Key;
 8import com.googlecode.hdbc.dbmigrate.MenuItem;
 9
10public class CurrentDbVersionProcessor implements IInputProcessor {
11
12    public final void process(final String input, final List<MenuItem> items,
13            final EnumMap<Key, String> params) throws IOException {
14        params.put(Key.CURRENT_DB_VERSION, input.trim());
15        MenuItem next = items.get(0);
16        next.runSubMenu(params);
17    }
18
19}