&& (_schemaWriter == null || (_schemaTool != null && _schemaTool.getWriter() != null))) { SchemaTool tool = newSchemaTool(schemaActions[i]);
&& (_schemaWriter == null || (_schemaTool != null && _schemaTool.getWriter() != null))) { SchemaTool tool = newSchemaTool(schemaActions[i]);
&& (_schemaWriter == null || (_schemaTool != null && _schemaTool.getWriter() != null))) { SchemaTool tool = newSchemaTool(schemaActions[i]);
schemaActions[i].equals(ACTION_SCRIPT_DROP) || schemaActions[i].equals(ACTION_SCRIPT_LOAD)) { tool = newSchemaTool(SchemaTool.ACTION_EXECUTE_SCRIPT); } else { tool = newSchemaTool(schemaActions[i]);
schemaActions[i].equals(ACTION_SCRIPT_DROP) || schemaActions[i].equals(ACTION_SCRIPT_LOAD)) { tool = newSchemaTool(SchemaTool.ACTION_EXECUTE_SCRIPT); } else { tool = newSchemaTool(schemaActions[i]);
/** * Return the schema group to use in mapping. If none has been set, the * schema will be generated from the database. */ public SchemaGroup getSchemaGroup() { if (_schema == null) { if (_action.indexOf(ACTION_BUILD_SCHEMA) != -1) { DynamicSchemaFactory factory = new DynamicSchemaFactory(); factory.setConfiguration(_conf); _schema = factory; } else if (_readSchema || contains(_schemaActions,SchemaTool.ACTION_RETAIN) || contains(_schemaActions,SchemaTool.ACTION_REFRESH)) { _schema = (SchemaGroup) newSchemaTool(null).getDBSchemaGroup(). clone(); } else { // with this we'll just read tables as different mappings // look for them LazySchemaFactory factory = new LazySchemaFactory(); factory.setConfiguration(_conf); factory.setPrimaryKeys(getPrimaryKeys()); factory.setForeignKeys(getForeignKeys()); factory.setIndexes(getIndexes()); _schema = factory; } if (_schema.getSchemas().length == 0) _schema.addSchema(); } return _schema; }
/** * Return the schema group to use in mapping. If none has been set, the * schema will be generated from the database. */ public SchemaGroup getSchemaGroup() { if (_schema == null) { if (_action.indexOf(ACTION_BUILD_SCHEMA) != -1) { DynamicSchemaFactory factory = new DynamicSchemaFactory(); factory.setConfiguration(_conf); _schema = factory; } else if (_readSchema || contains(_schemaActions,SchemaTool.ACTION_RETAIN) || contains(_schemaActions,SchemaTool.ACTION_REFRESH)) { _schema = (SchemaGroup) newSchemaTool(null).getDBSchemaGroup(). clone(); } else { // with this we'll just read tables as different mappings // look for them LazySchemaFactory factory = new LazySchemaFactory(); factory.setConfiguration(_conf); factory.setPrimaryKeys(getPrimaryKeys()); factory.setForeignKeys(getForeignKeys()); factory.setIndexes(getIndexes()); _schema = factory; } if (_schema.getSchemas().length == 0) _schema.addSchema(); } return _schema; }
/** * Return the schema group to use in mapping. If none has been set, the * schema will be generated from the database. */ public SchemaGroup getSchemaGroup() { if (_schema == null) { if (_action.indexOf(ACTION_BUILD_SCHEMA) != -1) { DynamicSchemaFactory factory = new DynamicSchemaFactory(); factory.setConfiguration(_conf); _schema = factory; } else if (_readSchema || contains(_schemaActions,SchemaTool.ACTION_RETAIN) || contains(_schemaActions,SchemaTool.ACTION_REFRESH)) { _schema = (SchemaGroup) newSchemaTool(null).getDBSchemaGroup(). clone(); } else { // with this we'll just read tables as different mappings // look for them LazySchemaFactory factory = new LazySchemaFactory(); factory.setConfiguration(_conf); factory.setPrimaryKeys(getPrimaryKeys()); factory.setForeignKeys(getForeignKeys()); factory.setIndexes(getIndexes()); _schema = factory; } if (_schema.getSchemas().length == 0) _schema.addSchema(); } return _schema; }
/** * Return the schema group to use in mapping. If none has been set, the * schema will be generated from the database. */ public SchemaGroup getSchemaGroup() { if (_schema == null) { if (_action.indexOf(ACTION_BUILD_SCHEMA) != -1) { DynamicSchemaFactory factory = new DynamicSchemaFactory(); factory.setConfiguration(_conf); _schema = factory; } else if (_readSchema || contains(_schemaActions,SchemaTool.ACTION_RETAIN) || contains(_schemaActions,SchemaTool.ACTION_REFRESH)) { _schema = (SchemaGroup) newSchemaTool(null).getDBSchemaGroup(). clone(); } else { // with this we'll just read tables as different mappings // look for them LazySchemaFactory factory = new LazySchemaFactory(); factory.setConfiguration(_conf); factory.setPrimaryKeys(getPrimaryKeys()); factory.setForeignKeys(getForeignKeys()); factory.setIndexes(getIndexes()); _schema = factory; } if (_schema.getSchemas().length == 0) _schema.addSchema(); } return _schema; }
/** * Return the schema group to use in mapping. If none has been set, the * schema will be generated from the database. */ public SchemaGroup getSchemaGroup() { if (_schema == null) { if (_action.indexOf(ACTION_BUILD_SCHEMA) != -1) { DynamicSchemaFactory factory = new DynamicSchemaFactory(); factory.setConfiguration(_conf); _schema = factory; } else if (_readSchema || contains(_schemaActions,SchemaTool.ACTION_RETAIN) || contains(_schemaActions,SchemaTool.ACTION_REFRESH)) { _schema = (SchemaGroup) newSchemaTool(null).getDBSchemaGroup(). clone(); } else { // with this we'll just read tables as different mappings // look for them LazySchemaFactory factory = new LazySchemaFactory(); factory.setConfiguration(_conf); factory.setPrimaryKeys(getPrimaryKeys()); factory.setForeignKeys(getForeignKeys()); factory.setIndexes(getIndexes()); _schema = factory; } if (_schema.getSchemas().length == 0) _schema.addSchema(); } return _schema; }