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

com.agimatec.sql.meta.postgres.PostgresSchemaChecker Maven / Gradle / Ivy

There is a newer version: 2.5.27
Show newest version
package com.agimatec.sql.meta.postgres;

import com.agimatec.sql.meta.CatalogDescription;
import com.agimatec.sql.meta.checking.DatabaseSchemaChecker;
import com.agimatec.sql.meta.script.DDLExpressions;
import com.agimatec.sql.meta.script.DDLScriptSqlMetaFactory;

import java.io.IOException;
import java.sql.SQLException;

/**
 * Description: 
* User: roman.stumm
* Date: 24.04.2007
* Time: 15:03:12
* Copyright: Agimatec GmbH */ public class PostgresSchemaChecker extends DatabaseSchemaChecker { /** * API - check for invalid objects in the database * * @throws Exception */ public void assertObjectsValid() throws Exception { // do nothing (indexes, views, triggers, ... - can they become invalid, how to check this?) } protected DDLScriptSqlMetaFactory getDDLScriptSqlMetaFactory() { return new DDLScriptSqlMetaFactory( DDLExpressions.forDbms("postgres")); } protected CatalogDescription readDatabaseCatalog(String[] tableNames) throws SQLException, IOException { PostgresJdbcSqlMetaFactory factory = new PostgresJdbcSqlMetaFactory(getDatabase()); return factory.buildCatalog(tableNames); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy