felix@1825: package de.intevation.flys.artifacts.model;
felix@1825: 
felix@1825: import java.io.Serializable;
felix@1825: 
felix@1825: /**
felix@1825:  * Caching-Key object for 'static' wst- data.
felix@1825:  */
felix@1825: public final class StaticWQKmsCacheKey
felix@1825: implements         Serializable
felix@1825: {
felix@2090:     public static final String CACHE_NAME = "wst-wq-value-table-static";
felix@1825: 
felix@1825:     private int column;
felix@1825:     private int wst_id;
felix@1825: 
felix@1825:     public StaticWQKmsCacheKey(int column, int wst_id) {
felix@1825:         this.wst_id  = wst_id;
felix@1825:         this.column  = column;
felix@1825:     }
felix@1825: 
felix@1825:     public int hashCode() {
felix@1825:         return (wst_id << 8) | column;
felix@1825:     }
felix@1825: 
felix@1825:     public boolean equals(Object other) {
felix@1825:         if (!(other instanceof StaticWQKmsCacheKey)) {
felix@1825:             return false;
felix@1825:         }
felix@1825:         StaticWQKmsCacheKey o = (StaticWQKmsCacheKey) other;
felix@2090:         return this.wst_id == o.wst_id && this.column == o.column;
felix@1825:     }
felix@1825: }
felix@1825: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :