|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.vremanagement.softwarerepository.db.Scope
public class Scope
| Field Summary | |
|---|---|
static java.lang.String |
NAME
Scope Name field name |
static java.lang.String |
SCOPE_ID
Scope ID field name |
static java.lang.String |
TABLE_NAME
Table Name |
| Constructor Summary | |
|---|---|
Scope(java.lang.String name)
Create new Scope instance with name |
|
Scope(java.lang.String name,
SQLDBManager dbManager)
Create new Scope instance with name |
|
| Method Summary | |
|---|---|
void |
deleteRow()
|
java.lang.Integer |
getScopeID()
|
void |
insertRow()
Insert this instance in DB |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TABLE_NAME
public static final java.lang.String SCOPE_ID
public static final java.lang.String NAME
| Constructor Detail |
|---|
public Scope(java.lang.String name,
SQLDBManager dbManager)
throws java.lang.Exception
name - scope namedbManager - DB Manager instance. The connection will be open by the constructor itself
java.lang.Exception - if the scope
public Scope(java.lang.String name)
throws java.lang.Exception
name - scope name
java.lang.Exception - if the scope| Method Detail |
|---|
public java.lang.Integer getScopeID()
throws java.lang.Exception
java.lang.Exception - if the record is not yet on db
public void insertRow()
throws java.sql.SQLException,
java.lang.Exception
java.sql.SQLException - if INSERT fails
java.lang.Exception - if Scope Id retrieving from db fails
public void deleteRow()
throws java.sql.SQLException
java.sql.SQLException - if DELETE fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||