Package com.jacob.com

Examples of com.jacob.com.Variant


   * @return
   */
  public Recordset Execute(Variant RecordsAffected, Variant Parameters,
      int Options) {
    return (Recordset) Dispatch.call(this, "Execute", RecordsAffected,
        Parameters, new Variant(Options)).toDispatch();
  }
View Full Code Here


   * "Execute"s a command
   *
   * @return
   */
  public Recordset Execute() {
    Variant dummy = new Variant();
    return new Recordset(Dispatch.call(this, "Execute", dummy).toDispatch());
  }
View Full Code Here

   * @param Value
   * @return
   */
  public Variant CreateParameter(String Name, int Type, int Direction,
      int Size, Variant Value) {
    return Dispatch.call(this, "CreateParameter", Name, new Variant(Type),
        new Variant(Direction), new Variant(Size), Value);
  }
View Full Code Here

   *
   * @param plCmdType
   *            new "CommandType"
   */
  public void setCommandType(int plCmdType) {
    Dispatch.put(this, "CommandType", new Variant(plCmdType));
  }
View Full Code Here

    rs.MoveFirst();
    while (!rs.getEOF()) {
      for (int i = 0; i < fs.getCount(); i++) {
        Field f = fs.getItem(i);
        Variant v = f.getValue();
        System.out.print(v + " ");
      }
      System.out.println("");
      rs.MoveNext();
    }
View Full Code Here

  // open a recordset directly
  public static void getRS(String con, String query) {
    System.out.println("Recordset Open");
    Recordset rs = new Recordset();
    rs.Open(new Variant(query), new Variant(con));
    printRS(rs);
  }
View Full Code Here

   *
   * @param propertyName
   * @param propertyValue
   */
  public void setProperty(String propertyName, String propertyValue) {
    this.setProperty(propertyName, new Variant(propertyValue));
  }
View Full Code Here

   * @param propertyName
   * @param propValue
   *            the boolean value we want the prop set to
   */
  public void setProperty(String propertyName, boolean propValue) {
    this.setProperty(propertyName, new Variant(propValue));
  }
View Full Code Here

   * @param propertyName
   * @param propValue
   *            the boolean value we want the prop set to
   */
  public void setProperty(String propertyName, byte propValue) {
    this.setProperty(propertyName, new Variant(propValue));
  }
View Full Code Here

   * @param propertyName
   * @param propValue
   *            the int value we want the prop to be set to.
   */
  public void setProperty(String propertyName, int propValue) {
    this.setProperty(propertyName, new Variant(propValue));
  }
View Full Code Here

TOP

Related Classes of com.jacob.com.Variant

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.