org.gcube.vremanagement.softwarerepository.db
Class PluginRow

java.lang.Object
  extended by org.gcube.vremanagement.softwarerepository.db.PluginRow

public class PluginRow
extends java.lang.Object

A plugin row in the Plugins table

Author:
Manuele Simi (ISTI-CNR)

Field Summary
static java.lang.String GROUP_PLUGIN_SERVICE_ID
           
static java.lang.String GROUP_TARGET_SERVICE_ID
           
static java.lang.String PLUGIN_SERVICE_ID
          pluginServiceID field name
static java.lang.String TABLE_NAME
          Table Name
 
Constructor Summary
PluginRow(java.lang.String pluginServiceID, java.lang.String groupPluginServiceID, java.lang.String groupTargetServiceID, SQLDBManager dbManager)
          Builds a new Plugin row
 
Method Summary
 void deleteRow()
          Delete the row from table on DB
 void insertRow()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TABLE_NAME

public static final java.lang.String TABLE_NAME
Table Name

See Also:
Constant Field Values

PLUGIN_SERVICE_ID

public static final java.lang.String PLUGIN_SERVICE_ID
pluginServiceID field name

See Also:
Constant Field Values

GROUP_TARGET_SERVICE_ID

public static final java.lang.String GROUP_TARGET_SERVICE_ID
See Also:
Constant Field Values

GROUP_PLUGIN_SERVICE_ID

public static final java.lang.String GROUP_PLUGIN_SERVICE_ID
See Also:
Constant Field Values
Constructor Detail

PluginRow

public PluginRow(java.lang.String pluginServiceID,
                 java.lang.String groupPluginServiceID,
                 java.lang.String groupTargetServiceID,
                 SQLDBManager dbManager)
          throws java.sql.SQLException,
                 java.lang.Exception
Builds a new Plugin row

Parameters:
pluginServiceID - the plugin service ID
groupPluginServiceID - the plugin service group ID
groupTargetServiceID - the target service group ID
dbManager - an open connection to the DB
Throws:
java.lang.Exception
java.sql.SQLException
Method Detail

insertRow

public void insertRow()
               throws java.sql.SQLException
Throws:
java.sql.SQLException

deleteRow

public void deleteRow()
               throws java.sql.SQLException,
                      java.lang.Exception
Delete the row from table on DB

Throws:
java.sql.SQLException - if DELETE fails
java.lang.Exception - if DELETE is not possible