All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dk.eobjects.metamodel.schema.JdbcSchema Maven / Gradle / Ivy

/**
 *  This file is part of MetaModel.
 *
 *  MetaModel is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  MetaModel is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with MetaModel.  If not, see .
 */
package dk.eobjects.metamodel.schema;

import dk.eobjects.metamodel.JdbcDataContextStrategy;

public class JdbcSchema extends Schema {

	private static final long serialVersionUID = 7543633400859277467L;
	private JdbcDataContextStrategy _strategy;
	private boolean _relationsLoaded = false;

	public JdbcSchema(String name, JdbcDataContextStrategy strategy) {
		super(name);
		_strategy = strategy;
	}

	public void loadRelations() {
		if (!_relationsLoaded) {
			_relationsLoaded = true;
			_strategy.loadRelations(this);
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy