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

com.myjavadoc.hibernate4.ExporterMojo Maven / Gradle / Ivy

Go to download

Hibernate 4 maven plugin, run hibernate tools from inside maven builds. Based off Codehaus hibernate3-maven-plugin 2.2. The configuration is the same but the performance is alot better. See source for example database reverse engineering to JPA.

The newest version!
package com.myjavadoc.hibernate4;

/*
 * Copyright 2005 Johann Reyes.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import org.apache.maven.plugin.Mojo;
import org.apache.maven.project.MavenProject;

/**
 * Interface for the different types of exporters found in hibernate-tools.
 *
 * @author Johann Reyes
 * @version $Id: ExporterMojo.java 6588 2008-03-28 12:22:57Z bentmann $
 */
public interface ExporterMojo
    extends Mojo
{
    /**
     * Returns the value from the componentProperties element which key is the one being passed.
     *
     * @param key Key
     * @return String
     */
    String getComponentProperty( String key );

    /**
     * Returns the value from the componentProperties element which key is the one being passed, or if
     * is null or empty then returns the default value being specified.
     *
     * @param key          Key
     * @param defaultValue Default value
     * @return String
     */
    String getComponentProperty( String key, String defaultValue );

    /**
     * Returns the value from the componentProperties element as a boolean value, or if a value is not found
     * returns the default value.
     *
     * @param key          Key
     * @param defaultValue Default value
     * @return boolean
     */
    boolean getComponentProperty( String key, boolean defaultValue );

    /**
     * Name of the goal being invoked.
     *
     * @return String goal's name
     */
    String getName();

    /**
     * Returns the MavenProject object.
     *
     * @return MavenProject
     */
    MavenProject getProject();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy