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            @Override
021            public int getCountDeleted() {
022                    return countDeleted;
023            }
024    
025            @Override
026            public int getCountInserted() {
027                    return countInserted;
028            }
029    
030            @Override
031            public int getCountUpdated() {
032                    return countUpdated;
033            }
034    
035            /**
036             * @param countDeleted the countDeleted to set
037             */
038            public void setCountDeleted(int countDeleted) {
039                    this.countDeleted = countDeleted;
040            }
041    
042            /**
043             * @param countInserted the countInserted to set
044             */
045            public void setCountInserted(int countInserted) {
046                    this.countInserted = countInserted;
047            }
048    
049            /**
050             * @param countUpdated the countUpdated to set
051             */
052            public void setCountUpdated(int countUpdated) {
053                    this.countUpdated = countUpdated;
054            }
055            /**
056             * @param countDeleted the countDeleted to set
057             */
058            public void incCountDeleted() {
059                    this.countDeleted++;
060            }
061    
062            /**
063             * @param countInserted the countInserted to set
064             */
065            public void incCountInserted() {
066                    this.countInserted++;
067            }
068    
069            /**
070             * @param countUpdated the countUpdated to set
071             */
072            public void incCountUpdated() {
073                    this.countUpdated++;
074            }
075            
076    }