Package Framework

Examples of Framework.TextData$qq_Resolver


    public TextData getTemplateString() {
        return this.templateString;
    }

    public void setViacode(TextData viacode) {
        TextData oldValue = this.viacode;
        this.viacode = viacode;
        this.qq_Listeners.firePropertyChange("viacode", oldValue, this.viacode);
    }
View Full Code Here


     * <p>
     */
    public void display() {
        UserWindow.open(this);

        this.setViacode(new TextData());
        CharacterTemplate.set(this.getqq_viacode(), new TextData("(10)A"));

        JComponent aWidget = this.getqq_arrayMaskTesterArray_TestMask2();
        Logger.getLogger("task.part.logmgr").info(Name.get(aWidget));
        //aWidget = <arrayMaskTester>.GetColumnTemplate(2);
        //task.lgr.putline(aWidget.Name);
View Full Code Here

                conn.connect();
                OutputStream os = conn.getOutputStream();
                out = new BufferedWriter(new OutputStreamWriter(os));
                // This breaks XML transmissions. CraigM 08/08/2007.
                // out.newLine(); // Necessary to delimit the end of the headers.
                TextData content = new TextData();
                this.getBody().readText(content);
                out.write(content.toString());
                out.newLine();
                out.flush();
                out.close();
            } else {
                conn.setRequestMethod(this.getMethod());
View Full Code Here

     * dumpStats<p>
     * <p>
     */
    public void dumpStats() {
        String title1 = null;
        TextData title2 = null;
        TextNullable title3 = null;
        int numCustomers = 0;
        IntegerData numStocks = null;
        double totalValue = 0;

        DBConnectionManager dBConnection = DBConnectionManager.getInstance("DBConnection");

        // -- =============== Original SQL ===============
        // select 
        //     'Customers',
        //     count(distinct CustomerName),
        //     'Stocks',
        //     count(distinct StockName),
        //     'Total value',
        //     sum(Price*Quantity)
        // into
        //     :title1,
        //     :numCustomers,
        //     :title2,
        //     :numStocks,
        //     :title3,
        //     :totalValue
        // from Holding
        // on session DBConnection
        // -- ============================================
        String qq_SQL = "select " +
                        "'Customers', " +
                        "count(distinct CustomerName), " +
                        "'Stocks', " +
                        "count(distinct StockName), " +
                        "'Total value', " +
                        "sum(Price*Quantity) " +
                        "from Holding ";
        final ParameterHolder qqh_title1 = new ParameterHolder(title1);
        final ParameterHolder qqh_numCustomers = new ParameterHolder(numCustomers);
        final ParameterHolder qqh_title2 = new ParameterHolder(title2);
        final ParameterHolder qqh_numStocks = new ParameterHolder(numStocks);
        final ParameterHolder qqh_title3 = new ParameterHolder(title3);
        final ParameterHolder qqh_totalValue = new ParameterHolder(totalValue);
        RowCountCallbackHandler qq_RowCounter = new RowCountCallbackHandler() {
            protected void processRow(ResultSet pResultSet, int pRow) throws SQLException {
                if (pRow >= 1) {
                    throw new IncorrectResultSizeDataAccessException(1, pRow+1);
                }
                ResultSetHelper helper = new ResultSetHelper(pResultSet);
                qqh_title1.setObject(helper.getString(1));
                qqh_numCustomers.setInt(helper.getInt(2));
                qqh_title2.setObject(helper.getTextData(3));
                qqh_numStocks.setObject(helper.getIntegerData(4));
                qqh_title3.setObject(helper.getTextNullable(5));
                qqh_totalValue.setDouble(helper.getDouble(6));
            }
        };
        dBConnection.getTemplate().query(qq_SQL, qq_RowCounter);
        title1 = (String)qqh_title1.getObject();
        numCustomers = qqh_numCustomers.getInt();
        title2 = (TextData)qqh_title2.getObject();
        numStocks = (IntegerData)qqh_numStocks.getObject();
        title3 = (TextNullable)qqh_title3.getObject();
        totalValue = qqh_totalValue.getDouble();

        TextData aMsg = new TextData();
        aMsg.concat(title1).concat(":").concat(numCustomers).concat(", ").concat(title2).concat(":").concat(numStocks).concat(", ").concat(title3).concat(totalValue);

        Log.standardLog().info(aMsg);
    }
View Full Code Here

            qq_SQL = "select StockName from Stock ";
            qq_cmd = dBConnection.getPreparedStatement(qq_SQL);
            qq_rs = qq_cmd.executeQuery();
            ResultSetHelper qq_rsHelper = new ResultSetHelper(qq_rs);
            while (qq_rsHelper.next()) {
                TextData temp = qq_rsHelper.getTextData(1);
                ListElement row = new ListElement();
                row.getTextValue().setValue( temp.getValue() );
                this.stockNameList.add(row);
            }
        }
        catch (SQLException qq_error) {
            throw new SQLErrorCodeSQLExceptionTranslator(dBConnection.getDataSource()).translate("Running SQL", qq_SQL, qq_error);
View Full Code Here

     * @return TextData
     */
    public TextData decodeBase64(TextData encodedText) {
        // TF:7/7/07 - Recoded this method to use the apache libraries, removing the non-compiling method
        String result = new String(Base64.decodeBase64(encodedText.asByteArray()));
        return new TextData(result);
    }
View Full Code Here

     * @return TextData
     */
    public TextData encodeBase64(TextData plainText) {
        // TF:7/7/07 - Recoded this method to use the apache libraries, removing the non-compiling method
        String base64Text = new String(Base64.encodeBase64(plainText.asByteArray()));
        return new TextData(base64Text);
    }
View Full Code Here

     * <p>
     *
     * @return String
     */
    public String getStringVersion() {
        TextData txt = new TextData(HTTPBaseMessage.HTTP_SCHEME);
        txt.concat("/");
        txt.concat(this.majorVersion);
        txt.concat(".");
        txt.concat(this.minorVersion);
        return txt.toString();
    }
View Full Code Here

        if (((Object) session) instanceof HTTPSession) {
            this.session = (HTTPSession) session;
            session.setbaseMessage(this);
        } else {
            DistributedAccessException ex = new DistributedAccessException();
            TextData className = new TextData();

            if (session != null) {
                className.setValue(FrameworkUtils.getClassName(((Object) session).getClass()));
            }
            String message = Application.getMsgCatalog().getString(
                  Constants.HTTP_SET,
                  Constants.HTTP_MSG_NOT_HTTP_SESSION);
            ex.setWithParams( Framework.Constants.SP_ER_USER, message, className);
View Full Code Here

                && (this.minorVersion == 1 || this.minorVersion == 0)) {
            this.minorVersion = minor;
            this.majorVersion = major;
        } else {
            DistributedAccessException ex = new DistributedAccessException();
            TextData txtVersion = new TextData(this.majorVersion,
                    TextData.qq_Resolver.cINTEGERVALUE);

            txtVersion.concat(".");
            txtVersion.concat(this.minorVersion);

            String message = Application.getMsgCatalog().getString(
              Constants.HTTP_SET,
              Constants.HTTP_MSG_VERSION_NOT_SUPPORTED);
            ex.setWithParams( Framework.Constants.SP_ER_USER, message, txtVersion);
View Full Code Here

TOP

Related Classes of Framework.TextData$qq_Resolver

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.