001    package railo.runtime.search;
002    
003    
004    public final class IndexResultImpl implements IndexResult {
005            
006            private int countDeleted;
007            private int countInserted;
008            private int countUpdated;
009            
010            public static IndexResult EMPTY=new IndexResultImpl(0,0,0);
011    
012            public IndexResultImpl(int countDeleted,int countInserted,int countUpdated) {
013                    this.countDeleted=countDeleted;
014                    this.countInserted=countInserted;
015                    this.countUpdated=countUpdated;
016            }
017            public IndexResultImpl() {
018            }
019    
020            /**
021             *
022             * @see railo.runtime.search.IndexResult#getCountDeleted()
023             */
024            public int getCountDeleted() {
025                    return countDeleted;
026            }
027    
028            /**
029             *
030             * @see railo.runtime.search.IndexResult#getCountInserted()
031             */
032            public int getCountInserted() {
033                    return countInserted;
034            }
035    
036            /**
037             *
038             * @see railo.runtime.search.IndexResult#getCountUpdated()
039             */
040            public int getCountUpdated() {
041                    return countUpdated;
042            }
043    
044            /**
045             * @param countDeleted the countDeleted to set
046             */
047            public void setCountDeleted(int countDeleted) {
048                    this.countDeleted = countDeleted;
049            }
050    
051            /**
052             * @param countInserted the countInserted to set
053             */
054            public void setCountInserted(int countInserted) {
055                    this.countInserted = countInserted;
056            }
057    
058            /**
059             * @param countUpdated the countUpdated to set
060             */
061            public void setCountUpdated(int countUpdated) {
062                    this.countUpdated = countUpdated;
063            }
064            /**
065             * @param countDeleted the countDeleted to set
066             */
067            public void incCountDeleted() {
068                    this.countDeleted++;
069            }
070    
071            /**
072             * @param countInserted the countInserted to set
073             */
074            public void incCountInserted() {
075                    this.countInserted++;
076            }
077    
078            /**
079             * @param countUpdated the countUpdated to set
080             */
081            public void incCountUpdated() {
082                    this.countUpdated++;
083            }
084            
085    }