kmoore | 7fe1ca1 | 2011-10-04 12:35:33 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
| 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 | ******************************************************************************/ |
kmoore | 6a7396c | 2011-10-07 12:53:14 +0000 | [diff] [blame] | 10 | package org.eclipse.jpt.jpa.eclipselink.core.context; |
kmoore | 7fe1ca1 | 2011-10-04 12:35:33 +0000 | [diff] [blame] | 11 | |
| 12 | import org.eclipse.jpt.jpa.core.context.VirtualNamedDiscriminatorColumn; |
| 13 | import 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 | */ |
kmoore | 6a7396c | 2011-10-07 12:53:14 +0000 | [diff] [blame] | 24 | public interface VirtualTenantDiscriminatorColumn2_3 |
| 25 | extends VirtualNamedDiscriminatorColumn, VirtualTableColumn, ReadOnlyTenantDiscriminatorColumn2_3 |
kmoore | 7fe1ca1 | 2011-10-04 12:35:33 +0000 | [diff] [blame] | 26 | { |
kmoore | 6a7396c | 2011-10-07 12:53:14 +0000 | [diff] [blame] | 27 | ReadOnlyTenantDiscriminatorColumn2_3 getOverriddenColumn(); |
kmoore | 7fe1ca1 | 2011-10-04 12:35:33 +0000 | [diff] [blame] | 28 | |
| 29 | // ********** owner ********** |
| 30 | |
| 31 | /** |
| 32 | * Interface allowing the virtual column to be get the column it overrides. |
| 33 | */ |
| 34 | interface Owner |
kmoore | 6a7396c | 2011-10-07 12:53:14 +0000 | [diff] [blame] | 35 | extends ReadOnlyTenantDiscriminatorColumn2_3.Owner |
kmoore | 7fe1ca1 | 2011-10-04 12:35:33 +0000 | [diff] [blame] | 36 | { |
| 37 | /** |
| 38 | * Return the column overridden by the virtual column. |
| 39 | */ |
kmoore | 6a7396c | 2011-10-07 12:53:14 +0000 | [diff] [blame] | 40 | ReadOnlyTenantDiscriminatorColumn2_3 resolveOverriddenColumn(); |
kmoore | 7fe1ca1 | 2011-10-04 12:35:33 +0000 | [diff] [blame] | 41 | } |
| 42 | } |