001/* 002// This software is subject to the terms of the Eclipse Public License v1.0 003// Agreement, available at the following URL: 004// http://www.eclipse.org/legal/epl-v10.html. 005// You must accept the terms of that agreement to use this software. 006// 007// Copyright (C) 2012-2012 Pentaho and others 008// All Rights Reserved. 009*/ 010package mondrian.rolap; 011 012import mondrian.util.Pair; 013 014/** 015 * Key for an instance of a schema. Schemas are equivalent if they have 016 * equivalent metadata content and underlying SQL database connection. 017 * Equivalent schemas can share the same cache, including a distributed 018 * cache. 019 */ 020class SchemaKey 021 extends Pair<SchemaContentKey, ConnectionKey> 022{ 023 /** Creates a schema key. */ 024 SchemaKey( 025 SchemaContentKey schemaContentKey, 026 ConnectionKey connectionKey) 027 { 028 super(schemaContentKey, connectionKey); 029 assert schemaContentKey != null; 030 assert connectionKey != null; 031 } 032} 033 034// End SchemaKey.java