org.apache.oodt.cas.filemgr.util
Class DbStructFactory

java.lang.Object
  extended by org.apache.oodt.cas.filemgr.util.DbStructFactory

public final class DbStructFactory
extends Object

Version:
$Revsion$

Object creation utilities to create File Manager objects from SQL ResultSets.

Author:
mattmann

Constructor Summary
DbStructFactory()
           
 
Method Summary
static Element getElement(ResultSet rs)
           
static String getParent(ResultSet rs)
           
static Product getProduct(ResultSet rs)
           
static Product getProduct(ResultSet rs, boolean getType)
           
static ProductType getProductType(ResultSet rs)
           
static Reference getReference(ResultSet rs)
           
static Element toScienceDataElement(ResultSet rs)
           
static Product toScienceDataProduct(ResultSet rs)
           
static ProductType toScienceDataProductType(ResultSet rs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbStructFactory

public DbStructFactory()
Method Detail

getProductType

public static ProductType getProductType(ResultSet rs)
                                  throws SQLException
Throws:
SQLException

getProduct

public static Product getProduct(ResultSet rs)
                          throws SQLException
Throws:
SQLException

getProduct

public static Product getProduct(ResultSet rs,
                                 boolean getType)
                          throws SQLException
Throws:
SQLException

getReference

public static Reference getReference(ResultSet rs)
                              throws SQLException
Throws:
SQLException

getElement

public static Element getElement(ResultSet rs)
                          throws SQLException
Throws:
SQLException

getParent

public static String getParent(ResultSet rs)
                        throws SQLException
Throws:
SQLException

toScienceDataElement

public static Element toScienceDataElement(ResultSet rs)
                                    throws SQLException
Throws:
SQLException

toScienceDataProduct

public static Product toScienceDataProduct(ResultSet rs)
                                    throws SQLException
Throws:
SQLException

toScienceDataProductType

public static ProductType toScienceDataProductType(ResultSet rs)
                                            throws SQLException
Throws:
SQLException


Copyright © 1999-2011 Apache OODT. All Rights Reserved.