edu.upenn.crimson.io
Class Partitions

java.lang.Object
  extended by edu.upenn.crimson.io.Partitions

public class Partitions
extends java.lang.Object

Functions related to the PARTITIONS table.

Version:
$Id: Partitions.java,v 1.12 2009/07/16 16:19:52 fisher Exp $

Constructor Summary
Partitions()
           
 
Method Summary
static boolean dbContains(java.lang.String id)
          This will return true if a partition exists in PARTITIONS with an id equal to 'id'.
static boolean delete(java.lang.String id)
          Removes a partition from the database.
static void loadAll()
          This will load all partitions from the PARTITIONS table.
 java.lang.String toString()
          Returns the data in the PARTITIONS table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Partitions

public Partitions()
Method Detail

loadAll

public static void loadAll()
This will load all partitions from the PARTITIONS table.


delete

public static boolean delete(java.lang.String id)
Removes a partition from the database. When partitions are deleted, the database will automatically remove the related entries in the PART_DATA table.


dbContains

public static boolean dbContains(java.lang.String id)
This will return true if a partition exists in PARTITIONS with an id equal to 'id'.


toString

public java.lang.String toString()
Returns the data in the PARTITIONS table. Each table record will be separated by a '\n' in the output.

Overrides:
toString in class java.lang.Object



Copyright 2006 Stephen Fisher, Susan Davidson, and Junhyong Kim, University of Pennsylvania.