/** * Assert that the user did not supply any columns, index, unique * constraint, or foreign key for this mapping. */ public void assertNoSchemaComponents(MetaDataContext context, boolean die) { if (_cols == null || _cols.isEmpty()) { assertNoIndex(context, die); assertNoUnique(context, die); assertNoForeignKey(context, die); return; } Message msg = _loc.get("unexpected-cols", context); if (die) throw new MetaDataException(msg); context.getRepository().getLog().warn(msg); }
/** * Assert that the user did not supply any columns, index, unique * constraint, or foreign key for this mapping. */ public void assertNoSchemaComponents(MetaDataContext context, boolean die) { if (_cols == null || _cols.isEmpty()) { assertNoIndex(context, die); assertNoUnique(context, die); assertNoForeignKey(context, die); return; } Message msg = _loc.get("unexpected-cols", context); if (die) throw new MetaDataException(msg); context.getRepository().getLog().warn(msg); }
/** * Assert that the user did not supply any columns, index, unique * constraint, or foreign key for this mapping. */ public void assertNoSchemaComponents(MetaDataContext context, boolean die) { if (_cols == null || _cols.isEmpty()) { assertNoIndex(context, die); assertNoUnique(context, die); assertNoForeignKey(context, die); return; } Message msg = _loc.get("unexpected-cols", context); if (die) throw new MetaDataException(msg); context.getRepository().getLog().warn(msg); }
/** * Assert that the user did not supply any columns, index, unique * constraint, or foreign key for this mapping. */ public void assertNoSchemaComponents(MetaDataContext context, boolean die) { if (_cols == null || _cols.isEmpty()) { assertNoIndex(context, die); assertNoUnique(context, die); assertNoForeignKey(context, die); return; } Message msg = _loc.get("unexpected-cols", context); if (die) throw new MetaDataException(msg); context.getRepository().getLog().warn(msg); }
/** * Assert that the user did not supply any columns, index, unique * constraint, or foreign key for this mapping. */ public void assertNoSchemaComponents(MetaDataContext context, boolean die) { if (_cols == null || _cols.isEmpty()) { assertNoIndex(context, die); assertNoUnique(context, die); assertNoForeignKey(context, die); return; } Message msg = _loc.get("unexpected-cols", context); if (die) throw new MetaDataException(msg); context.getRepository().getLog().warn(msg); }