Example #1
0
        private static IAlterUserAction SetAccount(PlSqlParser.SetAccountActionContext context)
        {
            UserStatus status;
            if (context.LOCK() != null) {
                status = UserStatus.Locked;
            } else if (context.UNLOCK() != null) {
                status = UserStatus.Unlocked;
            } else {
                throw new ParseCanceledException();
            }

            return new SetAccountStatusAction(status);
        }