Package Framework

Examples of Framework.IntegerData


      ErrorMgr.addError(errorVar);
      throw errorVar;
    }
    try {
      if (pValue.getIntegerValue() != 0) {
        this.table.enter(new IntegerData(pValue.getIntegerValue()), parameterName);
        return;
      }
    }
    catch (Exception e) {}
    this.table.enter(pValue, parameterName);
View Full Code Here


        }

        if (attr < BusinessQuery.ATTR_SIMPLE) {

            throw new Error(Error.B_ILLEGAL_ATTR, "LogAttr", this, source, new IntegerData(attr)).getException();

        }
        else if (attr == BusinessQuery.ATTR_SIMPLE) {
            //
            //  This means all simple attributes (good for inserts).
View Full Code Here

                                ParameterHolder_BusinessClass_Array qq_value = new ParameterHolder_BusinessClass_Array();
                                q.getOriginalClass().getAttr(attr, qq_value);
                                a = (Array_Of_BusinessClass<BusinessClass>)qq_value.getObject();
                                q.getOriginalClass().setAttr(attr, (Array_Of_BusinessClass)(null));
                                origClasses.add(q);
                                origAttr.add(new IntegerData(attr));
                                origRef.add(a);
                            }
                            else {
                                BusinessClass b = null;
                                // ------------------------------
                                // Parameters for call to GetAttr
                                // ------------------------------
                                ParameterHolder_BusinessClass qq_value = new ParameterHolder_BusinessClass();
                                q.getOriginalClass().getAttr(attr, qq_value);
                                b = (BusinessClass)qq_value.getObject();
                                q.getOriginalClass().setAttr(attr, (BusinessClass)(null));
                                origClasses.add(q);
                                origAttr.add(new IntegerData(attr));
                                origRef.add(b);
                            }
                        }
                    }
                }
View Full Code Here

            this.concurrencyMgr.relClientID(clientID);

        }
        else if (clientID != 0) {

            throw new Error(Error.CC_ILLEGAL_CLIENTID, "RelClientID", this, new IntegerData(clientID), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();

        }
    }
