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

org.dbtools.plugin.extensions.BaseDBToolsExtension Maven / Gradle / Ivy

There is a newer version: 11.0.0
Show newest version
package org.dbtools.plugin.extensions;


/**
 * Goal which creates JPA entities based on an DBTools schema.xml file
 *
 * @author Jeff Campbell
 * @version $Id$
 *
 */
public abstract class BaseDBToolsExtension {

    /**
     * Name of the directory where the schema file is located.
     */
    private String schemaDir = "src/main/database";

    /**
     * Name of the schema file to do the generation from.
     */
    private String schemaXMLFilename = "schema.xml";

    public String getSchemaFullFilename() {
        if (schemaDir.endsWith("\\") || schemaDir.endsWith("/")) {
            return schemaDir + schemaXMLFilename;
        } else {
            return schemaDir + "/" + schemaXMLFilename;
        }
    }

    public String getSchemaDir() {
        return schemaDir;
    }

    public void schemaDir(String schemaDir) {
        this.schemaDir = schemaDir;
    }

    public String getSchemaXMLFilename() {
        return schemaXMLFilename;
    }

    public void schemaXMLFilename(String schemaXMLFilename) {
        this.schemaXMLFilename = schemaXMLFilename;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy