com.objectplanet.survey.plugin.api
Class SequenceManager

java.lang.Object
  extended bycom.objectplanet.survey.plugin.api.SequenceManager

public class SequenceManager
extends java.lang.Object

Encapsulates functionality to manage sequences in the database

Author:
Rikard Halvorsen
Created:
November 11, 2004

Constructor Summary
SequenceManager()
           
 
Method Summary
static long getNextSurveyAttributeId(User user, long surveyId)
          Gets the next SurveyAttributeId.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceManager

public SequenceManager()
Method Detail

getNextSurveyAttributeId

public static long getNextSurveyAttributeId(User user,
                                            long surveyId)
                                     throws SurveySystemException,
                                            SurveySecurityException,
                                            java.sql.SQLException
Gets the next SurveyAttributeId. A SurveyAttribute is an attribute stored for a survey in the OPS_SurveyAttribute table. Additional attributes for a survey may be added to extend the functionality in Opinio when creating your own plugin.

Parameters:
user - User
Returns:
The next SurveyAttributeId
Throws:
SurveySystemException - If an error occurs in the system.
SurveySecurityException - Thrown if the user doesn't have read access to the survey.
java.sql.SQLException

Copyright © ObjectPlanet Inc. All Rights Reserved.

Built on January 31 2008