cgl.fthpis.datastore.jdbc
Class AttributeCategoryTable

java.lang.Object
  extended bycgl.fthpis.datastore.jdbc.AttributeCategoryTable

public class AttributeCategoryTable
extends java.lang.Object

Author:
Mehmet S. Aktas (maktas@indiana.edu)

Field Summary
(package private) static java.lang.String deleteSQL
           
(package private) static java.lang.String insertSQL
           
(package private) static java.lang.String selectSQL
           
 
Constructor Summary
AttributeCategoryTable()
           
 
Method Summary
static void delete(java.lang.String attributeKey, java.sql.Connection connection)
          Delete multiple rows from the BINDING_CATEGORY table that are assigned to the BindingKey specified.
static void insert(java.lang.String attributeKey, java.util.Vector keyRefs, java.sql.Connection connection)
          Insert new row into the BINDING_CATEGORY table.
static void main(java.lang.String[] args)
           
static java.util.Vector select(java.lang.String attributeKey, java.sql.Connection connection)
          Select all rows from the BINDING_CATEGORY table for a given BindingKey.
static void test(java.sql.Connection connection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

insertSQL

static java.lang.String insertSQL

selectSQL

static java.lang.String selectSQL

deleteSQL

static java.lang.String deleteSQL
Constructor Detail

AttributeCategoryTable

public AttributeCategoryTable()
Method Detail

insert

public static void insert(java.lang.String attributeKey,
                          java.util.Vector keyRefs,
                          java.sql.Connection connection)
                   throws java.sql.SQLException
Insert new row into the BINDING_CATEGORY table.

Parameters:
keyRefs - A Vector of KeyedReference instances to insert.
connection - JDBC connection
Throws:
java.sql.SQLException

select

public static java.util.Vector select(java.lang.String attributeKey,
                                      java.sql.Connection connection)
                               throws java.sql.SQLException
Select all rows from the BINDING_CATEGORY table for a given BindingKey.

Parameters:
connection - JDBC connection
Throws:
java.sql.SQLException

delete

public static void delete(java.lang.String attributeKey,
                          java.sql.Connection connection)
                   throws java.sql.SQLException
Delete multiple rows from the BINDING_CATEGORY table that are assigned to the BindingKey specified.

Parameters:
connection - JDBC connection
Throws:
java.sql.SQLException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

test

public static void test(java.sql.Connection connection)
                 throws java.lang.Exception
Throws:
java.lang.Exception