Class FindSordsByIds

java.lang.Object
de.elo.ix.jscript.FindObjects
de.elo.ix.jscript.FindSordsByIds
Direct Known Subclasses:
FindSordsByGuids

public class FindSordsByIds extends FindObjects
This class allows to select Sord objects by their IDs when searching for objects with FindByRegisteredFunction.
See Also:
  • Constructor Details

    • FindSordsByIds

      public FindSordsByIds(Object jsIds)
      Constructor.
      Parameters:
      jsIds - One ID, an array of IDs or a table of values whereby the first column contains the IDs.
  • Method Details

    • bindParams

      public void bindParams(PreparedStatement pstmt, int startCol) throws SQLException
      Description copied from class: FindObjects
      Submit parameters for the JDBC Statement. The calling function creates a PreparedStatement based on the return values of getAlias, getFrom and getWhere. With a call to this function, all parameters conatined in the Prepared statement should be bound.
      Overrides:
      bindParams in class FindObjects
      Throws:
      SQLException
      See Also:
    • getFrom

      public String getFrom()
      Description copied from class: FindObjects
      Get the table name or a comma separated list of table names to select from. E. g. to select from Sords and document versions return "objekte,dochistory". This function is only called for the first object.
      If an alias for the Sords table should be used, the alias must follow the table name. E.g. getAlias()="o", getFormat()="objekte o, dochistory d", getWhere()="o.objid=d.objectid and ..."
      Overrides:
      getFrom in class FindObjects
      Returns:
      table name(s)
    • getWhere

      public String getWhere()
      Description copied from class: FindObjects
      Where clause. This function is only called for the first object. Use PreparedStatement placeholders for the Sord ID and other parameters (if there are any).
      If an alias for the Sords table should be used, the alias must prefix the column names. E.g. getAlias()="o", getFormat()="objekte o, dochistory d", getWhere()="o.objid=d.objectid and ..."
      Overrides:
      getWhere in class FindObjects
      Returns:
      where clause
    • next

      public boolean next() throws SQLException
      Description copied from class: FindObjects
      Move to next object.
      Overrides:
      next in class FindObjects
      Returns:
      false, if no more objects available
      Throws:
      SQLException
    • getCurrentPosAsString

      public String getCurrentPosAsString()
      Description copied from class: FindObjects
      Get information about the current position. E. g. return the parameters set into the PreparedStatement in the bindParams function.
      Overrides:
      getCurrentPosAsString in class FindObjects
      Returns:
      Information string