org.nsdl.mptstore.core
Class AbstractDDLGenerator

java.lang.Object
  extended by org.nsdl.mptstore.core.AbstractDDLGenerator
All Implemented Interfaces:
DDLGenerator
Direct Known Subclasses:
DerbyDDLGenerator, H2DDLGenerator, PostgresDDLGenerator

public abstract class AbstractDDLGenerator
extends java.lang.Object
implements DDLGenerator

A partial DDLGenerator that implements the table dropping functionality. Drops are implemented using a single "DROP TABLE $name" command.

Author:
cwilper@cs.cornell.edu

Constructor Summary
AbstractDDLGenerator()
           
 
Method Summary
 java.util.List<java.lang.String> getDropMapTableDDL(java.lang.String table)
          Get the DDL command(s) necessary to drop a map table with the given name.
 java.util.List<java.lang.String> getDropSOTableDDL(java.lang.String table)
          Get the DDL command(s) necessary to drop a subject-object relationship table (aka predicate table) with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nsdl.mptstore.core.DDLGenerator
getCreateMapTableDDL, getCreateSOTableDDL
 

Constructor Detail

AbstractDDLGenerator

public AbstractDDLGenerator()
Method Detail

getDropMapTableDDL

public java.util.List<java.lang.String> getDropMapTableDDL(java.lang.String table)
Get the DDL command(s) necessary to drop a map table with the given name.

Specified by:
getDropMapTableDDL in interface DDLGenerator
Parameters:
table - The map table name.
Returns:
The necessary DDL.

getDropSOTableDDL

public java.util.List<java.lang.String> getDropSOTableDDL(java.lang.String table)
Get the DDL command(s) necessary to drop a subject-object relationship table (aka predicate table) with the given name.

Specified by:
getDropSOTableDDL in interface DDLGenerator
Parameters:
table - The relationship table name.
Returns:
The necessary DDL.