org.sciplore.database
Class QueryData

java.lang.Object
  extended by org.sciplore.database.Query
      extended by org.sciplore.database.QueryData
Direct Known Subclasses:
QueryAnnotations, QueryDocument

public class QueryData
extends Query


Field Summary
 
Fields inherited from class org.sciplore.database.Query
connection
 
Constructor Summary
QueryData(java.sql.Connection connection)
           
 
Method Summary
 java.lang.Boolean createNewAnonymousUser(java.lang.String userName)
           
 java.sql.ResultSet getAnnotationDetailsBy(long document_id)
           
 java.sql.ResultSet getDocumentDetailsBy(long id)
           
 java.sql.ResultSet getDocumentDetailsBy(java.lang.String title)
           
 java.sql.ResultSet getUserBy(long user_id)
           
 long getUserID(java.lang.String userName, java.lang.String password)
           
 java.lang.String insertNewMindMap(java.lang.String userName, java.lang.String password, short allowIR, short backup)
           
 java.lang.String updateMindMap(java.lang.String userName, java.lang.String password, java.lang.String mindmapID, short allowIR, short backup)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryData

public QueryData(java.sql.Connection connection)
Method Detail

getDocumentDetailsBy

public java.sql.ResultSet getDocumentDetailsBy(long id)
                                        throws java.sql.SQLException
Throws:
java.sql.SQLException

getDocumentDetailsBy

public java.sql.ResultSet getDocumentDetailsBy(java.lang.String title)
                                        throws java.sql.SQLException
Throws:
java.sql.SQLException

getAnnotationDetailsBy

public java.sql.ResultSet getAnnotationDetailsBy(long document_id)
                                          throws java.sql.SQLException
Throws:
java.sql.SQLException

getUserBy

public java.sql.ResultSet getUserBy(long user_id)
                             throws java.sql.SQLException
Throws:
java.sql.SQLException

getUserID

public long getUserID(java.lang.String userName,
                      java.lang.String password)
               throws java.sql.SQLException,
                      java.security.NoSuchAlgorithmException
Throws:
java.sql.SQLException
java.security.NoSuchAlgorithmException

createNewAnonymousUser

public java.lang.Boolean createNewAnonymousUser(java.lang.String userName)
                                         throws java.sql.SQLException
Throws:
java.sql.SQLException

insertNewMindMap

public java.lang.String insertNewMindMap(java.lang.String userName,
                                         java.lang.String password,
                                         short allowIR,
                                         short backup)
                                  throws java.sql.SQLException,
                                         java.security.NoSuchAlgorithmException
Throws:
java.sql.SQLException
java.security.NoSuchAlgorithmException

updateMindMap

public java.lang.String updateMindMap(java.lang.String userName,
                                      java.lang.String password,
                                      java.lang.String mindmapID,
                                      short allowIR,
                                      short backup)
                               throws java.sql.SQLException,
                                      java.security.NoSuchAlgorithmException
Throws:
java.sql.SQLException
java.security.NoSuchAlgorithmException