⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 derbyjirareportvti.java

📁 derby数据库源码。。。。。。。。。。。。。
💻 JAVA
字号:
/*Derby - Class org.apache.derbyDemo.vtis.example.DerbyJiraReportVTILicensed to the Apache Software Foundation (ASF) under one or morecontributor license agreements.  See the NOTICE file distributed withthis work for additional information regarding copyright ownership.The ASF licenses this file to You under the Apache License, Version 2.0(the "License"); you may not use this file except in compliance withthe License.  You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.*/package org.apache.derbyDemo.vtis.example;import java.sql.*;import java.text.SimpleDateFormat;import org.apache.derbyDemo.vtis.core.*;/** * <p> * This is an XML-reading VTI which has been tweaked to handle * the formatting of JIRA ids found in Derby JIRA reports. * </p> *  */public  class   DerbyJiraReportVTI  extends XmlVTI{    ///////////////////////////////////////////////////////////////////////////////////    //    // CONSTANTS    //    ///////////////////////////////////////////////////////////////////////////////////    ///////////////////////////////////////////////////////////////////////////////////    //    // STATE    //    ///////////////////////////////////////////////////////////////////////////////////    private SimpleDateFormat    _dateFormatter;        ///////////////////////////////////////////////////////////////////////////////////    //    // CONSTRUCTORS    //    ///////////////////////////////////////////////////////////////////////////////////    /**     * <p>     * Construct from the same arguments as our superclass.     * </p>     */    public  DerbyJiraReportVTI( String xmlResourceName, String rowTag, String[] childTags )    {        super( xmlResourceName, rowTag, childTags );    }        ///////////////////////////////////////////////////////////////////////////////////    //    // ResultSet BEHAVIOR    //    ///////////////////////////////////////////////////////////////////////////////////    /**     * <p>     * JIRA prepends "DERBY-" to the issue key. Strip off this prefix so that we     * can sort the key as an integer value.     * </p>     */    public String getString( int columnIndex ) throws SQLException    {        String  rawValue = super.getString( columnIndex );        if ( !"key".equals( getColumnNames()[ columnIndex - 1 ] ) )        { return rawValue; }        else        { return rawValue.substring( 6 ); }    }    ///////////////////////////////////////////////////////////////////////////////////    //    // MINIONS    //    ///////////////////////////////////////////////////////////////////////////////////}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -