Package info.archinnov.achilles.exception

Examples of info.archinnov.achilles.exception.AchillesInvalidTableException


    Matcher nameMatcher = CF_PATTERN.matcher(name);

    if (nameMatcher.matches()) {
      return name;
    } else {
      throw new AchillesInvalidTableException("The schema name '" + name
          + "' is invalid. It should respect the pattern [a-zA-Z0-9][a-zA-Z0-9_]{1,47} optionally enclosed in double quotes (\")");
    }
  }
View Full Code Here


        String tableName = entityMeta.config().getQualifiedTableName();
        if (configContext.isForceColumnFamilyCreation()) {
            log.debug("Force creation of table for entityMeta {}", entityMeta.getClassName());
            createTableForEntity(session, entityMeta);
        } else {
            throw new AchillesInvalidTableException(format("The required table '%s' does not exist for entity '%s'", tableName, entityMeta.getClassName()));
        }
    }
View Full Code Here

                    .withOptions().comment("Create default Achilles counter table \"" + ACHILLES_COUNTER_TABLE + "\"")
                    .build();

            session.execute(createTable);
        } else {
            throw new AchillesInvalidTableException("The required generic table '" + ACHILLES_COUNTER_TABLE + "' does not exist");
        }
    }
View Full Code Here

        }
    }

    public static void validateTableTrue(boolean condition, String message, Object... args) {
        if (!condition) {
            throw new AchillesInvalidTableException(format(message, args));
        }
    }
View Full Code Here

        }
    }

    public static void validateTableFalse(boolean condition, String message, Object... args) {
        if (condition) {
            throw new AchillesInvalidTableException(format(message, args));
        }
    }
View Full Code Here

TOP

Related Classes of info.archinnov.achilles.exception.AchillesInvalidTableException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.