diff options
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context')
40 files changed, 0 insertions, 2055 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/BasicCollectionMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/BasicCollectionMapping.java deleted file mode 100644 index e396ef0d7c..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/BasicCollectionMapping.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.AttributeMapping; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface BasicCollectionMapping extends AttributeMapping -{ -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/BasicMapMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/BasicMapMapping.java deleted file mode 100644 index f9a37b3d73..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/BasicMapMapping.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.AttributeMapping; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface BasicMapMapping extends AttributeMapping -{ -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/CacheCoordinationType.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/CacheCoordinationType.java deleted file mode 100644 index 33bb3c8391..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/CacheCoordinationType.java +++ /dev/null @@ -1,106 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public enum CacheCoordinationType { - - SEND_OBJECT_CHANGES, - INVALIDATE_CHANGED_OBJECTS, - SEND_NEW_OBJECTS_WITH_CHANGES, - NONE; - - - public static CacheCoordinationType fromJavaResourceModel(org.eclipse.jpt.eclipselink.core.resource.java.CacheCoordinationType javaCacheCoordinationType) { - if (javaCacheCoordinationType == null) { - return null; - } - switch (javaCacheCoordinationType) { - case SEND_OBJECT_CHANGES: - return SEND_OBJECT_CHANGES; - case INVALIDATE_CHANGED_OBJECTS: - return INVALIDATE_CHANGED_OBJECTS; - case SEND_NEW_OBJECTS_WITH_CHANGES: - return SEND_NEW_OBJECTS_WITH_CHANGES; - case NONE: - return NONE; - default: - throw new IllegalArgumentException("unknown cache coordination type: " + javaCacheCoordinationType); //$NON-NLS-1$ - } - } - - public static org.eclipse.jpt.eclipselink.core.resource.java.CacheCoordinationType toJavaResourceModel(CacheCoordinationType cacheCoordinationType) { - if (cacheCoordinationType == null) { - return null; - } - switch (cacheCoordinationType) { - case SEND_OBJECT_CHANGES: - return org.eclipse.jpt.eclipselink.core.resource.java.CacheCoordinationType.SEND_OBJECT_CHANGES; - case INVALIDATE_CHANGED_OBJECTS: - return org.eclipse.jpt.eclipselink.core.resource.java.CacheCoordinationType.INVALIDATE_CHANGED_OBJECTS; - case SEND_NEW_OBJECTS_WITH_CHANGES: - return org.eclipse.jpt.eclipselink.core.resource.java.CacheCoordinationType.SEND_NEW_OBJECTS_WITH_CHANGES; - case NONE: - return org.eclipse.jpt.eclipselink.core.resource.java.CacheCoordinationType.NONE; - default: - throw new IllegalArgumentException("unknown cache coordination type: " + cacheCoordinationType); //$NON-NLS-1$ - } - } - - - public static CacheCoordinationType fromOrmResourceModel(org.eclipse.jpt.eclipselink.core.resource.orm.CacheCoordinationType ormCacheCoordinationType) { - if (ormCacheCoordinationType == null) { - return null; - } - switch (ormCacheCoordinationType) { - case SEND_OBJECT_CHANGES: - return SEND_OBJECT_CHANGES; - case INVALIDATE_CHANGED_OBJECTS: - return INVALIDATE_CHANGED_OBJECTS; - case SEND_NEW_OBJECTS_WITH_CHANGES: - return SEND_NEW_OBJECTS_WITH_CHANGES; - case NONE: - return NONE; - default: - throw new IllegalArgumentException("unknown cache coordination type: " + ormCacheCoordinationType); //$NON-NLS-1$ - } - } - - public static org.eclipse.jpt.eclipselink.core.resource.orm.CacheCoordinationType toOrmResourceModel(CacheCoordinationType cacheCoordinationType) { - if (cacheCoordinationType == null) { - return null; - } - switch (cacheCoordinationType) { - case SEND_OBJECT_CHANGES: - return org.eclipse.jpt.eclipselink.core.resource.orm.CacheCoordinationType.SEND_OBJECT_CHANGES; - case INVALIDATE_CHANGED_OBJECTS: - return org.eclipse.jpt.eclipselink.core.resource.orm.CacheCoordinationType.INVALIDATE_CHANGED_OBJECTS; - case SEND_NEW_OBJECTS_WITH_CHANGES: - return org.eclipse.jpt.eclipselink.core.resource.orm.CacheCoordinationType.SEND_NEW_OBJECTS_WITH_CHANGES; - case NONE: - return org.eclipse.jpt.eclipselink.core.resource.orm.CacheCoordinationType.NONE; - default: - throw new IllegalArgumentException("unknown cache coordination type: " + cacheCoordinationType); //$NON-NLS-1$ - } - } - -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/CacheType.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/CacheType.java deleted file mode 100644 index ade7450182..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/CacheType.java +++ /dev/null @@ -1,133 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public enum CacheType { - - SOFT_WEAK, - HARD_WEAK, - WEAK, - SOFT, - FULL, - CACHE, - NONE; - - - public static CacheType fromJavaResourceModel(org.eclipse.jpt.eclipselink.core.resource.java.CacheType javaCacheType) { - if (javaCacheType == null) { - return null; - } - switch (javaCacheType) { - case FULL: - return FULL; - case WEAK: - return WEAK; - case SOFT: - return SOFT; - case SOFT_WEAK: - return SOFT_WEAK; - case HARD_WEAK: - return HARD_WEAK; - case CACHE: - return CACHE; - case NONE: - return NONE; - default: - throw new IllegalArgumentException("unknown cache type: " + javaCacheType); //$NON-NLS-1$ - } - } - - public static org.eclipse.jpt.eclipselink.core.resource.java.CacheType toJavaResourceModel(CacheType cacheType) { - if (cacheType == null) { - return null; - } - switch (cacheType) { - case FULL: - return org.eclipse.jpt.eclipselink.core.resource.java.CacheType.FULL; - case WEAK: - return org.eclipse.jpt.eclipselink.core.resource.java.CacheType.WEAK; - case SOFT: - return org.eclipse.jpt.eclipselink.core.resource.java.CacheType.SOFT; - case SOFT_WEAK: - return org.eclipse.jpt.eclipselink.core.resource.java.CacheType.SOFT_WEAK; - case HARD_WEAK: - return org.eclipse.jpt.eclipselink.core.resource.java.CacheType.HARD_WEAK; - case CACHE: - return org.eclipse.jpt.eclipselink.core.resource.java.CacheType.CACHE; - case NONE: - return org.eclipse.jpt.eclipselink.core.resource.java.CacheType.NONE; - default: - throw new IllegalArgumentException("unknown cache type: " + cacheType); //$NON-NLS-1$ - } - } - - - public static CacheType fromOrmResourceModel(org.eclipse.jpt.eclipselink.core.resource.orm.CacheType ormCacheType) { - if (ormCacheType == null) { - return null; - } - switch (ormCacheType) { - case FULL: - return FULL; - case WEAK: - return WEAK; - case SOFT: - return SOFT; - case SOFT_WEAK: - return SOFT_WEAK; - case HARD_WEAK: - return HARD_WEAK; - case CACHE: - return CACHE; - case NONE: - return NONE; - default: - throw new IllegalArgumentException("unknown cache type: " + ormCacheType); //$NON-NLS-1$ - } - } - - public static org.eclipse.jpt.eclipselink.core.resource.orm.CacheType toOrmResourceModel(CacheType cacheType) { - if (cacheType == null) { - return null; - } - switch (cacheType) { - case FULL: - return org.eclipse.jpt.eclipselink.core.resource.orm.CacheType.FULL; - case WEAK: - return org.eclipse.jpt.eclipselink.core.resource.orm.CacheType.WEAK; - case SOFT: - return org.eclipse.jpt.eclipselink.core.resource.orm.CacheType.SOFT; - case SOFT_WEAK: - return org.eclipse.jpt.eclipselink.core.resource.orm.CacheType.SOFT_WEAK; - case HARD_WEAK: - return org.eclipse.jpt.eclipselink.core.resource.orm.CacheType.HARD_WEAK; - case CACHE: - return org.eclipse.jpt.eclipselink.core.resource.orm.CacheType.CACHE; - case NONE: - return org.eclipse.jpt.eclipselink.core.resource.orm.CacheType.NONE; - default: - throw new IllegalArgumentException("unknown cache type: " + cacheType); //$NON-NLS-1$ - } - } - -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/Caching.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/Caching.java deleted file mode 100644 index e48e49b9b5..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/Caching.java +++ /dev/null @@ -1,205 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2009 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.JpaContextNode; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface Caching extends JpaContextNode -{ - //***************** shared ************************ - - /** - * This is the combination of defaultShared and specifiedShared. - * If getSpecifiedShared() returns null, then return isDefaultShared() - */ - boolean isShared(); - - boolean isDefaultShared(); - String DEFAULT_SHARED_PROPERTY = "defaultShared"; //$NON-NLS-1$ - boolean DEFAULT_SHARED = true; - - Boolean getSpecifiedShared(); - - /** - * Setting this to false means that cacheType, cacheSize, alwaysRefresh, - * refreshOnlyIfNewer, disableHits, cacheCoordinationType will all be set - * to their default states. These settings do not apply to a cache that is not shared - * @param newSpecifiedShared - */ - void setSpecifiedShared(Boolean newSpecifiedShared); - String SPECIFIED_SHARED_PROPERTY = "specifiedShared"; //$NON-NLS-1$ - - - //***************** cache type ************************ - - /** - * This is the combination of defaultType and specifiedType. - * If getSpecifiedType() returns null, then return getDefaultType() - */ - CacheType getType(); - - CacheType getDefaultType(); - String DEFAULT_TYPE_PROPERTY = "defaultType"; //$NON-NLS-1$ - CacheType DEFAULT_TYPE = CacheType.SOFT_WEAK; - - CacheType getSpecifiedType(); - void setSpecifiedType(CacheType newSpecifiedType); - String SPECIFIED_TYPE_PROPERTY = "specifiedType"; //$NON-NLS-1$ - - - //***************** size ************************ - - /** - * This is the combination of defaultSize and specifiedSize. - * If getSpecifiedSize() returns null, then return getDefaultSize() - */ - int getSize(); - - int getDefaultSize(); - int DEFAULT_SIZE = 100; - String DEFAULT_SIZE_PROPERTY = "defaultSize"; //$NON-NLS-1$ - - Integer getSpecifiedSize(); - void setSpecifiedSize(Integer newSpecifiedSize); - String SPECIFIED_SIZE_PROPERTY = "specifiedSize"; //$NON-NLS-1$ - - //***************** always refresh ************************ - - /** - * This is the combination of defaultAlwaysRefresh and specifiedAlwaysRefresh. - * If getSpecifiedAlwaysRefresh() returns null, then return isDefaultAlwaysRefresh() - */ - boolean isAlwaysRefresh(); - - boolean isDefaultAlwaysRefresh(); - String DEFAULT_ALWAYS_REFRESH_PROPERTY = "defaultAlwaysRefresh"; //$NON-NLS-1$ - boolean DEFAULT_ALWAYS_REFRESH = false; - - Boolean getSpecifiedAlwaysRefresh(); - void setSpecifiedAlwaysRefresh(Boolean newSpecifiedAlwaysRefresh); - String SPECIFIED_ALWAYS_REFRESH_PROPERTY = "specifiedAlwaysRefresh"; //$NON-NLS-1$ - - - //***************** refresh only if newer ************************ - - /** - * This is the combination of defaultRefreshOnlyIfNewer and specifiedRefreshOnlyIfNewer. - * If getSpecifiedRefreshOnlyIfNewer() returns null, then return isDefaultRefreshOnlyIfNewer() - */ - boolean isRefreshOnlyIfNewer(); - - boolean isDefaultRefreshOnlyIfNewer(); - String DEFAULT_REFRESH_ONLY_IF_NEWER_PROPERTY = "defaultRefreshOnlyIfNewer"; //$NON-NLS-1$ - boolean DEFAULT_REFRESH_ONLY_IF_NEWER = false; - - Boolean getSpecifiedRefreshOnlyIfNewer(); - void setSpecifiedRefreshOnlyIfNewer(Boolean newSpecifiedRefreshOnlyIfNewer); - String SPECIFIED_REFRESH_ONLY_IF_NEWER_PROPERTY = "specifiedRefreshOnlyIfNewer"; //$NON-NLS-1$ - - - //***************** disable hits ************************ - - /** - * This is the combination of defaultDisableHits and specifiedDisableHits. - * If getSpecifiedDisableHits() returns null, then return getDefaultDisableHits() - */ - boolean isDisableHits(); - - boolean isDefaultDisableHits(); - String DEFAULT_DISABLE_HITS_PROPERTY = "defaultDisableHits"; //$NON-NLS-1$ - boolean DEFAULT_DISABLE_HITS = false; - - Boolean getSpecifiedDisableHits(); - void setSpecifiedDisableHits(Boolean newSpecifiedDisableHits); - String SPECIFIED_DISABLE_HITS_PROPERTY = "specifiedDisableHits"; //$NON-NLS-1$ - - - //***************** coordination type ************************ - - /** - * This is the combination of defaultCoordinationType and specifiedCoordinationType. - * If getSpecifiedCoordinationType() returns null, then return getDefaultCoordinationType() - */ - CacheCoordinationType getCoordinationType(); - - CacheCoordinationType getDefaultCoordinationType(); - String DEFAULT_COORDINATION_TYPE_PROPERTY = "defaultCoordinationType"; //$NON-NLS-1$ - CacheCoordinationType DEFAULT_COORDINATION_TYPE = CacheCoordinationType.SEND_OBJECT_CHANGES; - - CacheCoordinationType getSpecifiedCoordinationType(); - void setSpecifiedCoordinationType(CacheCoordinationType newSpecifiedCoordinationType); - String SPECIFIED_COORDINATION_TYPE_PROPERTY = "specifiedCoordinationType"; //$NON-NLS-1$ - - - //***************** existence checking ************************ - - /** - * This is the combination of defaultExistenceType and specifiedExistenceType. - * If getSpecifiedExistenceType() returns null, then return getDefaultExistenceType() - */ - ExistenceType getExistenceType(); - - ExistenceType getDefaultExistenceType(); - String DEFAULT_EXISTENCE_TYPE_PROPERTY = "defaultExistenceType"; //$NON-NLS-1$ - ExistenceType DEFAULT_EXISTENCE_TYPE = ExistenceType.CHECK_DATABASE; - - ExistenceType getSpecifiedExistenceType(); - void setSpecifiedExistenceType(ExistenceType newSpecifiedExistenceType); - String SPECIFIED_EXISTENCE_TYPE_PROPERTY = "specifiedExistenceType"; //$NON-NLS-1$ - - - //***************** expiry ************************ - - /** - * corresponds to the Cache expiry element. If this returns - * a non-null value then getExpiryTimeOfDay will return null. - * It is not valid to specify both - */ - Integer getExpiry(); - - /** - * Setting this to a non-null value will set timeOfDayExpiry to null - * @param expiry - */ - void setExpiry(Integer expiry); - String EXPIRY_PROPERTY = "expiry"; //$NON-NLS-1$ - - - /** - * corresponds to the Cache expiryTimeOfDay annotation or xml element. - * If this returns a non-null value then getExpiry will return null. - * It is not valid to specify both. - */ - ExpiryTimeOfDay getExpiryTimeOfDay(); - - /** - * Add Cache expiryTimeOfDay annotation or xml element, this will set - * Expiry to null as it is not valid to set both expiry and timeOfDayExpiry - */ - ExpiryTimeOfDay addExpiryTimeOfDay(); - - /** - * Removes the Cache expiryTimeOfDay annotation/xml element - */ - void removeExpiryTimeOfDay(); - String EXPIRY_TIME_OF_DAY_PROPERTY = "expiryTimeOfDay"; //$NON-NLS-1$ -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ChangeTracking.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ChangeTracking.java deleted file mode 100644 index d4cfa6068b..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ChangeTracking.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2009 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.JpaContextNode; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface ChangeTracking extends JpaContextNode -{ - /** - * This is the combination of defaultType and specifiedType. - * If getSpecifiedType() returns null, then return getDefaultType() - */ - ChangeTrackingType getType(); - - ChangeTrackingType getDefaultType(); - String DEFAULT_TYPE_PROPERTY = "defaultType"; //$NON-NLS-1$ - ChangeTrackingType DEFAULT_TYPE = ChangeTrackingType.AUTO; - - ChangeTrackingType getSpecifiedType(); - void setSpecifiedType(ChangeTrackingType newSpecifiedType); - String SPECIFIED_TYPE_PROPERTY = "specifiedType"; //$NON-NLS-1$ -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ChangeTrackingType.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ChangeTrackingType.java deleted file mode 100644 index 396500f9f8..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ChangeTrackingType.java +++ /dev/null @@ -1,106 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.eclipselink.core.resource.orm.XmlChangeTrackingType; - - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public enum ChangeTrackingType { - - ATTRIBUTE, - OBJECT, - DEFERRED, - AUTO; - - - public static ChangeTrackingType fromJavaResourceModel(org.eclipse.jpt.eclipselink.core.resource.java.ChangeTrackingType javaChangeTrackingType) { - if (javaChangeTrackingType == null) { - return null; - } - switch (javaChangeTrackingType) { - case ATTRIBUTE: - return ATTRIBUTE; - case OBJECT: - return OBJECT; - case DEFERRED: - return DEFERRED; - case AUTO: - return AUTO; - default: - throw new IllegalArgumentException("unknown change tracking type: " + javaChangeTrackingType); //$NON-NLS-1$ - } - } - - public static org.eclipse.jpt.eclipselink.core.resource.java.ChangeTrackingType toJavaResourceModel(ChangeTrackingType changeTrackingType) { - if (changeTrackingType == null) { - return null; - } - switch (changeTrackingType) { - case ATTRIBUTE: - return org.eclipse.jpt.eclipselink.core.resource.java.ChangeTrackingType.ATTRIBUTE; - case OBJECT: - return org.eclipse.jpt.eclipselink.core.resource.java.ChangeTrackingType.OBJECT; - case DEFERRED: - return org.eclipse.jpt.eclipselink.core.resource.java.ChangeTrackingType.DEFERRED; - case AUTO: - return org.eclipse.jpt.eclipselink.core.resource.java.ChangeTrackingType.AUTO; - default: - throw new IllegalArgumentException("unknown change tracking type: " + changeTrackingType); //$NON-NLS-1$ - } - } - - public static ChangeTrackingType fromOrmResourceModel(XmlChangeTrackingType ormChangeTrackingType) { - if (ormChangeTrackingType == null) { - return null; - } - switch (ormChangeTrackingType) { - case ATTRIBUTE: - return ATTRIBUTE; - case OBJECT: - return OBJECT; - case DEFERRED: - return DEFERRED; - case AUTO: - return AUTO; - default: - throw new IllegalArgumentException("unknown change tracking type: " + ormChangeTrackingType); - } - } - - public static XmlChangeTrackingType toOrmResourceModel(ChangeTrackingType changeTrackingType) { - if (changeTrackingType == null) { - return null; - } - switch (changeTrackingType) { - case ATTRIBUTE: - return XmlChangeTrackingType.ATTRIBUTE; - case OBJECT: - return XmlChangeTrackingType.OBJECT; - case DEFERRED: - return XmlChangeTrackingType.DEFERRED; - case AUTO: - return XmlChangeTrackingType.AUTO; - default: - throw new IllegalArgumentException("unknown change tracking type: " + changeTrackingType); - } - } -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ConversionValue.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ConversionValue.java deleted file mode 100644 index b3c1b6fe06..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ConversionValue.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2009 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.JpaContextNode; - -/** - * Corresponds to a ConversionValue resource model object - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface ConversionValue extends JpaContextNode -{ - String getDataValue(); - void setDataValue(String dataValue); - String DATA_VALUE_PROPERTY = "dataValue"; //$NON-NLS-1$ - - String getObjectValue(); - void setObjectValue(String objectValue); - String OBJECT_VALUE_PROPERTY = "objectValue"; //$NON-NLS-1$ - - ObjectTypeConverter getParent(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/Convert.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/Convert.java deleted file mode 100644 index 421f5f02a6..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/Convert.java +++ /dev/null @@ -1,86 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2009 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.Converter; -import org.eclipse.jpt.core.context.JpaContextNode; - -/** - * Corresponds to a Convert resource model object - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface Convert extends JpaContextNode, Converter -{ - - String ECLIPSE_LINK_CONVERTER = "eclipseLinkConverter"; //$NON-NLS-1$ - - String getConverterName(); - - String getDefaultConverterName(); - String DEFAULT_CONVERTER_NAME_PROPERTY = "defaultConverterName"; //$NON-NLS-1$ - - String getSpecifiedConverterName(); - - void setSpecifiedConverterName(String converterName); - String SPECIFIED_CONVERTER_NAME_PROPERTY = "specifiedConverterName"; //$NON-NLS-1$ - - /** - * Reserved name for specifying a serialized object converter. In this - * case there does not need to be a corresponding @CustomConverter defined. - */ - String SERIALIZED_CONVERTER = "serialized"; //$NON-NLS-1$ - - /** - * Reserved name for specifying a class instance converter. Will use a ClassInstanceConverter - * on the associated mapping. When using a ClassInstanceConverter the database representation is a - * String representing the Class name and the object-model representation is an instance - * of that class built with a no-args constructor - * In this case there does not need to be a corresponding @CustomConverter defined. - */ - String CLASS_INSTANCE_CONVERTER = "class-instance"; //$NON-NLS-1$ - - /** - * Reserved name for specifying no converter. This can be used to override a situation where either - * another converter is defaulted or another converter is set. - * In this case there does not need to be a corresponding @CustomConverter defined. - */ - String NO_CONVERTER = "none"; //$NON-NLS-1$ - - String[] RESERVED_CONVERTER_NAMES = {NO_CONVERTER, CLASS_INSTANCE_CONVERTER, SERIALIZED_CONVERTER}; - - String DEFAULT_CONVERTER_NAME = NO_CONVERTER; - - /** - * This will return null if there is no converter specified on the mapping - * @return - */ - EclipseLinkConverter getConverter(); - String CONVERTER_PROPERTY = "converter"; //$NON-NLS-1$ - - /** - * Possible values for converter type are: - * {@value EclipseLinkNamedConverter#TYPE_CONVERTER} - * {@value EclipseLinkNamedConverter#STRUCT_CONVERTER} - * {@value EclipseLinkNamedConverter#CUSTOM_CONVERTER} - * {@value EclipseLinkNamedConverter#NO_CONVERTER} - * {@value EclipseLinkNamedConverter#OBJECT_TYPE_CONVERTER} - * @param converterType - */ - void setConverter(String converterType); - -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/CustomConverter.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/CustomConverter.java deleted file mode 100644 index f93fa9d7c0..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/CustomConverter.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2009 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -/** - * Corresponds to a CustomConverter resource model object - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface CustomConverter extends EclipseLinkConverter -{ - - String getConverterClass(); - void setConverterClass(String converterClass); - String CONVERTER_CLASS_PROPERTY = "converterClass"; //$NON-NLS-1$ - String ECLIPSELINK_CONVERTER_CLASS_NAME = "org.eclipse.persistence.mappings.converters.Converter"; //$NON-NLS-1$ - -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/Customizer.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/Customizer.java deleted file mode 100644 index fcf6f98004..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/Customizer.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2009 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.JpaContextNode; - -/** - * Corresponds to a Customizer resource model object - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface Customizer extends JpaContextNode -{ - - String getCustomizerClass(); - - String getDefaultCustomizerClass(); - String DEFAULT_CUSTOMIZER_CLASS_PROPERTY = "defaultCustomizerClass"; //$NON-NLS-1$ - - String getSpecifiedCustomizerClass(); - void setSpecifiedCustomizerClass(String customizerClass); - String SPECIFIED_CUSTOMIZER_CLASS_PROPERTY = "specifiedCustomizerClass"; //$NON-NLS-1$ - String ECLIPSELINK_DESCRIPTOR_CUSTOMIZER_CLASS_NAME = "org.eclipse.persistence.config.DescriptorCustomizer"; //$NON-NLS-1$ - - /** - * Return the char to be used for browsing or creating the customizer class IType. - * @see org.eclipse.jdt.core.IType#getFullyQualifiedName(char) - */ - char getCustomizerClassEnclosingTypeSeparator(); - -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkBasicMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkBasicMapping.java deleted file mode 100644 index 3bd5ae1909..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkBasicMapping.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.BasicMapping; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface EclipseLinkBasicMapping extends BasicMapping -{ - Mutable getMutable(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkConverter.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkConverter.java deleted file mode 100644 index ad9b3f91f5..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkConverter.java +++ /dev/null @@ -1,64 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2009 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.JpaContextNode; - -/** - * Corresponds to a *CustomConverter resource model object - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface EclipseLinkConverter extends JpaContextNode -{ - /** - * Return a string that represents the type of converter. - * Possibilities are below, NO_CONVERTER, CUSTOM_CONVERTER, - * OBJECT_TYPE_CONVERTER, STRUCT_CONVERTER, TYPE_CONVERTER - */ - String getType(); - String NO_CONVERTER = "noConverter"; //$NON-NLS-1$ - String CUSTOM_CONVERTER = "customConverter"; //$NON-NLS-1$ - String OBJECT_TYPE_CONVERTER = "objectTypeConverter"; //$NON-NLS-1$ - String STRUCT_CONVERTER = "structConverter"; //$NON-NLS-1$ - String TYPE_CONVERTER = "typeConverter"; //$NON-NLS-1$ - - String getName(); - void setName(String name); - String NAME_PROPERTY = "name"; //$NON-NLS-1$ - - /** - * Return the char to be used for browsing or creating the converter class IType. - * @see org.eclipse.jdt.core.IType#getFullyQualifiedName(char) - */ - char getEnclosingTypeSeparator(); - - /** - * Return whether the converter definition overrides the definition of the - * given converter - * (e.g. a converter defined in orm.xml overrides one defined in java). - */ - boolean overrides(EclipseLinkConverter converter); - - /** - * Return whether the converter is a duplicate of the given converter. - * A converter is not a duplicate of another converter if is the same exact converter, - * if it is a nameless converter (which is an error condition), or if it overrides - * or is overridden by the other converter. - */ - boolean duplicates(EclipseLinkConverter converter); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkEmbeddable.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkEmbeddable.java deleted file mode 100644 index 03c1395da4..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkEmbeddable.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.Embeddable; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface EclipseLinkEmbeddable extends Embeddable -{ - Customizer getCustomizer(); - - ChangeTracking getChangeTracking(); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkEntity.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkEntity.java deleted file mode 100644 index c6683a695c..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkEntity.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.Entity; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface EclipseLinkEntity extends Entity -{ - Caching getCaching(); - - ReadOnly getReadOnly(); - - Customizer getCustomizer(); - - ChangeTracking getChangeTracking(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkIdMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkIdMapping.java deleted file mode 100644 index c5b6ac9cc5..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkIdMapping.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.IdMapping; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface EclipseLinkIdMapping extends IdMapping -{ - Mutable getMutable(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkMappedSuperclass.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkMappedSuperclass.java deleted file mode 100644 index 4ab4a1a6a2..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkMappedSuperclass.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.MappedSuperclass; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface EclipseLinkMappedSuperclass extends MappedSuperclass -{ - Caching getCaching(); - - ReadOnly getReadOnly(); - - Customizer getCustomizer(); - - ChangeTracking getChangeTracking(); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkOneToManyMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkOneToManyMapping.java deleted file mode 100644 index 3c1a6a62a4..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkOneToManyMapping.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.OneToManyMapping; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface EclipseLinkOneToManyMapping - extends OneToManyMapping, EclipseLinkRelationshipMapping -{ - EclipseLinkOneToManyRelationshipReference getRelationshipReference(); - - PrivateOwned getPrivateOwned(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkOneToManyRelationshipReference.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkOneToManyRelationshipReference.java deleted file mode 100644 index fd1017288a..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkOneToManyRelationshipReference.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009 Oracle. - * All rights reserved. This program and the accompanying materials are - * made available under the terms of the Eclipse Public License v1.0 which - * accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle - initial API and implementation - *******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.JoinColumnEnabledRelationshipReference; -import org.eclipse.jpt.core.context.OneToManyRelationshipReference; -import org.eclipse.jpt.core.context.RelationshipReference; - - -/** - * Represents the {@link RelationshipReference} of an - * {@link EclipseLinkOneToManyMapping} - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface EclipseLinkOneToManyRelationshipReference - extends OneToManyRelationshipReference, - JoinColumnEnabledRelationshipReference -{ - -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkOneToOneMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkOneToOneMapping.java deleted file mode 100644 index be1c9b3e2f..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkOneToOneMapping.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.OneToOneMapping; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface EclipseLinkOneToOneMapping extends OneToOneMapping, EclipseLinkRelationshipMapping -{ - PrivateOwned getPrivateOwned(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkRelationshipMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkRelationshipMapping.java deleted file mode 100644 index 26fc3f9711..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkRelationshipMapping.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.RelationshipMapping; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface EclipseLinkRelationshipMapping - extends RelationshipMapping -{ - JoinFetch getJoinFetch(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkVersionMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkVersionMapping.java deleted file mode 100644 index 09327bb126..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkVersionMapping.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.VersionMapping; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface EclipseLinkVersionMapping - extends VersionMapping -{ - Mutable getMutable(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ExistenceType.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ExistenceType.java deleted file mode 100644 index a1e3807511..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ExistenceType.java +++ /dev/null @@ -1,106 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public enum ExistenceType { - - CHECK_CACHE, - CHECK_DATABASE, - ASSUME_EXISTENCE, - ASSUME_NON_EXISTENCE; - - - public static ExistenceType fromJavaResourceModel(org.eclipse.jpt.eclipselink.core.resource.java.ExistenceType javaExistenceType) { - if (javaExistenceType == null) { - return null; - } - switch (javaExistenceType) { - case CHECK_CACHE: - return CHECK_CACHE; - case CHECK_DATABASE: - return CHECK_DATABASE; - case ASSUME_EXISTENCE: - return ASSUME_EXISTENCE; - case ASSUME_NON_EXISTENCE: - return ASSUME_NON_EXISTENCE; - default: - throw new IllegalArgumentException("unknown existence type: " + javaExistenceType); //$NON-NLS-1$ - } - } - - public static org.eclipse.jpt.eclipselink.core.resource.java.ExistenceType toJavaResourceModel(ExistenceType existenceType) { - if (existenceType == null) { - return null; - } - switch (existenceType) { - case CHECK_CACHE: - return org.eclipse.jpt.eclipselink.core.resource.java.ExistenceType.CHECK_CACHE; - case CHECK_DATABASE: - return org.eclipse.jpt.eclipselink.core.resource.java.ExistenceType.CHECK_DATABASE; - case ASSUME_EXISTENCE: - return org.eclipse.jpt.eclipselink.core.resource.java.ExistenceType.ASSUME_EXISTENCE; - case ASSUME_NON_EXISTENCE: - return org.eclipse.jpt.eclipselink.core.resource.java.ExistenceType.ASSUME_NON_EXISTENCE; - default: - throw new IllegalArgumentException("unknown existence type: " + existenceType); //$NON-NLS-1$ - } - } - - - public static ExistenceType fromOrmResourceModel(org.eclipse.jpt.eclipselink.core.resource.orm.ExistenceType ormExistenceType) { - if (ormExistenceType == null) { - return null; - } - switch (ormExistenceType) { - case CHECK_CACHE: - return CHECK_CACHE; - case CHECK_DATABASE: - return CHECK_DATABASE; - case ASSUME_EXISTENCE: - return ASSUME_EXISTENCE; - case ASSUME_NON_EXISTENCE: - return ASSUME_NON_EXISTENCE; - default: - throw new IllegalArgumentException("unknown existence type: " + ormExistenceType); //$NON-NLS-1$ - } - } - - public static org.eclipse.jpt.eclipselink.core.resource.orm.ExistenceType toOrmResourceModel(ExistenceType existenceType) { - if (existenceType == null) { - return null; - } - switch (existenceType) { - case CHECK_CACHE: - return org.eclipse.jpt.eclipselink.core.resource.orm.ExistenceType.CHECK_CACHE; - case CHECK_DATABASE: - return org.eclipse.jpt.eclipselink.core.resource.orm.ExistenceType.CHECK_DATABASE; - case ASSUME_EXISTENCE: - return org.eclipse.jpt.eclipselink.core.resource.orm.ExistenceType.ASSUME_EXISTENCE; - case ASSUME_NON_EXISTENCE: - return org.eclipse.jpt.eclipselink.core.resource.orm.ExistenceType.ASSUME_NON_EXISTENCE; - default: - throw new IllegalArgumentException("unknown existence type: " + existenceType); //$NON-NLS-1$ - } - } - -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ExpiryTimeOfDay.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ExpiryTimeOfDay.java deleted file mode 100644 index fdc28b2787..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ExpiryTimeOfDay.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2009 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.JpaContextNode; - -/** - * Corresponds to a TimeOfDay resource model object - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface ExpiryTimeOfDay extends JpaContextNode -{ - - Integer getHour(); - void setHour(Integer hour); - String HOUR_PROPERTY = "hour"; //$NON-NLS-1$ - - Integer getMinute(); - void setMinute(Integer minute); - String MINUTE_PROPERTY = "minute"; //$NON-NLS-1$ - - Integer getSecond(); - void setSecond(Integer second); - String SECOND_PROPERTY = "second"; //$NON-NLS-1$ - - Integer getMillisecond(); - void setMillisecond(Integer millisecond); - String MILLISECOND_PROPERTY = "millisecond"; //$NON-NLS-1$ - -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/JoinFetch.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/JoinFetch.java deleted file mode 100644 index 481c20b36f..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/JoinFetch.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2009 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.JpaContextNode; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface JoinFetch extends JpaContextNode -{ - JoinFetchType getValue(); - void setValue(JoinFetchType newJoinFetchValue); - String VALUE_PROPERTY = "value"; //$NON-NLS-1$ - JoinFetchType DEFAULT_VALUE = JoinFetchType.INNER; -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/JoinFetchType.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/JoinFetchType.java deleted file mode 100644 index c01b4edfe8..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/JoinFetchType.java +++ /dev/null @@ -1,89 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public enum JoinFetchType { - - INNER, - OUTER; - - - public static JoinFetchType fromJavaResourceModel(org.eclipse.jpt.eclipselink.core.resource.java.JoinFetchType javaJoinFetchType) { - if (javaJoinFetchType == null) { - return null; - } - switch (javaJoinFetchType) { - case INNER: - return INNER; - case OUTER: - return OUTER; - default: - throw new IllegalArgumentException("unknown join fetch type: " + javaJoinFetchType); //$NON-NLS-1$ - } - } - - public static org.eclipse.jpt.eclipselink.core.resource.java.JoinFetchType toJavaResourceModel(JoinFetchType joinFetchType) { - if (joinFetchType == null) { - return null; - } - switch (joinFetchType) { - case INNER: - return org.eclipse.jpt.eclipselink.core.resource.java.JoinFetchType.INNER; - case OUTER: - return org.eclipse.jpt.eclipselink.core.resource.java.JoinFetchType.OUTER; - default: - throw new IllegalArgumentException("unknown join fetch type: " + joinFetchType); //$NON-NLS-1$ - } - } - - - public static JoinFetchType fromOrmResourceModel(XmlJoinFetchType ormJoinFetchType) { - if (ormJoinFetchType == null) { - return null; - } - switch (ormJoinFetchType) { - case INNER: - return INNER; - case OUTER: - return OUTER; - default: - throw new IllegalArgumentException("unknown join fetch type: " + ormJoinFetchType); //$NON-NLS-1$ - } - } - - public static XmlJoinFetchType toOrmResourceModel(JoinFetchType fetchType) { - if (fetchType == null) { - return null; - } - switch (fetchType) { - case INNER: - return XmlJoinFetchType.INNER; - case OUTER: - return XmlJoinFetchType.OUTER; - default: - throw new IllegalArgumentException("unknown join fetch type: " + fetchType); //$NON-NLS-1$ - } - } - -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/Mutable.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/Mutable.java deleted file mode 100644 index 1913055746..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/Mutable.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2009 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.JpaContextNode; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface Mutable extends JpaContextNode -{ - boolean isMutable(); - - boolean isDefaultMutable(); - String DEFAULT_MUTABLE_PROPERTY = "defaultMutable"; //$NON-NLS-1$ - - Boolean getSpecifiedMutable(); - void setSpecifiedMutable(Boolean newSpecifiedMutable); - String SPECIFIED_MUTABLE_PROPERTY = "specifiedMutable"; //$NON-NLS-1$ -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ObjectTypeConverter.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ObjectTypeConverter.java deleted file mode 100644 index 0c696015de..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ObjectTypeConverter.java +++ /dev/null @@ -1,92 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2009 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import java.util.ListIterator; - -/** - * Corresponds to a ObjectTypeConverter resource model object - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface ObjectTypeConverter extends EclipseLinkConverter -{ - String getDataType(); - void setDataType(String dataType); - String DATA_TYPE_PROPERTY = "dataType"; //$NON-NLS-1$ - - String getObjectType(); - void setObjectType(String objectType); - String OBJECT_TYPE_PROPERTY = "objectType"; //$NON-NLS-1$ - - - // **************** conversion values ************************************** - - /** - * Return a list iterator of the conversion values. - * This will not be null. - */ - <T extends ConversionValue> ListIterator<T> conversionValues(); - - /** - * Return the number of conversion values. - */ - int conversionValuesSize(); - - /** - * Add a conversion value to the object type mapping return the object - * representing it. - */ - ConversionValue addConversionValue(int index); - - /** - * Add a conversion value to the object type mapping return the object - * representing it. - */ - ConversionValue addConversionValue(); - - /** - * Remove the conversion value at the given index from the entity. - */ - void removeConversionValue(int index); - - /** - * Remove the conversion value from the entity. - */ - void removeConversionValue(ConversionValue conversionValue); - - /** - * Move the conversion values from the source index to the target index. - */ - void moveConversionValue(int targetIndex, int sourceIndex); - String CONVERSION_VALUES_LIST = "conversionValues"; //$NON-NLS-1$ - - - /** - * Returns a ListIterator of the ConversionValue dataValues. - * @return - */ - ListIterator<String> dataValues(); - - - // **************** default object value ************************************** - - String getDefaultObjectValue(); - void setDefaultObjectValue(String defaultObjectValue); - String DEFAULT_OBJECT_VALUE_PROPERTY = "defaultObjectValue"; //$NON-NLS-1$ - -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/PrivateOwned.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/PrivateOwned.java deleted file mode 100644 index 82123d38ba..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/PrivateOwned.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2009 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.JpaContextNode; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface PrivateOwned extends JpaContextNode -{ - boolean isPrivateOwned(); - void setPrivateOwned(boolean privateOwned); - String PRIVATE_OWNED_PROPERTY = "privateOwned"; //$NON-NLS-1$ -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ReadOnly.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ReadOnly.java deleted file mode 100644 index 78f3ceea33..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/ReadOnly.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.JpaContextNode; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface ReadOnly extends JpaContextNode -{ - boolean isReadOnly(); - - boolean isDefaultReadOnly(); - String DEFAULT_READ_ONLY_PROPERTY = "defaultReadOnly"; //$NON-NLS-1$ - boolean DEFAULT_READ_ONLY = false; - - Boolean getSpecifiedReadOnly(); - void setSpecifiedReadOnly(Boolean newSpecifiedReadOnly); - String SPECIFIED_READ_ONLY_PROPERTY = "specifiedReadOnly"; //$NON-NLS-1$ -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/StructConverter.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/StructConverter.java deleted file mode 100644 index 323f3ce649..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/StructConverter.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2009 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -/** - * Corresponds to a StructConverter resource model object - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface StructConverter extends EclipseLinkConverter -{ - String getConverterClass(); - void setConverterClass(String converterClass); - String CONVERTER_CLASS_PROPERTY = "converterClass"; //$NON-NLS-1$ - String ECLIPSELINK_STRUCT_CONVERTER_CLASS_NAME = "org.eclipse.persistence.platform.database.converters.StructConverter"; //$NON-NLS-1$ - -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/TransformationMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/TransformationMapping.java deleted file mode 100644 index d2f8015cc3..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/TransformationMapping.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.AttributeMapping; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface TransformationMapping extends AttributeMapping -{ -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/TypeConverter.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/TypeConverter.java deleted file mode 100644 index 2398e15012..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/TypeConverter.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2009 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -/** - * Corresponds to a TypeConverter resource model object - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface TypeConverter extends EclipseLinkConverter -{ - String getDataType(); - void setDataType(String dataType); - String DATA_TYPE_PROPERTY = "dataType"; //$NON-NLS-1$ - - String getObjectType(); - void setObjectType(String objectType); - String OBJECT_TYPE_PROPERTY = "objectType"; //$NON-NLS-1$ - -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/VariableOneToOneMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/VariableOneToOneMapping.java deleted file mode 100644 index 21068b5d19..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/VariableOneToOneMapping.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context; - -import org.eclipse.jpt.core.context.AttributeMapping; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.2 - * @since 2.2 - */ -public interface VariableOneToOneMapping extends AttributeMapping -{ -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/EclipseLinkJavaEmbeddable.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/EclipseLinkJavaEmbeddable.java deleted file mode 100644 index 7ce177464a..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/EclipseLinkJavaEmbeddable.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context.java; - -import org.eclipse.jpt.core.context.java.JavaEmbeddable; -import org.eclipse.jpt.eclipselink.core.context.EclipseLinkEmbeddable; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface EclipseLinkJavaEmbeddable extends EclipseLinkEmbeddable, JavaEmbeddable -{ - JavaConverterHolder getConverterHolder(); - -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/EclipseLinkJavaEntity.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/EclipseLinkJavaEntity.java deleted file mode 100644 index c8b60cc7bd..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/EclipseLinkJavaEntity.java +++ /dev/null @@ -1,54 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context.java; - -import java.util.ListIterator; -import org.eclipse.jpt.core.context.java.JavaAssociationOverride; -import org.eclipse.jpt.core.context.java.JavaAttributeOverride; -import org.eclipse.jpt.core.context.java.JavaEntity; -import org.eclipse.jpt.core.context.java.JavaNamedNativeQuery; -import org.eclipse.jpt.core.context.java.JavaNamedQuery; -import org.eclipse.jpt.core.context.java.JavaPrimaryKeyJoinColumn; -import org.eclipse.jpt.core.context.java.JavaSecondaryTable; -import org.eclipse.jpt.eclipselink.core.context.EclipseLinkEntity; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface EclipseLinkJavaEntity extends EclipseLinkEntity, JavaEntity -{ - JavaConverterHolder getConverterHolder(); - - JavaCaching getCaching(); - - // included these to prevent warnings on the implementation - ListIterator<JavaSecondaryTable> secondaryTables(); - ListIterator<JavaSecondaryTable> specifiedSecondaryTables(); - ListIterator<JavaPrimaryKeyJoinColumn> primaryKeyJoinColumns(); - ListIterator<JavaPrimaryKeyJoinColumn> specifiedPrimaryKeyJoinColumns(); - ListIterator<JavaAttributeOverride> attributeOverrides(); - ListIterator<JavaAttributeOverride> specifiedAttributeOverrides(); - ListIterator<JavaAttributeOverride> virtualAttributeOverrides(); - ListIterator<JavaAssociationOverride> associationOverrides(); - ListIterator<JavaAssociationOverride> specifiedAssociationOverrides(); - ListIterator<JavaAssociationOverride> virtualAssociationOverrides(); - ListIterator<JavaNamedQuery> namedQueries(); - ListIterator<JavaNamedNativeQuery> namedNativeQueries(); - -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/EclipseLinkJavaMappedSuperclass.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/EclipseLinkJavaMappedSuperclass.java deleted file mode 100644 index 2b8aab7da4..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/EclipseLinkJavaMappedSuperclass.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context.java; - -import java.util.Iterator; -import org.eclipse.jpt.core.context.java.JavaMappedSuperclass; -import org.eclipse.jpt.core.context.java.JavaPersistentAttribute; -import org.eclipse.jpt.eclipselink.core.context.EclipseLinkMappedSuperclass; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface EclipseLinkJavaMappedSuperclass extends EclipseLinkMappedSuperclass, JavaMappedSuperclass -{ - JavaConverterHolder getConverterHolder(); - - //********* covariant overrides *********** - - JavaCaching getCaching(); - - Iterator<JavaPersistentAttribute> overridableAttributes(); - Iterator<JavaPersistentAttribute> overridableAssociations(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaCaching.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaCaching.java deleted file mode 100644 index dcf170b3a8..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaCaching.java +++ /dev/null @@ -1,52 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2009 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context.java; - -import org.eclipse.jpt.core.context.java.JavaJpaContextNode; -import org.eclipse.jpt.core.resource.java.JavaResourcePersistentType; -import org.eclipse.jpt.eclipselink.core.context.Caching; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.1 - */ -public interface JavaCaching extends Caching, JavaJpaContextNode -{ - - /** - * Return true if the existence-checking model object exists. - * Have to have a separate flag for this since the default existence - * type is different depending on whether hasExistenceChecking() returns - * true or false. - */ - boolean hasExistenceChecking(); - void setExistenceChecking(boolean existenceChecking); - String EXISTENCE_CHECKING_PROPERTY = "existenceChecking"; //$NON-NLS-1$ - - /** - * Initialize the EclipseLinkJavaCaching context model object to match the CacheAnnotation - * resource model object. This should be called immediately after object creation. - */ - void initialize(JavaResourcePersistentType resourcePersistentType); - - /** - * Update the EclipseLinkJavaCaching context model object to match the CacheAnnotation - * resource model object. see {@link org.eclipse.jpt.core.JpaProject#update()} - */ - void update(JavaResourcePersistentType resourcePersistentType); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaConverterHolder.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaConverterHolder.java deleted file mode 100644 index 0598c77181..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaConverterHolder.java +++ /dev/null @@ -1,65 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2009 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context.java; - -import org.eclipse.jpt.core.context.java.JavaJpaContextNode; -import org.eclipse.jpt.core.resource.java.JavaResourcePersistentType; -import org.eclipse.jpt.eclipselink.core.context.CustomConverter; -import org.eclipse.jpt.eclipselink.core.context.ObjectTypeConverter; -import org.eclipse.jpt.eclipselink.core.context.StructConverter; -import org.eclipse.jpt.eclipselink.core.context.TypeConverter; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.1 - * @since 2.2 - */ -public interface JavaConverterHolder extends JavaJpaContextNode -{ - /** - * Initialize the JavaConverterHolder context model object to match the JavaResourcePersistentType - * resource model object. This should be called immediately after object creation. - */ - void initialize(JavaResourcePersistentType jrpt); - - /** - * Update the JavaConverterHolder context model object to match the JavaResourcePersistentType - * resource model object. see {@link org.eclipse.jpt.core.JpaProject#update()} - */ - void update(JavaResourcePersistentType jrpt); - - CustomConverter getCustomConverter(); - CustomConverter addCustomConverter(); - void removeCustomConverter(); - String CUSTOM_CONVERTER_PROPERTY = "customConverter"; //$NON-NLS-1$ - - ObjectTypeConverter getObjectTypeConverter(); - ObjectTypeConverter addObjectTypeConverter(); - void removeObjectTypeConverter(); - String OBJECT_TYPE_CONVERTER_PROPERTY = "objectTypeConverter"; //$NON-NLS-1$ - - StructConverter getStructConverter(); - StructConverter addStructConverter(); - void removeStructConverter(); - String STRUCT_CONVERTER_PROPERTY = "structConverter"; //$NON-NLS-1$ - - TypeConverter getTypeConverter(); - TypeConverter addTypeConverter(); - void removeTypeConverter(); - String TYPE_CONVERTER_PROPERTY = "typeConverter"; //$NON-NLS-1$ - -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmCaching.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmCaching.java deleted file mode 100644 index 4300086e4b..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmCaching.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2009 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.eclipselink.core.context.orm; - -import org.eclipse.jpt.core.context.XmlContextNode; -import org.eclipse.jpt.eclipselink.core.context.Caching; - -public interface OrmCaching - extends Caching, XmlContextNode -{ - // just combine two interfaces -} |