dke.smwp.db
Class DB_smwp_publish_fc

java.lang.Object
  |
  +--dke.smwp.db.DB_smwp_publish_fc

public class DB_smwp_publish_fc
extends java.lang.Object

database handling for table SMWP_PUBLISH_FC;

Defines XML serialization of fragment classes. Every fragment class refers an root element (fragment element) which contains for each tuple an child element (tuple element)

SMWP_PUBLISH_FC (
   FC_NAME                  VARCHAR2 (255)
   NS_URI                   VARCHAR2 (500)
   FC_ELEMENT_LOCALNAME     VARCHAR2 (100)
   TUPLE_ELEMENT_LOCALNAME  VARCHAR2 (100)
 )

Version:
1.0
Author:
Werner Enser

Field Summary
private  ConnectionPool _connectionPool
          ConnectionPool handle
static java.lang.String COLUMN_FC_ELEMENT_LOCALNAME
          class name for local name of fragment elements
static java.lang.String COLUMN_FC_NAME
          class name for fragment class name (longname)
static java.lang.String COLUMN_NAMESPACE
          class name for namespace URI of frament element and its tuple elements
static java.lang.String COLUMN_TUPLE_ELEMENT_LOCALNAME
          class name for local name of tuple elements
static java.lang.String TABLENAME_SMWP_PUBLISH_FC
          tablename for publication information of fragment class
 
Constructor Summary
DB_smwp_publish_fc()
          default constructor
 
Method Summary
 boolean delete(java.lang.String fc_longName)
          deletes publishing information for given Fragment Class
 java.lang.String getFCElementLocalname(java.lang.String fc_longName)
          fetches fc_element_localname from meta-data table for given Fragment Class
 java.util.Hashtable getPublishingInfo(java.lang.String fc_longName)
          fetches xml publishing information for given Fragment Class
 java.lang.String getTupleElementLocalname(java.lang.String fc_longName)
          fetches tuple_element_localname from meta-data table for given fragment class
 void set(java.lang.String fc_longName, java.lang.String ns_uri, java.lang.String fc_element_localname, java.lang.String tuple_element_localname)
          saves xml publishing information for given Fragment Class
 void set(java.lang.String fc_longName, XMLPublishFCStatement xmlPublishStmt)
          saves xml publishing information for given fragment class
 void update(java.lang.String fc_longName, java.lang.String ns_uri, java.lang.String fc_element_localname, java.lang.String tuple_element_localname)
          updates xml publishing information for given fragment class
 void update(java.lang.String fc_longName, XMLPublishFCStatement xmlPublishStmt)
          updates xml publishing information for given fragment class
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

TABLENAME_SMWP_PUBLISH_FC

public static final java.lang.String TABLENAME_SMWP_PUBLISH_FC
tablename for publication information of fragment class

COLUMN_FC_NAME

public static final java.lang.String COLUMN_FC_NAME
class name for fragment class name (longname)

COLUMN_NAMESPACE

public static final java.lang.String COLUMN_NAMESPACE
class name for namespace URI of frament element and its tuple elements

COLUMN_FC_ELEMENT_LOCALNAME

public static final java.lang.String COLUMN_FC_ELEMENT_LOCALNAME
class name for local name of fragment elements

COLUMN_TUPLE_ELEMENT_LOCALNAME

public static final java.lang.String COLUMN_TUPLE_ELEMENT_LOCALNAME
class name for local name of tuple elements

_connectionPool

private ConnectionPool _connectionPool
ConnectionPool handle
Constructor Detail

DB_smwp_publish_fc

public DB_smwp_publish_fc()
default constructor
Method Detail

delete

public boolean delete(java.lang.String fc_longName)
deletes publishing information for given Fragment Class
Parameters:
fc_longName - name of Fragment Class

getFCElementLocalname

public java.lang.String getFCElementLocalname(java.lang.String fc_longName)
fetches fc_element_localname from meta-data table for given Fragment Class
Parameters:
fc_longName - name of Fragment Class

getPublishingInfo

public java.util.Hashtable getPublishingInfo(java.lang.String fc_longName)
fetches xml publishing information for given Fragment Class
Parameters:
fc_longName - name of Fragment Class whose xml publishing information is fetched

getTupleElementLocalname

public java.lang.String getTupleElementLocalname(java.lang.String fc_longName)
fetches tuple_element_localname from meta-data table for given fragment class
Parameters:
fc_longName - name of fragment Class

set

public void set(java.lang.String fc_longName,
                XMLPublishFCStatement xmlPublishStmt)
         throws java.sql.SQLException
saves xml publishing information for given fragment class
Parameters:
fc_longName - name of fragment class whose publishing information is to be saved
xmlPublishStmt - xml publishing information
Throws:
java.sql.SQLException - failed to save publishing information

set

public void set(java.lang.String fc_longName,
                java.lang.String ns_uri,
                java.lang.String fc_element_localname,
                java.lang.String tuple_element_localname)
         throws java.sql.SQLException
saves xml publishing information for given Fragment Class
Parameters:
fc_longName - name of Fragment Class whose publishing information is to be saved
ns_uri - namespace for Fragment Class
fc_element_localname - name of Fragment Class fragment in xml document
tuple_element_localname - name of tuples Fragment Class in xml document
Throws:
java.sql.SQLException - failed to save publishing information

update

public void update(java.lang.String fc_longName,
                   XMLPublishFCStatement xmlPublishStmt)
            throws java.sql.SQLException
updates xml publishing information for given fragment class
Parameters:
fc_longName - name of fragment class whose publishing information is to be updated
xmlPublishStmt - xml publishing information which overwrites the old information
Throws:
java.sql.SQLException - updating data fails

update

public void update(java.lang.String fc_longName,
                   java.lang.String ns_uri,
                   java.lang.String fc_element_localname,
                   java.lang.String tuple_element_localname)
            throws java.sql.SQLException
updates xml publishing information for given fragment class
Parameters:
fc_longName - name of fragment class whose publishing information is to be updated
ns_uri - namespace for fragment class
fc_element_localname - name of fragment class fragment in xml document
tuple_element_localname - name of tuples fragment class in xml document
Throws:
java.sql.SQLException - updating data fails