View Full Code Here

     * @param cacheMode Type: int (Input) (default in Forte: 0)
     */
    public void setConcurrency(IBusinessServiceMgr parentService, int concurrencyMode, ConcurrencyMgr concurrencyMgr, int cacheMode) {
        if ((this.getParentService() != null && parentService != this.getParentService()) || (this.concurrencyMgr != null && concurrencyMgr != this.concurrencyMgr)) {

            throw new Error(Error.CC_HAS_MGR, "SetConcurrency", this, new IntegerData(concurrencyMode), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();

        }
        else if (concurrencyMode == ConcurrencyMgr.CO_OPT_EXPRESS && concurrencyMgr == null) {

            throw new Error(Error.CC_NEEDS_MGR, "SetConcurrency", this, new IntegerData(concurrencyMode), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();

        }
        else if (cacheMode != ConcurrencyMgr.CA_NONE && concurrencyMode != ConcurrencyMgr.CO_OPT_EXPRESS) {

            throw new Error(Error.CC_CACHE_ILLEGAL, "SetConcurrency", this).getException();
View Full Code Here

     * <p>
     * @param transactionMode Type: int
     */
    public void afterOperation(int transactionMode) {
        if (transactionMode < 0 || transactionMode > 3) {
            throw new Error(Error.CC_ILLEGAL_TRANS_MODE, "AfterOperation", this, new IntegerData(transactionMode), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();
        }

        if ((transactionMode&ConcurrencyMgr.TR_END) > 0) {
            if ((this.getConcurrencyMode()&ConcurrencyMgr.CO_MASK_DB) > 0) {
                TransactionMgr.commitTransaction();
View Full Code Here

     * <p>
     * @param transactionMode Type: int
     */
    public void beforeOperation(int transactionMode) {
        if (transactionMode < 0 || transactionMode > 3) {
            throw new Error(Error.CC_ILLEGAL_TRANS_MODE, "BeforeOperation", this, new IntegerData(transactionMode), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();
        }

        if ((this.getConcurrencyMode()&ConcurrencyMgr.CO_MASK_DB) > 0) {

            if ((transactionMode&ConcurrencyMgr.TR_START) > 0) {
                TransactionMgr.beginIndependentTransaction();
            }
            else if (!(TransactionMgr.isActive())) {
                throw new Error(Error.CM_NO_TRANSACTION, "BeforeOperation", this, new IntegerData(this.getClientID()), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();
            }

        }
        else {
            // (use for none and optimisic) if (ConcurrencyMode = ConcurrencyMgr.CO_OPT_VERIFY) then

            if ((transactionMode&ConcurrencyMgr.TR_START) > 0) {
                if (this.transState == ConcurrencyMgr.TS_ACTIVE) {
                    throw new Error(Error.CM_TRANSACTION_IN_PROGRESS, "BeforeOperation", this, new IntegerData(this.getClientID()), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();
                }
                else {
                    //
                    //      We don't do this because the ConcurrencyMgr will figure it out
                    //      when he first hears from us (which he will shortly)
                    //
                    //      if (ConcurrencyMgr <> NIL) then
                    //        ConcurrencyMgr.StartTrans(clientID=ClientID, transactionMode=ConcurrencyMgr.TR_START);
                    //      end if;
                    this.transState = ConcurrencyMgr.TS_ACTIVE;
                }
            }
            else if (this.transState == ConcurrencyMgr.TS_INACTIVE) {
                throw new Error(Error.CM_NO_TRANSACTION, "BeforeOperation", this, new IntegerData(this.getClientID()), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();
            }

        }
    }
View Full Code Here

        }
        else {
            // if (ConcurrencyMode = ConcurrencyMgr.CO_OPT_VERIFY) then

            if (!(ifActive) && (this.transState == ConcurrencyMgr.TS_INACTIVE)) {
                throw new Error(Error.CM_NO_TRANSACTION, "EndTrans", this, new IntegerData(this.getClientID()), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();
            }

        }

        this.transState = ConcurrencyMgr.TS_INACTIVE;
View Full Code Here

        else {
            // (use for none and optimisic) if ((ConcurrencyMode & ConcurrencyMgr.CO_MASK_OPTIMISTIC) > 0) then

            if (this.transState == ConcurrencyMgr.TS_ACTIVE) {
                if (ifActive) {
                    throw new Error(Error.CM_TRANSACTION_IN_PROGRESS, "StartTrans", this, new IntegerData(this.getClientID()), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();
                }
            }
            else {
                if (this.getConcurrencyMgr() != null) {
                    this.getConcurrencyMgr().startTrans(this.getClientID(), ConcurrencyMgr.TR_START);
View Full Code Here

            HTTPAccess.getWebEntLogger().debug(new TextData().replaceParameters("resultset %2 +[%1]", this.name, listName) );
          }
        }

        if ((((boolean)(row < 1)) || ((boolean)(row > (listmem.getListValue().size()+1))))) {
            Object[] qq_Args = { listName, new IntegerData(row) };
            GenericException e = new GenericException(MessageFormat.format( "Cannot add to list {0} - row ({1}) is less than one or skips rows.", qq_Args ) );
            e.setDetectingMethod("ResultSet::Add");
            throw e;
        }

        if ((listmem.getListValue().size() < row) || (listmem.getListValue().get(row-1) == null)) {

          if (HTTPAccess.getWebEntLogger().isDebugEnabled()) {
            HTTPAccess.getWebEntLogger().debug(new TextData().replaceParameters("   +[%1][%2]", listName, new IntegerData(row)) );
          }
            listmem.getListValue().set(row-1, new ResultSet());
        }

        HTTPAccess.getWebEntLogger().debug( new TextData().replaceParameters(" [%1][%2]: ", this.name, new IntegerData(row)) );

        ((ResultSet)listmem.getListValue().get(row-1)).add(attributeName, value);
    }
View Full Code Here

TOP

Related Classes of Framework.IntegerData

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.