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