blob: e7eeb921e9cf4a04f2c976ad26693994078fac36 [file] [log] [blame]
kmoore7fe1ca12011-10-04 12:35:33 +00001/*******************************************************************************
2 * Copyright (c) 2011 Oracle. All rights reserved.
3 * This program and the accompanying materials are made available under the
4 * terms of the Eclipse Public License v1.0, which accompanies this distribution
5 * and is available at http://www.eclipse.org/legal/epl-v10.html.
6 *
7 * Contributors:
8 * Oracle - initial API and implementation
9 ******************************************************************************/
kmoore6a7396c2011-10-07 12:53:14 +000010package org.eclipse.jpt.jpa.eclipselink.core.context;
kmoore7fe1ca12011-10-04 12:35:33 +000011
12import org.eclipse.jpt.jpa.core.context.VirtualNamedDiscriminatorColumn;
13import org.eclipse.jpt.jpa.core.context.VirtualTableColumn;
14
15/**
16 * Virtual tenant discriminator column
17 * <p>
18 * Provisional API: This interface is part of an interim API that is still
19 * under development and expected to change significantly before reaching
20 * stability. It is available at this early stage to solicit feedback from
21 * pioneering adopters on the understanding that any code that uses this API
22 * will almost certainly be broken (repeatedly) as the API evolves.
23 */
kmoore6a7396c2011-10-07 12:53:14 +000024public interface VirtualTenantDiscriminatorColumn2_3
25 extends VirtualNamedDiscriminatorColumn, VirtualTableColumn, ReadOnlyTenantDiscriminatorColumn2_3
kmoore7fe1ca12011-10-04 12:35:33 +000026{
kmoore6a7396c2011-10-07 12:53:14 +000027 ReadOnlyTenantDiscriminatorColumn2_3 getOverriddenColumn();
kmoore7fe1ca12011-10-04 12:35:33 +000028
29 // ********** owner **********
30
31 /**
32 * Interface allowing the virtual column to be get the column it overrides.
33 */
34 interface Owner
kmoore6a7396c2011-10-07 12:53:14 +000035 extends ReadOnlyTenantDiscriminatorColumn2_3.Owner
kmoore7fe1ca12011-10-04 12:35:33 +000036 {
37 /**
38 * Return the column overridden by the virtual column.
39 */
kmoore6a7396c2011-10-07 12:53:14 +000040 ReadOnlyTenantDiscriminatorColumn2_3 resolveOverriddenColumn();
kmoore7fe1ca12011-10-04 12:35:33 +000041 }
42}