001    /*
002     * Copyright (c) 2009 The openGion Project.
003     *
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     *     http://www.apache.org/licenses/LICENSE-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
013     * either express or implied. See the License for the specific language
014     * governing permissions and limitations under the License.
015     */
016    package org.opengion.hayabusa.db;
017    
018    import java.util.Calendar;
019    
020    import org.opengion.hayabusa.common.HybsSystem;
021    import org.opengion.fukurou.util.LogWriter;
022    
023    /**
024     * ãƒ??ã‚¿ã®ã‚³ãƒ¼ãƒ‰æƒ…報をå–り扱ã?‚¯ãƒ©ã‚¹ã§ã™ã?
025     *
026     * é–‹å§‹ã?終äº??スãƒ?ƒƒãƒ—ã?æƒ??ã‹ã‚‰ã€HTMLã®ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã‚?ƒªã‚¹ãƒˆã‚’作æ?ã™ã‚‹ãŸã‚㮠オプション
027     * タグを作æ?ã—ãŸã‚Šã?与ãˆã‚‰ã‚ŒãŸã‚­ãƒ¼ã‚’ã‚‚ã¨ã«ã€ãƒã‚§ãƒ?‚¯æ¸ˆã¿ã®ã‚ªãƒ—ションタグを作æ?ã—ãŸã‚Šã—ã¾ã™ã?
028     * 
029     * ã“ã“ã§ã¯ã€æ™‚é–?æ™?åˆ?¼‰ã?自動生æˆã‚’行ã„ã¾ã™ã?パラメータã§ã€?–‹å§‹ã?終äº??スãƒ?ƒƒãƒ—ã?é–‹å§‹å‰è¨­å®šå?ã€çµ‚äº?¾Œè¨­å®šå?
030     * を指定ã§ãã¾ã™ã?
031     * キーã¯ã€?¼”文字ã? HHMM å½¢å¼ã§ä¸Žãˆã‚‰ã‚Œã¾ã™ã?ラベルã¯ã€HH:MM ã«ãªã‚Šã¾ã™ã?
032     * スãƒ?ƒƒãƒ—ã?ã€å?å˜ä½ã§ã™ã?ã¤ã¾ã‚Šã??‘時間ã?å ´åˆã?ã€?60" ã¨æŒ?®šã—ã¾ã™ã?"0100"ã§ã¯ã‚りã¾ã›ã‚“ã€?
033     * é–‹å§‹å‰è¨­å®šå?ã€çµ‚äº?¾Œè¨­å®šå?ã¯ãれãžã‚Œã€?–‹å§‹ã?å‰ã¨çµ‚äº??後ã‚ã«ç‰¹åˆ¥ã«å€¤ã‚’設定ã§ãã¾ã™ã?
034     *
035     * é–‹å§‹ã?ã¾ãŸã?ã€çµ‚äº?«ã€ç¾åœ¨æ™‚刻ã‹ã‚‰ã®ç›¸å¯¾å€¤ã‚’指定ã™ã‚‹äº‹ãŒã§ãã¾ã™ã?
036     * H1 ??HXXX ã¨ã™ã‚Œã°ã€ç¾åœ¨æ™‚åˆ»ã®æ™‚ã«æ•°å­—部åˆ?‚’?‹ï¼ã—ã¾ã™ã?åˆ???ã«åˆæœŸåŒ–ã•れã¾ã™ã?
037     *
038     * パラメータã®åˆæœŸå€¤ã¯ã€?–‹å§?0700)ã€çµ‚äº?1900)ã€ã‚¹ãƒ?ƒƒãƒ?30)ã€?–‹å§‹å‰è¨­å®šå?(null)ã€çµ‚äº?¾Œè¨­å®šå?(null) ã§ã™ã?
039     * 
040     * 例ï¼?800,2000,30  â†?0800,0830,0900,0930,1000,・・・1900,1930,2000 ã®ãƒ—ルãƒ?‚¦ãƒ³
041     * 例ï¼?800,2000,30,0000:â–³,2400:â–½  â†?0000,0800,0830,0900,0930,1000,・・・1900,1930,2000,2400 ã®ãƒ—ルãƒ?‚¦ãƒ³
042     *
043     * @og.group é¸æŠžãƒ‡ãƒ¼ã‚¿åˆ¶å¾¡
044     * @og.rev 5.6.1.1 (2013/02/08) æ–°è¦è¿½åŠ?
045     *
046     * @version  4.0
047     * @author   Kazuhiko Hasegawa
048     * @since    JDK5.0,
049     */
050    // public class Selection_HM implements Selection {
051    public class Selection_HM extends Selection_NULL {
052            private final String   CACHE ;
053            private final String   ST_ED_STEP ;
054    
055            private final long      maxCacheTime ;          // キャãƒ?‚·ãƒ¥ã®ç ´æ£?‚¿ã‚¤ãƒŸãƒ³ã‚°ã‚’計るãŸã‚ã®æœ?¤§æœ‰åŠ¹æ™‚é–“
056    
057            /**
058             * コンストラクター
059             *
060             * 引数ã¯ã€?–‹å§‹ã?終äº??スãƒ?ƒƒãƒ—ã?é–‹å§‹å‰è¨­å®šå?ã€çµ‚äº?¾Œè¨­å®šå? ã§ã™ã?
061             * パラメータã®åˆæœŸå€¤ã¯ã€?–‹å§?0700)ã€çµ‚äº?1900)ã€ã‚¹ãƒ?ƒƒãƒ?30)ã€?–‹å§‹å‰è¨­å®šå?(null)ã€çµ‚äº?¾Œè¨­å®šå?(null) ã§ã™ã?
062             *
063             * @param       editPrm é–‹å§‹ã?終äº??スãƒ?ƒƒãƒ—ã?é–‹å§‹å‰è¨­å®šå?ã€çµ‚äº?¾Œè¨­å®šå? を表ã™å¼•æ•°(例ï¼?800,2000,30)
064             */
065            public Selection_HM( final String editPrm ) {
066            //      if( param.length < 3 ) {
067            //              String errMsg = "引数ã¯ã€?–‹å§‹ã?終äº??スãƒ?ƒƒãƒ—ã?[é–‹å§‹å‰è¨­å®šå?]ã€[終äº?¾Œè¨­å®šå?]ã§ã™ã?æœ?½Žã§ã‚‚3å?å¿?¦ã§ã™ã?";
068            //              throw new IllegalArgumentException( errMsg );
069            //      }
070    
071                    String[] param = (editPrm == null) ? new String[0] : editPrm.split( "," ) ;
072    
073                    String start = (param.length > 0) ? param[0].trim() : "0700" ;
074                    String end   = (param.length > 1) ? param[1].trim() : "1900" ;
075                    String step  = (param.length > 2) ? param[2].trim() : "30" ;
076    
077                    String stOp  = (param.length > 3) ? param[3].trim() : null ;
078                    String enOp  = (param.length > 4) ? param[4].trim() : null ;
079    
080                    int stepTime    = Integer.parseInt( step );
081                    if( stepTime == 0 ) {
082                            String errMsg = "スãƒ?ƒƒãƒ?ã« ??ã¯æŒ?®šã§ãã¾ã›ã‚“。無é™ãƒ«ãƒ¼ãƒ—ã—ã¾ã™ã?";
083                            throw new IllegalArgumentException( errMsg );
084                    }
085    
086                    Calendar cal = Calendar.getInstance();
087                    calendarCalc( cal, start );
088    
089                    Calendar endCal = Calendar.getInstance();
090                    calendarCalc( endCal, end );
091    
092                    StringBuilder buf = new StringBuilder( HybsSystem.BUFFER_MIDDLE );
093    
094                    addOption( buf,stOp );          // é–‹å§‹å‰è¨­å®šå? ã®è¿½åŠ?
095    
096                    // cal.before( endCal ) ã§ã¯ã€åŒä¸?™‚刻ã®å ´åˆã« false ã«ãªã‚‹ç‚ºã€ã“ã“ã?判定ã§ã¯ä½¿ãˆã¾ã›ã‚“ã€?
097                    // sign を掛ã‘ç®—ã—ã¦ã?‚‹ã®ã¯ã€??é ?¯¾å¿?
098                    int sign = ( stepTime > 0 ) ? 1 : -1 ;       // スãƒ?ƒƒãƒ—ã?符å·ã€?
099                    while( endCal.compareTo( cal ) * sign >= 0 ) {
100                            int hh = cal.get( Calendar.HOUR_OF_DAY );       // æ™?
101                            int mm = cal.get( Calendar.MINUTE );            // �
102    
103                            String hVal = (hh < 10) ? "0" + hh : String.valueOf( hh ) ;
104                            String mVal = (mm < 10) ? "0" + mm : String.valueOf( mm ) ;
105    
106                            buf.append( "<option value=\"" ).append( hVal ).append( mVal ).append( "\"" );
107                            buf.append( ">" ).append( hVal ).append( ":" ).append( mVal ).append( "</option>" );
108    
109                            cal.add( Calendar.MINUTE,stepTime );            // 時刻ã«åŠ?ˆã‚‹ã?ã¯ã€å?
110                    }
111    
112                    addOption( buf,enOp );          // 終äº?¾Œè¨­å®šå? ã®è¿½åŠ?
113    
114                    CACHE = buf.toString();
115                    ST_ED_STEP = "Start=" + start + " , End=" + end + " , Step=" + step + " , StartBefore=" + stOp + " , EndAfter=" + enOp ;
116    
117    
118                    // ã‚­ãƒ£ã‚·ãƒ¥ã®æœ‰åŠ¹æœŸé–“ã‚’æ±‚ã‚ã‚‹ãŸã‚ã?時刻を作æ?ã—ã¾ã™ã?キャãƒ?‚·ãƒ¥ã¯ã€æ™‚間指定ãŒã‚れã°ã€åŒä¸?™‚é–“å?ã®ã¿æœ‰åйã§ã™ã?
119                    Calendar now   = Calendar.getInstance();
120                    boolean nowBase = start.charAt(0) == 'H' || end.charAt(0) == 'H' ;
121                    if( nowBase ) {
122                            now.add( Calendar.HOUR   , 1 );                         // ?‘時間é?ã‚ã¾ã™ã?
123                            now.set( Calendar.MINUTE , 0 );                         // åˆ??ç§?をリセãƒ?ƒˆã—ã¾ã™ã?
124                            now.set( Calendar.SECOND , 0 );
125                    }
126                    else {
127                            now.add( Calendar.YEAR   , 1 );                         // ?‘å¹´é–“é?ã‚ã¾ã™ã?(ç¾åœ¨æ™‚刻をã?ãƒ¼ã‚¹ã«æŒ?®šãªã?‚ºã€ç„¡åˆ¶é™ã‚­ãƒ£ãƒ?‚·ãƒ¥ã®æ„味)
128                    }
129    
130                    maxCacheTime = now.getTimeInMillis() ;
131            }
132    
133            /**
134             * é–‹å§‹ã?ã¾ãŸã? 終äº??æ–?­—å?ã‹ã‚‰ã€ã‚«ãƒ¬ãƒ³ãƒ?‚ªãƒ–ジェクトを作æ?ã—ã¾ã™ã?
135             * 基準ã¨ãªã‚‹æ—¥ä»˜ã«è¨ˆç®—ã—ãŸçµæžœã‚’åæ˜?•ã›ã¾ã™ã?
136             *
137             * prmB ã¯ã€æ—¥ä»˜ã«ã¤ã?¦ã®åŠ?¸›ç®—å?ç?‚’行ã†ãŸã‚ã®ã‚³ãƒžãƒ³ãƒ‰ã‚’æŒ?®šã—ã¾ã™ã?
138             * ・数å­?      ?šHHMM å½¢å¼ã?時å?ã§ã™ã?
139             * ・H1 ??HXXX ?šç¾åœ¨æ™‚åˆ»ã«æ•°å­—部åˆ?‚’?‹ï¼ã—ã¾ã™ã?åˆ???ã«åˆæœŸåŒ–ã•れã¾ã™ã?
140             *
141             * @param   cal     基準ã¨ãªã‚‹æ—¥ä»˜ï¼?alendarオブジェクトï¼?
142             * @param   prmB        処ç?‚³ãƒžãƒ³ãƒ?
143             *
144             */
145            private void calendarCalc( final Calendar cal,final String prmB ) {
146                    boolean nowBase = prmB.charAt(0) == 'H' ;
147    
148                    if( nowBase ) {
149                            int hour        = Integer.parseInt( prmB.substring( 1 ) );
150                            cal.add( Calendar.HOUR_OF_DAY,hour );
151                            cal.set( Calendar.MINUTE     ,0 );
152                            cal.set( Calendar.SECOND     ,0 );
153                    }
154                    else {
155                            int hour        = Integer.parseInt( prmB.substring( 0,2 ) );
156                            int minute      = Integer.parseInt( prmB.substring( 2,4 ) );
157                            cal.set( Calendar.HOUR_OF_DAY,hour );
158                            cal.set( Calendar.MINUTE     ,minute );
159                            cal.set( Calendar.SECOND     ,0 );
160                    }
161            }
162    
163            /**
164             * é–‹å§‹å‰è¨­å®šå?ã€ã¾ãŸã? 終äº?¾Œè¨­å®šå?ã®æ–?­—å?ã‹ã‚‰ã€ã‚ªãƒ—ションæ–?­—å?ã‚’åˆæˆã—ã¾ã™ã?
165             * ã“ã?オプションã¯ã€å¼•æ•°ã®StringBuilder ã«ã€ã‚ªãƒ—ションタグを追åŠ?—ã¦è¿”ã—ã¾ã™ã?
166             * optVal ã?null ã®å ´åˆã?ã€å?ç?—ã¾ã›ã‚“ã€?
167             *
168             * @param   buf     æ–?­—å?連çµã™ã‚?StringBuilderオブジェクトã?ã“ã?オブジェクトã«è¿½åŠ?—ã¾ã™ã?
169             * @param   optVal  é–‹å§‹å‰è¨­å®šå?ã€ã¾ãŸã? 終äº?¾Œè¨­å®šå? æ–?­—å???0000:â–³" å½¢å¼ï¼?
170             *
171             */
172            private void addOption( final StringBuilder buf,final String optVal ) {
173                    if( optVal != null ) {
174                            int adrs = optVal.indexOf( ':' );
175                            if( adrs > 0 ) {
176                                    buf.append( "<option value=\"" ).append( optVal.substring( 0,adrs ) ).append( "\"" );
177                                    buf.append( ">" ).append( optVal.substring( adrs+1 ) ).append( "</option>" );
178                            }
179                            // é–‹å§‹å‰è¨­å®šå? ãŒå­˜åœ¨ã™ã‚‹å ´åˆã?"0000:â–³" å½¢å¼å¿??
180                            else {
181                                    String errMsg = "引数ã¯ã€?000:â–³ å½¢å¼ã§ã™ã?";
182                                    throw new IllegalArgumentException( errMsg );
183                            }
184                    }
185            }
186    
187            /**
188             * åˆæœŸå€¤ãŒé¸æŠžæ¸ˆã¿ã® é¸æŠžè‚¢(オプション)ã‚’è¿”ã—ã¾ã™ã?
189             * ã“ã?オプションã¯ã€å¼•æ•°ã®å€¤ã‚’å?期å?ã¨ã™ã‚‹ã‚ªãƒ—ションタグを返ã—ã¾ã™ã?
190             * ã“ã?メソãƒ?ƒ‰ã§ã¯ã€ãƒ©ãƒ™ãƒ«(短)ãŒè¨­å®šã•れã¦ã?‚‹å ´åˆã§ã‚‚ã?ã“れを使用ã›ãšã«å¿?šãƒ©ãƒ™ãƒ«(é•·)を使用ã—ã¾ã™ã?
191             *
192             * @og.rev 5.7.7.1 (2014/06/13) Selection_NULL ã‚?継承ã™ã‚‹ãŸã‚ã€å‰Šé™¤
193             *
194             * @param   selectValue  é¸æŠžã•れã¦ã?‚‹å€¤
195             * @param   seqFlag  シーケンスアクセス機è? [true:ON/false:OFF]
196             *
197             * @return  オプションタグ
198             * @see     #getOption( String, boolean, boolean )
199             */
200    //      public String getOption( final String selectValue,final boolean seqFlag ) {
201    //              return getOption( selectValue, seqFlag, false );
202    //      }
203    
204            /**
205             * åˆæœŸå€¤ãŒé¸æŠžæ¸ˆã¿ã® é¸æŠžè‚¢(オプション)ã‚’è¿”ã—ã¾ã™ã?
206             * ã“ã?オプションã¯ã€å¼•æ•°ã®å€¤ã‚’å?期å?ã¨ã™ã‚‹ã‚ªãƒ—ションタグを返ã—ã¾ã™ã?
207             * ã“ã?メソãƒ?ƒ‰ã§ã¯ã€å¼•æ•°ã®useShortLabelãŒtrueã«æŒ?®šã•れãŸå ´åˆã«ã€ãƒ©ãƒ™ãƒ«(短)ã‚’ã?ースã¨ã—ãŸ
208             * ãƒ??ルãƒãƒƒãƒ—表示を行ã„ã¾ã™ã?
209             *
210             * @param   selectValue  é¸æŠžã•れã¦ã?‚‹å€¤
211             * @param   seqFlag  シーケンスアクセス機è? [true:ON/false:OFF]
212             * @param   useShortLabel ラベル(短)ã‚’ã?ースã¨ã—ãŸã‚ªãƒ—ション表示を行ã†ã‹ã©ã?‹ã€?未使用)
213             *
214             * @return  オプションタグ
215             * @see     #getOption( String, boolean )
216             */
217            @Override
218            public String getOption( final String selectValue,final boolean seqFlag, final boolean useShortLabel ) {
219                    // マッãƒã™ã‚‹ã‚¢ãƒ‰ãƒ¬ã‚¹ã‚’探ã™ã?
220                    int selected = CACHE.indexOf( "\"" + selectValue + "\"" );
221    
222                    if( selected < 0 ) {
223                            if( selectValue != null && selectValue.length() > 0 ) {
224                                    String errMsg = "時å?ç¯?›²ã«å­˜åœ¨ã—ãªã??ãŒæŒ‡å®šã•れã¾ã—ãŸã€?
225                                                            + " value=[" + selectValue + "]"
226                                                            + HybsSystem.CR + ST_ED_STEP ;
227                                    LogWriter.log( errMsg );
228                            }
229                            return CACHE;
230                    }
231                    else {
232                            // "時å?" æ–?­—å?ã®ä½ç½®ãŒã?selected ãªã®ã§ã€æ™‚åˆ??æ–?­—æ•°?‹ï¼’ã¾ã§ãŒã?å‰åŠéƒ¨åˆ?«ãªã‚‹ã?(時å?ã®æ–?­—æ•°ã¯?”固定ã?ã¯ã?
233                            int indx = selected + selectValue.length() + 2 ;
234    
235                            StringBuilder buf = new StringBuilder( HybsSystem.BUFFER_MIDDLE );
236                            // 3.6.0.6 (2004/10/22) シーケンスアクセス機è?を指定ã™ã‚?seqFlag ã‚’å°Žå?
237                            if( seqFlag ) {
238                                    buf.append( "<option value=\"" ).append( selectValue ).append( "\"" );
239                            }
240                            else {
241                                    buf.append( CACHE.substring( 0,indx ) );
242                            }
243                            buf.append( " selected=\"selected\"" );
244                            buf.append( CACHE.substring( indx ) );
245                            return buf.toString() ;
246                    }
247            }
248    
249            /**
250             * åˆæœŸå€¤ãŒé¸æŠžæ¸ˆã¿ã® é¸æŠžè‚¢(オプション)ã‚’è¿”ã—ã¾ã™ã?
251             * ã“ã?オプションã¯ã€å¼•æ•°ã®å€¤ã‚’å?期å?ã¨ã™ã‚‹ã‚ªãƒ—ションタグを返ã—ã¾ã™ã?
252             * ※ ã“ã?クラスã§ã¯å®Ÿè£?•れã¦ã?¾ã›ã‚“ã€?
253             *
254             * @og.rev 5.7.7.1 (2014/06/13) Selection_NULL ã‚?継承ã™ã‚‹ãŸã‚ã€å‰Šé™¤
255             *
256             * @param   name         ラジオ㮠name
257             * @param   selectValue  é¸æŠžã•れã¦ã?‚‹å€¤
258             * @param   useLabel     ãƒ©ãƒ™ãƒ«è¡¨ç¤ºã®æœ‰ç„¡ [true:æœ?false:ç„¡]
259             *
260             * @return  オプションタグ
261             */
262    //      public String getRadio( final String name,final String selectValue,final boolean useLabel ) {
263    //              String errMsg = "ã“ã?クラスã§ã¯å®Ÿè£?•れã¦ã?¾ã›ã‚“ã€?;
264    //              throw new UnsupportedOperationException( errMsg );
265    //      }
266    
267            /**
268             * åˆæœŸå€¤ãŒé¸æŠžæ¸ˆã¿ã® é¸æŠžè‚¢(オプション)ã‚’è¿”ã—ã¾ã™ã?
269             * ã“ã?オプションã¯ã€å¼•æ•°ã®å€¤ã‚’å?期å?ã¨ã™ã‚‹ã‚ªãƒ—ションタグを返ã—ã¾ã™ã?
270             * ※ ã“ã?クラスã§ã¯å®Ÿè£?•れã¦ã?¾ã›ã‚“ã€?
271             *
272             * @og.rev 5.7.7.1 (2014/06/13) Selection_NULL ã‚?継承ã™ã‚‹ãŸã‚ã€å‰Šé™¤
273             *
274             * @param   selectValue  é¸æŠžã•れã¦ã?‚‹å€¤
275             *
276             * @return  オプションタグ
277             */
278    //      public String getRadioLabel( final String selectValue ) {
279    //              String errMsg = "ã“ã?クラスã§ã¯å®Ÿè£?•れã¦ã?¾ã›ã‚“ã€?;
280    //              throw new UnsupportedOperationException( errMsg );
281    //      }
282    
283            /**
284             * é¸æŠžè‚¢(value)ã«å¯¾ã™ã‚‹ãƒ©ãƒ™ãƒ«ã‚’è¿”ã—ã¾ã™ã?
285             * é¸æŠžè‚¢(value)ãŒã?存在ã—ãªã‹ã£ãŸå?åˆã?ã€?¸æŠžè‚¢ãã?ã‚‚ã?ã‚’è¿”ã—ã¾ã™ã?
286             * getValueLabel( XX ) ã¯ã€getValueLabel( XX,false ) ã¨åŒã˜ã§ã™ã?
287             *
288             * @og.rev 5.7.7.1 (2014/06/13) Selection_NULL ã‚?継承ã™ã‚‹ãŸã‚ã€å‰Šé™¤
289             *
290             * @param   selectValue é¸æŠžè‚¢ã®å€¤
291             *
292             * @return  é¸æŠžè‚¢ã®ãƒ©ãƒ™ãƒ«
293             * @see     #getValueLabel( String,boolean )
294             */
295    //      public String getValueLabel( final String selectValue ) {
296    //              return getValueLabel( selectValue,false );
297    //      }
298    
299            /**
300             * é¸æŠžè‚¢(value)ã«å¯¾ã™ã‚‹ãƒ©ãƒ™ãƒ«ã‚’è¿”ã—ã¾ã™ã?
301             * é¸æŠžè‚¢(value)ãŒã?存在ã—ãªã‹ã£ãŸå?åˆã?ã€?¸æŠžè‚¢ãã?ã‚‚ã?ã‚’è¿”ã—ã¾ã™ã?
302             * ã“ã?メソãƒ?ƒ‰ã§ã¯ã€çŸ­ç¸®ãƒ©ãƒ™ãƒ«ã‚’è¿”ã™ã‹ã©ã?‹ã‚’指定ã™ã‚‹ãƒ•ラグを指定ã—ã¾ã™ã?
303             * getValueLabel( XX,false ) ã¯ã€getValueLabel( XX ) ã¨åŒã˜ã§ã™ã?
304             *
305             * @param       selectValue     é¸æŠžè‚¢ã®å€¤
306             * @param       flag    短縮ラベルã‚?[true:使用ã™ã‚‹/false:ã—ãªã„](未使用)
307             *
308             * @return  é¸æŠžè‚¢ã®ãƒ©ãƒ™ãƒ«
309             * @see     #getValueLabel( String )
310             */
311            @Override
312            public String getValueLabel( final String selectValue,final boolean flag ) {
313                    // ã‚ã‚ã?Œãªã‹ã‚ã?Œã€?¸æŠžè‚¢ãã?ã‚‚ã?ã‚’è¿”ã—ã¾ã™ã?
314                    return selectValue;
315            }
316    
317            /**
318             * マルãƒã?キーセレクトを使用ã™ã‚‹ã‹ã©ã?‹ã‚’è¿”ã—ã¾ã™ã?
319             * true?šä½¿ç”¨ã™ã‚‹ã€‚false:使用ã—ãªã?ã§ã™ã?
320             * ãŸã ã—ã?実際ã«ä½¿ç”¨ã™ã‚‹ã‹ã©ã?‹ã¯ã€HTMLå‡ºåŠ›æ™‚ã«æ±ºã‚ã‚‹ã“ã¨ãŒå?æ¥ã¾ã™ã?
321             * ã“ã“ã§ã¯ã€USE_MULTI_KEY_SELECT ã?true ã§ã€USE_SIZE(=20)以上ã?å ´åˆã«
322             * true ã‚’è¿”ã—ã¾ã™ã?
323             *
324             * @return  é¸æŠžãƒªã‚¹ãƒˆã§ã€ã?ルãƒã?キーセレクトを使用ã™ã‚‹ã‹ã©ã?‹(true:使用ã™ã‚‹)(false固å®?
325             */
326            @Override
327            public boolean useMultiSelect() {
328                    return true;
329            }
330    
331            /**
332             * オブジェクトã?キャãƒ?‚·ãƒ¥ãŒæ™‚é–“å?れã‹ã©ã?‹ã‚’è¿”ã—ã¾ã™ã?
333             * キャãƒ?‚·ãƒ¥ãŒæ™‚é–“å?ã‚?無効)ã§ã‚れã°ã€true ã‚’ã?有効ã§ã‚れã°ã€?
334             * false ã‚’è¿”ã—ã¾ã™ã?
335             *
336             * @return  キャãƒ?‚·ãƒ¥ãŒæ™‚é–“å?れãªã‚?true
337             */
338            @Override
339            public boolean isTimeOver() {
340                    return System.currentTimeMillis() > maxCacheTime ;
341            }
342    }