Examples of JIVariant


Examples of org.jinterop.dcom.core.JIVariant

   * Удаляет поле из коллекции.
   * @param field - Удаляемое поле.
   * @throws JIException
   */
  public void delete(OCCustomField field) throws JIException {
    callMethod("Delete", new Object[]{new JIVariant(ocObject2Dispatch(field))});
  }
View Full Code Here

Examples of org.jinterop.dcom.core.JIVariant

   * @param dateStart Дата и время начала периода выборки документов. Если параметр не указан, то выбираются все документы, начиная с самого первого документа в базе данных.
   * @return
   * @throws JIException
   */
  public OCDocumentSelection select(Date dateStart) throws JIException{
    return new OCDocumentSelection(callMethodA("Select", new Object[]{new JIVariant(dateStart)})[0]);
  }
View Full Code Here

Examples of org.jinterop.dcom.core.JIVariant

    if (dateEnd == null) {
      return select(dateStart);
    }
    return new OCDocumentSelection(callMethodA(
        "Select", new Object[]{
            new JIVariant(dateStart),
            new JIVariant(dateEnd)}
        )[0]);
  }
View Full Code Here

Examples of org.jinterop.dcom.core.JIVariant

  public OCDocumentSelection select(Date dateStart, Date dateEnd, OCStructure structure, String order) throws JIException {
    PreparedPredicateStruct wrapper = null;
    if (structure != null) {
      wrapper = new PreparedPredicateStruct(structure);
    }
    JIVariant structureVariant = new JIVariant(
        structure != null ? wrapper.dispatch() : null);
    return new OCDocumentSelection(callMethodA("Select", new Object[] {
        new JIVariant(dateStart), new JIVariant(dateEnd),
        structureVariant, new JIVariant(order) })[0]);
  }
View Full Code Here

Examples of org.jinterop.dcom.core.JIVariant

   */
  public OCDocumentRef findByAttribute(String attributeName, OCVariant variant) throws JIException{
    return new OCDocumentRef(callMethodA(
                  "FindByAttribute",
                  new Object[]{
                      new JIVariant(attributeName),
                      ocVariant2JI(variant)
                  }
                  )[0]);
  }
View Full Code Here

Examples of org.jinterop.dcom.core.JIVariant

   * Установка способа сравнения, используемый при фильтрации по элементу отбора.
   * @param type - способ сравнения.
   * @throws JIException
   */
  public void setComparisonType(EComparisonType type) throws JIException {
    put("ComparisonType", new JIVariant(ocObject2Dispatch(type)));
  }
View Full Code Here

Examples of org.jinterop.dcom.core.JIVariant

  public void setValue(OCVariant variant) throws JIException {
    put("Value", variant);
  }
 
  public void setValue(OCValueList list) throws JIException {
    put("Value", new JIVariant(ocObject2Dispatch(list)));
  }
View Full Code Here

Examples of org.jinterop.dcom.core.JIVariant

   * @param признак
   *            использования
   * @throws JIException
   */
  public void setUse(boolean use) throws JIException {
    put("Use", new JIVariant(use));
  }
View Full Code Here

Examples of org.jinterop.dcom.core.JIVariant

   * Пользовательское представление элемента отбора.
   * @param presentation
   * @throws JIException
   */
  public void setPresentation(String presentation) throws JIException {
    put("Presentation", new JIVariant(presentation));
  }
View Full Code Here

Examples of org.jinterop.dcom.core.JIVariant

   * @param use
   *            - Признак использования отбора по значению.
   * @throws JIException
   */
  public void set(OCVariant variant, boolean use) throws JIException {
    callMethod("Set", new Object[]{ocVariant2JI(variant), new JIVariant(use)});
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.