|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stratelia.silverpeas.pdc.control.PdcUtilizationDAO
public class PdcUtilizationDAO
Class declaration
| Constructor Summary | |
|---|---|
PdcUtilizationDAO()
Constructor declaration |
|
| Method Summary | |
|---|---|
boolean |
canUpdateBaseValue(Connection con,
int baseValue,
String axisId,
String treeId,
String instanceId)
Tests if the base value can be updated. |
List<AxisHeader> |
getAxisUsedByInstanceId(Connection con,
List<String> instanceIds)
|
List<AxisHeader> |
getAxisUsedByInstanceId(Connection con,
List<String> instanceIds,
AxisFilter filter)
|
List<UsedAxis> |
getUsedAxisByInstanceId(Connection con,
String instanceId)
Gets the PdC axis that are used in a content classification in the specified Silverpeas component instance. |
boolean |
isAlreadyAdded(Connection con,
String instanceId,
int usedAxisId,
int axisId,
int baseValue,
String treeId)
Method declaration |
void |
updateAllUsedAxis(Connection con,
UsedAxis usedAxis)
Updates the specified used axis. |
int |
updateBaseValue(Connection con,
int oldBaseValue,
int newBaseValue,
int axisId,
String treeId,
String instanceId)
Updates the base value of the specified hierarchical tree of the given axis. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PdcUtilizationDAO()
| Method Detail |
|---|
public List<UsedAxis> getUsedAxisByInstanceId(Connection con,
String instanceId)
throws SQLException
con - a connection to the data source.instanceId - the unique identifier of the component instance.
SQLException - if an error occurs while requesting the data source.
public int updateBaseValue(Connection con,
int oldBaseValue,
int newBaseValue,
int axisId,
String treeId,
String instanceId)
throws SQLException
con - the connection to the database.oldBaseValue - the old base value of the tree.newBaseValue - the base value with which the old is replaced.axisId - the identifier of the axis.treeId - the identifier of the axis tree.instanceId - the unique identifier of the Silverpeas component instance that uses the
axis.
SQLException
public boolean canUpdateBaseValue(Connection con,
int baseValue,
String axisId,
String treeId,
String instanceId)
throws SQLException
con - the connection to the database.baseValue - the base value to test.axisId - the identifier of the axis.treeId - the identifier of the axis tree.instanceId - the unique identifier of the Silverpeas component instance that uses the
axis.
SQLException
public boolean isAlreadyAdded(Connection con,
String instanceId,
int usedAxisId,
int axisId,
int baseValue,
String treeId)
throws SQLException
con - instanceId - axisId - baseValue -
SQLException
public void updateAllUsedAxis(Connection con,
UsedAxis usedAxis)
throws SQLException
con - the connection to the databaseusedAxis - the new or modified used axis.
SQLException
public List<AxisHeader> getAxisUsedByInstanceId(Connection con,
List<String> instanceIds)
throws SQLException
SQLException
public List<AxisHeader> getAxisUsedByInstanceId(Connection con,
List<String> instanceIds,
AxisFilter filter)
throws SQLException
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||