
com.samskivert.depot.impl.clause.DropIndexClause Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of depot Show documentation
Show all versions of depot Show documentation
A library for relational-database-based persistence in Java.
//
// 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 extends PersistentRecord> pClass, String name)
{
_pClass = pClass;
_name = name;
}
public Class extends PersistentRecord> 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 extends PersistentRecord> _pClass;
protected String _name;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy