/** * Add tables used by sequences to the given schema. */ private void addSequenceComponents(ClassMapping[] mappings) { SchemaGroup group = getSchemaGroup(); for (int i = 0; i < mappings.length; i++) addSequenceComponents(mappings[i], group); }
/** * Add tables used by sequences to the given schema. */ private void addSequenceComponents(ClassMapping[] mappings) { SchemaGroup group = getSchemaGroup(); for (int i = 0; i < mappings.length; i++) addSequenceComponents(mappings[i], group); }
/** * Add tables used by sequences to the given schema. */ private void addSequenceComponents(ClassMapping[] mappings) { SchemaGroup group = getSchemaGroup(); for (int i = 0; i < mappings.length; i++) addSequenceComponents(mappings[i], group); }
/** * Add tables used by sequences to the given schema. */ private void addSequenceComponents(ClassMapping[] mappings) { SchemaGroup group = getSchemaGroup(); for (int i = 0; i < mappings.length; i++) addSequenceComponents(mappings[i], group); }
/** * Add tables used by sequences to the given schema. */ private void addSequenceComponents(ClassMapping[] mappings) { SchemaGroup group = getSchemaGroup(); for (int i = 0; i < mappings.length; i++) addSequenceComponents(mappings[i], group); }
/** * Return the repository to use to access mapping information. * Defaults to a new {@link MappingRepository}. */ public MappingRepository getRepository() { if (_repos == null) { _repos = _conf.newMappingRepositoryInstance(); _repos.setSchemaGroup(getSchemaGroup()); _repos.setValidate(MetaDataRepository.VALIDATE_UNENHANCED, false); } return _repos; }
/** * Return the repository to use to access mapping information. * Defaults to a new {@link MappingRepository}. */ public MappingRepository getRepository() { if (_repos == null) { _repos = _conf.newMappingRepositoryInstance(); _repos.setSchemaGroup(getSchemaGroup()); _repos.setValidate(MetaDataRepository.VALIDATE_UNENHANCED, false); } return _repos; }
/** * Return the repository to use to access mapping information. * Defaults to a new {@link MappingRepository}. */ public MappingRepository getRepository() { if (_repos == null) { _repos = _conf.newMappingRepositoryInstance(); _repos.setSchemaGroup(getSchemaGroup()); _repos.setValidate(_repos.VALIDATE_UNENHANCED, false); } return _repos; }
/** * Return the repository to use to access mapping information. * Defaults to a new {@link MappingRepository}. */ public MappingRepository getRepository() { if (_repos == null) { _repos = _conf.newMappingRepositoryInstance(); _repos.setSchemaGroup(getSchemaGroup()); _repos.setValidate(MetaDataRepository.VALIDATE_UNENHANCED, false); } return _repos; }
/** * Return the repository to use to access mapping information. * Defaults to a new {@link MappingRepository}. */ public MappingRepository getRepository() { if (_repos == null) { _repos = _conf.newMappingRepositoryInstance(); _repos.setSchemaGroup(getSchemaGroup()); _repos.setValidate(MetaDataRepository.VALIDATE_UNENHANCED, false); } return _repos; }
tool.setSchemaGroup(getSchemaGroup()); tool.run(); tool.record(); ser.addAll(getSchemaGroup()); ser.serialize(_schemaWriter, ser.PRETTY); _schemaWriter.flush();
tool.setSchemaGroup(getSchemaGroup()); tool.run(); tool.record(); ser.addAll(getSchemaGroup()); ser.serialize(_schemaWriter, MetaDataSerializer.PRETTY); _schemaWriter.flush();
tool.setSchemaGroup(getSchemaGroup()); tool.run(); tool.record(); ser.addAll(getSchemaGroup()); ser.serialize(_schemaWriter, MetaDataSerializer.PRETTY); _schemaWriter.flush();
tool.setSchemaGroup(getSchemaGroup()); tool.run(); tool.record(); ser.addAll(getSchemaGroup()); ser.serialize(_schemaWriter, MetaDataSerializer.PRETTY); _schemaWriter.flush();
tool.setSchemaGroup(getSchemaGroup()); tool.run(); tool.record(); ser.addAll(getSchemaGroup()); ser.serialize(_schemaWriter, MetaDataSerializer.PRETTY); _schemaWriter.flush();
/** * Drops schema components that appear to be unused from the local * copy of the schema group. */ private void dropUnusedSchemaComponents(ClassMapping[] mappings) { FieldMapping[] fields; for (int i = 0; i < mappings.length; i++) { mappings[i].refSchemaComponents(); mappings[i].getDiscriminator().refSchemaComponents(); mappings[i].getVersion().refSchemaComponents(); fields = mappings[i].getDefinedFieldMappings(); for (int j = 0; j < fields.length; j++) fields[j].refSchemaComponents(); } // also allow the dbdictionary to ref any schema components that // it adds apart from mappings SchemaGroup group = getSchemaGroup(); Schema[] schemas = group.getSchemas(); Table[] tables; for (int i = 0; i < schemas.length; i++) { tables = schemas[i].getTables(); for (int j = 0; j < tables.length; j++) _dict.refSchemaComponents(tables[j]); } group.removeUnusedComponents(); }
/** * Drops schema components that appear to be unused from the local * copy of the schema group. */ private void dropUnusedSchemaComponents(ClassMapping[] mappings) { FieldMapping[] fields; for (int i = 0; i < mappings.length; i++) { mappings[i].refSchemaComponents(); mappings[i].getDiscriminator().refSchemaComponents(); mappings[i].getVersion().refSchemaComponents(); fields = mappings[i].getDefinedFieldMappings(); for (int j = 0; j < fields.length; j++) fields[j].refSchemaComponents(); } // also allow the dbdictionary to ref any schema components that // it adds apart from mappings SchemaGroup group = getSchemaGroup(); Schema[] schemas = group.getSchemas(); Table[] tables; for (int i = 0; i < schemas.length; i++) { tables = schemas[i].getTables(); for (int j = 0; j < tables.length; j++) _dict.refSchemaComponents(tables[j]); } group.removeUnusedComponents(); }
/** * Drops schema components that appear to be unused from the local * copy of the schema group. */ private void dropUnusedSchemaComponents(ClassMapping[] mappings) { FieldMapping[] fields; for (int i = 0; i < mappings.length; i++) { mappings[i].refSchemaComponents(); mappings[i].getDiscriminator().refSchemaComponents(); mappings[i].getVersion().refSchemaComponents(); fields = mappings[i].getDefinedFieldMappings(); for (int j = 0; j < fields.length; j++) fields[j].refSchemaComponents(); } // also allow the dbdictionary to ref any schema components that // it adds apart from mappings SchemaGroup group = getSchemaGroup(); Schema[] schemas = group.getSchemas(); Table[] tables; for (int i = 0; i < schemas.length; i++) { tables = schemas[i].getTables(); for (int j = 0; j < tables.length; j++) _dict.refSchemaComponents(tables[j]); } group.removeUnusedComponents(); }
/** * Drops schema components that appear to be unused from the local * copy of the schema group. */ private void dropUnusedSchemaComponents(ClassMapping[] mappings) { FieldMapping[] fields; for (int i = 0; i < mappings.length; i++) { mappings[i].refSchemaComponents(); mappings[i].getDiscriminator().refSchemaComponents(); mappings[i].getVersion().refSchemaComponents(); fields = mappings[i].getDefinedFieldMappings(); for (int j = 0; j < fields.length; j++) fields[j].refSchemaComponents(); } // also allow the dbdictionary to ref any schema components that // it adds apart from mappings SchemaGroup group = getSchemaGroup(); Schema[] schemas = group.getSchemas(); Table[] tables; for (int i = 0; i < schemas.length; i++) { tables = schemas[i].getTables(); for (int j = 0; j < tables.length; j++) _dict.refSchemaComponents(tables[j]); } group.removeUnusedComponents(); }
/** * Drops schema components that appear to be unused from the local * copy of the schema group. */ private void dropUnusedSchemaComponents(ClassMapping[] mappings) { FieldMapping[] fields; for (int i = 0; i < mappings.length; i++) { mappings[i].refSchemaComponents(); mappings[i].getDiscriminator().refSchemaComponents(); mappings[i].getVersion().refSchemaComponents(); fields = mappings[i].getDefinedFieldMappings(); for (int j = 0; j < fields.length; j++) fields[j].refSchemaComponents(); } // also allow the dbdictionary to ref any schema components that // it adds apart from mappings SchemaGroup group = getSchemaGroup(); Schema[] schemas = group.getSchemas(); Table[] tables; for (int i = 0; i < schemas.length; i++) { tables = schemas[i].getTables(); for (int j = 0; j < tables.length; j++) _dict.refSchemaComponents(tables[j]); } group.removeUnusedComponents(); }