Package com.ipc.oce

Examples of com.ipc.oce.OCApp.newQuery()


   */
  public OCDocumentRef findByNumber2(String number, Date docDate) throws JIException {
    OCApp instance = OCApp.getInstance(getAssociatedSessionID());
   
    // prepare query
    OCQuery query = instance.newQuery(
        "SELECT Doc.Ref FROM Document."
        + managerName
        + " AS Doc WHERE Doc.Number = &NUM_A AND Doc.Date = &DATE_A");
   
    // set parameters
View Full Code Here


   * @return Массив ссылок на документы. (С одним номером может быть несколько документов в различных периодах)
   * @throws JIException
   */
  public OCDocumentRef[] findByNumber2(String number) throws JIException {
    OCApp instance = OCApp.getInstance(getAssociatedSessionID());
    OCQuery query = instance.newQuery("SELECT Doc.Ref FROM Document." + managerName + " AS Doc WHERE Doc.Number = &NUM_A");
   
    query.setParameter("NUM_A", new OCVariant(number));
   
    OCQueryResult result = query.execute();
    OCQueryResultSelection selection = result.choose();
View Full Code Here

  protected OCEStatement(OCEConnection connection) {
    this.connection = connection;
    OCApp app = connection.getApplication();
    try {
      oceStatement = app.newQuery();
    } catch (JIException e) {
      throw new RuntimeException(e.toString());
    }
  }
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.