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

com.samskivert.depot.impl.clause.DropIndexClause Maven / Gradle / Ivy

There is a newer version: 1.7.5
Show newest version
//
// Depot library - a Java relational persistence library
// http://code.google.com/p/depot/source/browse/trunk/LICENSE

package com.samskivert.depot.impl.clause;

import java.util.Collection;

import com.samskivert.depot.PersistentRecord;
import com.samskivert.depot.clause.QueryClause;

import com.samskivert.depot.impl.FragmentVisitor;

/**
 * Represents an DROP INDEX instruction to the database.
 */
public class DropIndexClause
    implements QueryClause
{
    public DropIndexClause (Class pClass, String name)
    {
        _pClass = pClass;
        _name = name;
    }

    public Class getPersistentClass ()
    {
        return _pClass;
    }

    public String getName ()
    {
        return _name;
    }

    // from SQLFragment
    public void addClasses (Collection> classSet)
    {
        classSet.add(_pClass);
    }

    // from SQLFragment
    public Object accept (FragmentVisitor builder)
    {
        return builder.visit(this);
    }

    protected Class _pClass;

    protected String _name;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy