Package Framework

Examples of Framework.IntegerData


        ConcurrencyUserCB userCB = this.getUserCB(clientID);

        if (userCB.getStamp() == 0) {

            throw new Error(Error.CM_NO_TRANSACTION, "CommitTrans", this, new IntegerData(clientID), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();

        }
        else {

            userCB.setStamp(this.getTimestamp());
View Full Code Here


     * @return ConcurrencyUserCB
     */
    private synchronized ConcurrencyUserCB getUserCB(@Input int clientID) {
        if (clientID <= 0 || clientID > this.users.size()) {

            throw new Error(Error.CM_ILLEGAL_CLIENT_ID, "GetUserCB", this, new IntegerData(clientID), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();

        }
        else {

            ConcurrencyUserCB userCB = this.users.get(clientID-1);

            if (userCB.getNext() != ConcurrencyUserCB.IN_USE) {
                throw new Error(Error.CM_ILLEGAL_CLIENT_ID, "GetUserCB", this, new IntegerData(clientID), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();
            }

            return userCB;

        }
View Full Code Here

            Logger.getLogger("task.part.logmgr").info("");
        }

        if (userCB.getStamp() == 0) {

            throw new Error(Error.CM_NO_TRANSACTION, "Load", this, new IntegerData(clientID), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();

        }
        else {

            ConcurrencyKeyCB keyCB = null;
View Full Code Here

            Logger.getLogger("task.part.logmgr").info("");
        }

        if (userCB.getStamp() == 0) {

            throw new Error(Error.CM_NO_TRANSACTION, "Load", this, new IntegerData(clientID), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();

        }
        else {

            ConcurrencyKeyCB keyCB = null;
View Full Code Here

        ConcurrencyUserCB userCB = this.getUserCB(clientID);

        if (userCB.getStamp() == 0) {

            throw new Error(Error.CM_NO_TRANSACTION, "Rollback", this, new IntegerData(clientID), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();

        }
        else {

            Array_Of_ConcurrencyKeyCB<ConcurrencyKeyCB> qq_localVector = userCB.getLockedKeys();
View Full Code Here

                break;
            }

            default: {
                throw new Error(Error.CM_ILLEGAL_CACHE_MODE, "SetCacheMode", this, new IntegerData(mode), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();

            }
        }
    }
View Full Code Here

     */
    public synchronized void qq_setConcurrencyMode(@Input int mode) {
        if (this.concurrencyMode != mode) {

            if (this.concurrencyMode != ConcurrencyMgr.CO_NONE) {
                throw new Error(Error.CM_CANNOT_CHANGE_MODE, "SetConcurrencyMode", this, new IntegerData(this.concurrencyMode), new IntegerData(mode)).getException();
            }

            switch (mode) {

                case ConcurrencyMgr.CO_NONE: {
                    this.concurrencyMode = ConcurrencyMgr.CO_NONE;

                    break;
                }
                case ConcurrencyMgr.CO_DB_NATIVE: {
                    this.concurrencyMode = ConcurrencyMgr.CO_DB_NATIVE;

                    break;
                }
                case ConcurrencyMgr.CO_DB_EXPLICIT: {
                    this.concurrencyMode = ConcurrencyMgr.CO_DB_EXPLICIT;

                    break;
                }
                case ConcurrencyMgr.CO_OPT_VERIFY: {
                    this.concurrencyMode = ConcurrencyMgr.CO_OPT_VERIFY;

                    break;
                }
                case ConcurrencyMgr.CO_OPT_EXPRESS: {
                    this.concurrencyMode = ConcurrencyMgr.CO_OPT_EXPRESS;

                    break;
                }

                default: {
                    throw new Error(Error.CM_ILLEGAL_CONCURRENCY_MODE, "SetConcurrencyMode", this, new IntegerData(mode), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();

                }
            }

        }
View Full Code Here

        ConcurrencyUserCB userCB = this.getUserCB(clientID);

        if (transactionMode == ConcurrencyMgr.TR_CONTINUE) {

            if (userCB.getStamp() == 0) {
                throw new Error(Error.CM_NO_TRANSACTION, "StartTrans", this, new IntegerData(clientID), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();
            }

        }
        else {

            if (userCB.getStamp() > 0) {

                if (userCB.getLockedKeys() == null) {

                    this.endTrans(userCB);

                }
                else {

                    Array_Of_ConcurrencyKeyCB<ConcurrencyKeyCB> qq_localVector = userCB.getLockedKeys();
                    if (qq_localVector != null) {
                        for (ConcurrencyKeyCB keyCB : qq_localVector) {

                            keyCB.setLocked(false);
                            keyCB.setStamp(userCB.getStamp());
                            keyCB.setUpdateStamp(userCB.getStamp());

                        }
                    }

                    userCB.setLockedKeys(null);

                    this.endTrans(userCB);

                    throw new Error(Error.CM_TRANSACTION_IN_PROGRESS, "StartTrans", this, new IntegerData(clientID), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();

                }

            }
View Full Code Here

      return new Integer(element.getIntegerValue());
    }
   
    else if (IntegerData.class.isAssignableFrom(editorColumnClass)) {
      try {
        IntegerData newValue = (IntegerData)editorColumnClass.newInstance();
        newValue.setValue(element.getIntegerValue());
        return newValue;
      }
      catch (Exception e) {
        // Shouldn't get here, let's keep the compiler happy
        return new IntegerData(element.getIntegerValue());
      }
    }
    else if (TextData.class.isAssignableFrom(editorColumnClass)) {
      // CraigM:25/05/2008 - Not sure what all this is, but it stops users from entering text that is not in the list
//      try {
View Full Code Here

        ConcurrencyUserCB userCB = this.getUserCB(clientID);

        if (userCB.getStamp() == 0) {

            throw new Error(Error.CM_NO_TRANSACTION, "CommitTrans", this, new IntegerData(clientID), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();

        }
        else {

            userCB.setStamp(this.getTimestamp());
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.