@Override public List<? extends BitFieldAction> getActionsByCode(int actionCode) { List<MyComponentAction> actions = Lists.newArrayList(); for (MyComponentActionType action : MyComponentActionType.getActionByCode(actionCode)) { actions.add(new MyComponentAction(action)); } return actions; }
@Override public List<? extends BitFieldAction> getActionsByCode(int actionCode) { List<MyComponentAction> actions = Lists.newArrayList(); for (MyComponentActionType action : MyComponentActionType.getActionByCode(actionCode)) { actions.add(new MyComponentAction(action)); } return actions; }
@Override public BitFieldAction getActionByName(String name) { // Check the name is All if (SqoopActionConstant.ALL_NAME.equalsIgnoreCase(name)) { return new MyComponentAction(MyComponentActionType.ALL); } return new MyComponentAction(name); } }
@Override public BitFieldAction getActionByName(String name) { // Check the name is All if (SqoopActionConstant.ALL_NAME.equalsIgnoreCase(name)) { return new MyComponentAction(MyComponentActionType.ALL); } return new MyComponentAction(name); } }