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            private final String   CACHE ;
052            private final String   ST_ED_STEP ;
053    
054            private final long      maxCacheTime ;          // キャãƒ?‚·ãƒ¥ã®ç ´æ£?‚¿ã‚¤ãƒŸãƒ³ã‚°ã‚’計るãŸã‚ã®æœ?¤§æœ‰åŠ¹æ™‚é–“
055    
056            /**
057             * コンストラクター
058             *
059             * 引数ã¯ã€?–‹å§‹ã?終äº??スãƒ?ƒƒãƒ—ã?é–‹å§‹å‰è¨­å®šå?ã€çµ‚äº?¾Œè¨­å®šå? ã§ã™ã?
060             * パラメータã®åˆæœŸå€¤ã¯ã€?–‹å§?0700)ã€çµ‚äº?1900)ã€ã‚¹ãƒ?ƒƒãƒ?30)ã€?–‹å§‹å‰è¨­å®šå?(null)ã€çµ‚äº?¾Œè¨­å®šå?(null) ã§ã™ã?
061             *
062             * @param       editPrm é–‹å§‹ã?終äº??スãƒ?ƒƒãƒ—ã?é–‹å§‹å‰è¨­å®šå?ã€çµ‚äº?¾Œè¨­å®šå? を表ã™å¼•æ•°(例ï¼?800,2000,30)
063             */
064            public Selection_HM( final String editPrm ) {
065            //      if( param.length < 3 ) {
066            //              String errMsg = "引数ã¯ã€?–‹å§‹ã?終äº??スãƒ?ƒƒãƒ—ã?[é–‹å§‹å‰è¨­å®šå?]ã€[終äº?¾Œè¨­å®šå?]ã§ã™ã?æœ?½Žã§ã‚‚3å?å¿?¦ã§ã™ã?";
067            //              throw new IllegalArgumentException( errMsg );
068            //      }
069    
070                    String[] param = (editPrm == null) ? new String[0] : editPrm.split( "," ) ;
071    
072                    String start = (param.length > 0) ? param[0].trim() : "0700" ;
073                    String end   = (param.length > 1) ? param[1].trim() : "1900" ;
074                    String step  = (param.length > 2) ? param[2].trim() : "30" ;
075    
076                    String stOp  = (param.length > 3) ? param[3].trim() : null ;
077                    String enOp  = (param.length > 4) ? param[4].trim() : null ;
078    
079                    int stepTime    = Integer.parseInt( step );
080                    if( stepTime == 0 ) {
081                            String errMsg = "スãƒ?ƒƒãƒ?ã« ??ã¯æŒ?®šã§ãã¾ã›ã‚“。無é™ãƒ«ãƒ¼ãƒ—ã—ã¾ã™ã?";
082                            throw new IllegalArgumentException( errMsg );
083                    }
084    
085                    Calendar cal = Calendar.getInstance();
086                    calendarCalc( cal, start );
087    
088                    Calendar endCal = Calendar.getInstance();
089                    calendarCalc( endCal, end );
090    
091                    StringBuilder buf = new StringBuilder( HybsSystem.BUFFER_MIDDLE );
092    
093                    addOption( buf,stOp );          // é–‹å§‹å‰è¨­å®šå? ã®è¿½åŠ?
094    
095                    // cal.before( endCal ) ã§ã¯ã€åŒä¸?™‚刻ã®å ´åˆã« false ã«ãªã‚‹ç‚ºã€ã“ã“ã?判定ã§ã¯ä½¿ãˆã¾ã›ã‚“ã€?
096                    // sign を掛ã‘ç®—ã—ã¦ã?‚‹ã®ã¯ã€??é ?¯¾å¿?
097                    int sign = ( stepTime > 0 ) ? 1 : -1 ;       // スãƒ?ƒƒãƒ—ã?符å·ã€?
098                    while( endCal.compareTo( cal ) * sign >= 0 ) {
099                            int hh = cal.get( Calendar.HOUR_OF_DAY );       // æ™?
100                            int mm = cal.get( Calendar.MINUTE );            // �
101    
102                            String hVal = (hh < 10) ? "0" + hh : String.valueOf( hh ) ;
103                            String mVal = (mm < 10) ? "0" + mm : String.valueOf( mm ) ;
104    
105                            buf.append( "<option value=\"" ).append( hVal ).append( mVal ).append( "\"" );
106                            buf.append( ">" ).append( hVal ).append( ":" ).append( mVal ).append( "</option>" );
107    
108                            cal.add( Calendar.MINUTE,stepTime );            // 時刻ã«åŠ?ˆã‚‹ã?ã¯ã€å?
109                    }
110    
111                    addOption( buf,enOp );          // 終äº?¾Œè¨­å®šå? ã®è¿½åŠ?
112    
113                    CACHE = buf.toString();
114                    ST_ED_STEP = "Start=" + start + " , End=" + end + " , Step=" + step + " , StartBefore=" + stOp + " , EndAfter=" + enOp ;
115    
116    
117                    // ã‚­ãƒ£ã‚·ãƒ¥ã®æœ‰åŠ¹æœŸé–“ã‚’æ±‚ã‚ã‚‹ãŸã‚ã?時刻を作æ?ã—ã¾ã™ã?キャãƒ?‚·ãƒ¥ã¯ã€æ™‚間指定ãŒã‚れã°ã€åŒä¸?™‚é–“å?ã®ã¿æœ‰åйã§ã™ã?
118                    Calendar now   = Calendar.getInstance();
119                    boolean nowBase = (start.charAt(0) == 'H') || (end.charAt(0) == 'H') ;
120                    if( nowBase ) {
121                            now.add( Calendar.HOUR   , 1 );                         // ?‘時間é?ã‚ã¾ã™ã?
122                            now.set( Calendar.MINUTE , 0 );                         // åˆ??ç§?をリセãƒ?ƒˆã—ã¾ã™ã?
123                            now.set( Calendar.SECOND , 0 );
124                    }
125                    else {
126                            now.add( Calendar.YEAR   , 1 );                         // ?‘å¹´é–“é?ã‚ã¾ã™ã?(ç¾åœ¨æ™‚刻をã?ãƒ¼ã‚¹ã«æŒ?®šãªã?‚ºã€ç„¡åˆ¶é™ã‚­ãƒ£ãƒ?‚·ãƒ¥ã®æ„味)
127                    }
128    
129                    maxCacheTime = now.getTimeInMillis() ;
130            }
131    
132            /**
133             * é–‹å§‹ã?ã¾ãŸã? 終äº??æ–?­—å?ã‹ã‚‰ã€ã‚«ãƒ¬ãƒ³ãƒ?‚ªãƒ–ジェクトを作æ?ã—ã¾ã™ã?
134             * 基準ã¨ãªã‚‹æ—¥ä»˜ã«è¨ˆç®—ã—ãŸçµæžœã‚’åæ˜?•ã›ã¾ã™ã?
135             *
136             * prmB ã¯ã€æ—¥ä»˜ã«ã¤ã?¦ã®åŠ?¸›ç®—å?ç?‚’行ã†ãŸã‚ã®ã‚³ãƒžãƒ³ãƒ‰ã‚’æŒ?®šã—ã¾ã™ã?
137             * ・数å­?      ?šHHMM å½¢å¼ã?時å?ã§ã™ã?
138             * ・H1 ??HXXX ?šç¾åœ¨æ™‚åˆ»ã«æ•°å­—部åˆ?‚’?‹ï¼ã—ã¾ã™ã?åˆ???ã«åˆæœŸåŒ–ã•れã¾ã™ã?
139             *
140             * @param   cal     基準ã¨ãªã‚‹æ—¥ä»˜ï¼?alendarオブジェクトï¼?
141             * @param   prmB        処ç?‚³ãƒžãƒ³ãƒ?
142             *
143             */
144            private void calendarCalc( final Calendar cal,final String prmB ) {
145                    boolean nowBase = (prmB.charAt(0) == 'H') ;
146    
147                    if( nowBase ) {
148                            int hour        = Integer.parseInt( prmB.substring( 1 ) );
149                            cal.add( Calendar.HOUR_OF_DAY,hour );
150                            cal.set( Calendar.MINUTE     ,0 );
151                            cal.set( Calendar.SECOND     ,0 );
152                    }
153                    else {
154                            int hour        = Integer.parseInt( prmB.substring( 0,2 ) );
155                            int minute      = Integer.parseInt( prmB.substring( 2,4 ) );
156                            cal.set( Calendar.HOUR_OF_DAY,hour );
157                            cal.set( Calendar.MINUTE     ,minute );
158                            cal.set( Calendar.SECOND     ,0 );
159                    }
160            }
161    
162            /**
163             * é–‹å§‹å‰è¨­å®šå?ã€ã¾ãŸã? 終äº?¾Œè¨­å®šå?ã®æ–?­—å?ã‹ã‚‰ã€ã‚ªãƒ—ションæ–?­—å?ã‚’åˆæˆã—ã¾ã™ã?
164             * ã“ã?オプションã¯ã€å¼•æ•°ã®StringBuilder ã«ã€ã‚ªãƒ—ションタグを追åŠ?—ã¦è¿”ã—ã¾ã™ã?
165             * optVal ã?null ã®å ´åˆã?ã€å?ç?—ã¾ã›ã‚“ã€?
166             *
167             * @param   buf     æ–?­—å?連çµã™ã‚?StringBuilderオブジェクトã?ã“ã?オブジェクトã«è¿½åŠ?—ã¾ã™ã?
168             * @param   optVal  é–‹å§‹å‰è¨­å®šå?ã€ã¾ãŸã? 終äº?¾Œè¨­å®šå? æ–?­—å???0000:â–³" å½¢å¼ï¼?
169             *
170             */
171            private void addOption( final StringBuilder buf,final String optVal ) {
172                    if( optVal != null ) {
173                            int adrs = optVal.indexOf( ':' );
174                            if( adrs > 0 ) {
175                                    buf.append( "<option value=\"" ).append( optVal.substring( 0,adrs ) ).append( "\"" );
176                                    buf.append( ">" ).append( optVal.substring( adrs+1 ) ).append( "</option>" );
177                            }
178                            // é–‹å§‹å‰è¨­å®šå? ãŒå­˜åœ¨ã™ã‚‹å ´åˆã?"0000:â–³" å½¢å¼å¿??
179                            else {
180                                    String errMsg = "引数ã¯ã€?000:â–³ å½¢å¼ã§ã™ã?";
181                                    throw new IllegalArgumentException( errMsg );
182                            }
183                    }
184            }
185    
186            /**
187             * åˆæœŸå€¤ãŒé¸æŠžæ¸ˆã¿ã® é¸æŠžè‚¢(オプション)ã‚’è¿”ã—ã¾ã™ã?
188             * ã“ã?オプションã¯ã€å¼•æ•°ã®å€¤ã‚’å?期å?ã¨ã™ã‚‹ã‚ªãƒ—ションタグを返ã—ã¾ã™ã?
189             * ã“ã?メソãƒ?ƒ‰ã§ã¯ã€ãƒ©ãƒ™ãƒ«(短)ãŒè¨­å®šã•れã¦ã?‚‹å ´åˆã§ã‚‚ã?ã“れを使用ã›ãšã«å¿?šãƒ©ãƒ™ãƒ«(é•·)を使用ã—ã¾ã™ã?
190             *
191             * @param   selectValue  é¸æŠžã•れã¦ã?‚‹å€¤
192             * @param   seqFlag  シーケンスアクセス機è? [true:ON/false:OFF]
193             *
194             * @return  オプションタグ
195             * @see     #getOption( String, boolean, boolean )
196             */
197            public String getOption( final String selectValue,final boolean seqFlag ) {
198                    return getOption( selectValue, seqFlag, false );
199            }
200    
201            /**
202             * åˆæœŸå€¤ãŒé¸æŠžæ¸ˆã¿ã® é¸æŠžè‚¢(オプション)ã‚’è¿”ã—ã¾ã™ã?
203             * ã“ã?オプションã¯ã€å¼•æ•°ã®å€¤ã‚’å?期å?ã¨ã™ã‚‹ã‚ªãƒ—ションタグを返ã—ã¾ã™ã?
204             * ã“ã?メソãƒ?ƒ‰ã§ã¯ã€å¼•æ•°ã®useShortLabelãŒtrueã«æŒ?®šã•れãŸå ´åˆã«ã€ãƒ©ãƒ™ãƒ«(短)ã‚’ã?ースã¨ã—ãŸ
205             * ãƒ??ルãƒãƒƒãƒ—表示を行ã„ã¾ã™ã?
206             *
207             * @param   selectValue  é¸æŠžã•れã¦ã?‚‹å€¤
208             * @param   seqFlag  シーケンスアクセス機è? [true:ON/false:OFF]
209             * @param   useShortLabel ラベル(短)ã‚’ã?ースã¨ã—ãŸã‚ªãƒ—ション表示を行ã†ã‹ã©ã?‹ã€?未使用)
210             *
211             * @return  オプションタグ
212             * @see     #getOption( String, boolean )
213             */
214            public String getOption( final String selectValue,final boolean seqFlag, final boolean useShortLabel ) {
215                    // マッãƒã™ã‚‹ã‚¢ãƒ‰ãƒ¬ã‚¹ã‚’探ã™ã?
216                    int selected = CACHE.indexOf( "\"" + selectValue + "\"" );
217    
218                    if( selected < 0 ) {
219                            if( selectValue != null && selectValue.length() > 0 ) {
220                                    String errMsg = "時å?ç¯?›²ã«å­˜åœ¨ã—ãªã??ãŒæŒ‡å®šã•れã¾ã—ãŸã€?
221                                                            + " value=[" + selectValue + "]"
222                                                            + HybsSystem.CR + ST_ED_STEP ;
223                                    LogWriter.log( errMsg );
224                            }
225                            return CACHE;
226                    }
227                    else {
228                            // "時å?" æ–?­—å?ã®ä½ç½®ãŒã?selected ãªã®ã§ã€æ™‚åˆ??æ–?­—æ•°?‹ï¼’ã¾ã§ãŒã?å‰åŠéƒ¨åˆ?«ãªã‚‹ã?(時å?ã®æ–?­—æ•°ã¯?”固定ã?ã¯ã?
229                            int indx = selected + selectValue.length() + 2 ;
230    
231                            StringBuilder buf = new StringBuilder( HybsSystem.BUFFER_MIDDLE );
232                            // 3.6.0.6 (2004/10/22) シーケンスアクセス機è?を指定ã™ã‚?seqFlag ã‚’å°Žå?
233                            if( seqFlag ) {
234                                    buf.append( "<option value=\"" ).append( selectValue ).append( "\"" );
235                            }
236                            else {
237                                    buf.append( CACHE.substring( 0,indx ) );
238                            }
239                            buf.append( " selected=\"selected\"" );
240                            buf.append( CACHE.substring( indx ) );
241                            return buf.toString() ;
242                    }
243            }
244    
245            /**
246             * åˆæœŸå€¤ãŒé¸æŠžæ¸ˆã¿ã® é¸æŠžè‚¢(オプション)ã‚’è¿”ã—ã¾ã™ã?
247             * ã“ã?オプションã¯ã€å¼•æ•°ã®å€¤ã‚’å?期å?ã¨ã™ã‚‹ã‚ªãƒ—ションタグを返ã—ã¾ã™ã?
248             * ※ ã“ã?クラスã§ã¯å®Ÿè£?•れã¦ã?¾ã›ã‚“ã€?
249             *
250             * @param   name         ラジオ㮠name
251             * @param   selectValue  é¸æŠžã•れã¦ã?‚‹å€¤
252             * @param   useLabel     ãƒ©ãƒ™ãƒ«è¡¨ç¤ºã®æœ‰ç„¡ [true:æœ?false:ç„¡]
253             *
254             * @return  オプションタグ
255             */
256            public String getRadio( final String name,final String selectValue,final boolean useLabel ) {
257                    String errMsg = "ã“ã?クラスã§ã¯å®Ÿè£?•れã¦ã?¾ã›ã‚“ã€?;
258                    throw new UnsupportedOperationException( errMsg );
259            }
260    
261            /**
262             * åˆæœŸå€¤ãŒé¸æŠžæ¸ˆã¿ã® é¸æŠžè‚¢(オプション)ã‚’è¿”ã—ã¾ã™ã?
263             * ã“ã?オプションã¯ã€å¼•æ•°ã®å€¤ã‚’å?期å?ã¨ã™ã‚‹ã‚ªãƒ—ションタグを返ã—ã¾ã™ã?
264             * ※ ã“ã?クラスã§ã¯å®Ÿè£?•れã¦ã?¾ã›ã‚“ã€?
265             *
266             * @param   selectValue  é¸æŠžã•れã¦ã?‚‹å€¤
267             *
268             * @return  オプションタグ
269             */
270            public String getRadioLabel( final String selectValue ) {
271                    String errMsg = "ã“ã?クラスã§ã¯å®Ÿè£?•れã¦ã?¾ã›ã‚“ã€?;
272                    throw new UnsupportedOperationException( errMsg );
273            }
274    
275            /**
276             * é¸æŠžè‚¢(value)ã«å¯¾ã™ã‚‹ãƒ©ãƒ™ãƒ«ã‚’è¿”ã—ã¾ã™ã?
277             * é¸æŠžè‚¢(value)ãŒã?存在ã—ãªã‹ã£ãŸå?åˆã?ã€?¸æŠžè‚¢ãã?ã‚‚ã?ã‚’è¿”ã—ã¾ã™ã?
278             * getValueLabel( XX ) ã¯ã€getValueLabel( XX,false ) ã¨åŒã˜ã§ã™ã?
279             *
280             * @param   selectValue é¸æŠžè‚¢ã®å€¤
281             *
282             * @return  é¸æŠžè‚¢ã®ãƒ©ãƒ™ãƒ«
283             * @see     #getValueLabel( String,boolean )
284             */
285            public String getValueLabel( final String selectValue ) {
286                    return getValueLabel( selectValue,false );
287            }
288    
289            /**
290             * é¸æŠžè‚¢(value)ã«å¯¾ã™ã‚‹ãƒ©ãƒ™ãƒ«ã‚’è¿”ã—ã¾ã™ã?
291             * é¸æŠžè‚¢(value)ãŒã?存在ã—ãªã‹ã£ãŸå?åˆã?ã€?¸æŠžè‚¢ãã?ã‚‚ã?ã‚’è¿”ã—ã¾ã™ã?
292             * ã“ã?メソãƒ?ƒ‰ã§ã¯ã€çŸ­ç¸®ãƒ©ãƒ™ãƒ«ã‚’è¿”ã™ã‹ã©ã?‹ã‚’指定ã™ã‚‹ãƒ•ラグを指定ã—ã¾ã™ã?
293             * getValueLabel( XX,false ) ã¯ã€getValueLabel( XX ) ã¨åŒã˜ã§ã™ã?
294             *
295             * @param       selectValue     é¸æŠžè‚¢ã®å€¤
296             * @param       flag    短縮ラベルã‚?[true:使用ã™ã‚‹/false:ã—ãªã„](未使用)
297             *
298             * @return  é¸æŠžè‚¢ã®ãƒ©ãƒ™ãƒ«
299             * @see     #getValueLabel( String )
300             */
301            public String getValueLabel( final String selectValue,final boolean flag ) {
302                    // ã‚ã‚ã?Œãªã‹ã‚ã?Œã€?¸æŠžè‚¢ãã?ã‚‚ã?ã‚’è¿”ã—ã¾ã™ã?
303                    return selectValue;
304            }
305    
306            /**
307             * マルãƒã?キーセレクトを使用ã™ã‚‹ã‹ã©ã?‹ã‚’è¿”ã—ã¾ã™ã?
308             * true?šä½¿ç”¨ã™ã‚‹ã€‚false:使用ã—ãªã?ã§ã™ã?
309             * ãŸã ã—ã?実際ã«ä½¿ç”¨ã™ã‚‹ã‹ã©ã?‹ã¯ã€HTMLå‡ºåŠ›æ™‚ã«æ±ºã‚ã‚‹ã“ã¨ãŒå?æ¥ã¾ã™ã?
310             * ã“ã“ã§ã¯ã€USE_MULTI_KEY_SELECT ã?true ã§ã€USE_SIZE(=20)以上ã?å ´åˆã«
311             * true ã‚’è¿”ã—ã¾ã™ã?
312             *
313             * @return  é¸æŠžãƒªã‚¹ãƒˆã§ã€ã?ルãƒã?キーセレクトを使用ã™ã‚‹ã‹ã©ã?‹(true:使用ã™ã‚‹)(false固å®?
314             */
315            public boolean useMultiSelect() {
316                    return true;
317            }
318    
319            /**
320             * オブジェクトã?キャãƒ?‚·ãƒ¥ãŒæ™‚é–“å?れã‹ã©ã?‹ã‚’è¿”ã—ã¾ã™ã?
321             * キャãƒ?‚·ãƒ¥ãŒæ™‚é–“å?ã‚?無効)ã§ã‚れã°ã€true ã‚’ã?有効ã§ã‚れã°ã€?
322             * false ã‚’è¿”ã—ã¾ã™ã?
323             *
324             * @return  キャãƒ?‚·ãƒ¥ãŒæ™‚é–“å?れãªã‚?true
325             */
326            public boolean isTimeOver() {
327                    return ( System.currentTimeMillis() > maxCacheTime ) ;
328            }
329    }