diff options
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context')
75 files changed, 0 insertions, 3771 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkBasicCollectionMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkBasicCollectionMapping.java deleted file mode 100644 index 834274284f..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkBasicCollectionMapping.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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; - -/** - * EclipseLink basic collection mapping - * <p> - * 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 EclipseLinkBasicCollectionMapping - extends AttributeMapping -{ - // nothing yet -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkBasicMapMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkBasicMapMapping.java deleted file mode 100644 index 63d78896a3..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkBasicMapMapping.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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; - -/** - * EclipseLink basic map mapping - * <p> - * 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 EclipseLinkBasicMapMapping - extends AttributeMapping -{ - // nothing yet -} 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 7c9aed8ca3..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkBasicMapping.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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; - -/** - * EclipseLink basic mapping. - * <p> - * 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 -{ - EclipseLinkMutable getMutable(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkCacheCoordinationType.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkCacheCoordinationType.java deleted file mode 100644 index 70f2f01ed6..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkCacheCoordinationType.java +++ /dev/null @@ -1,106 +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; - - -/** - * - * - * 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 EclipseLinkCacheCoordinationType { - - SEND_OBJECT_CHANGES, - INVALIDATE_CHANGED_OBJECTS, - SEND_NEW_OBJECTS_WITH_CHANGES, - NONE; - - - public static EclipseLinkCacheCoordinationType 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(EclipseLinkCacheCoordinationType 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 EclipseLinkCacheCoordinationType 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(EclipseLinkCacheCoordinationType 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/EclipseLinkCacheType.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkCacheType.java deleted file mode 100644 index 1a18d93df5..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkCacheType.java +++ /dev/null @@ -1,133 +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; - - -/** - * - * - * 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 EclipseLinkCacheType { - - SOFT_WEAK, - HARD_WEAK, - WEAK, - SOFT, - FULL, - CACHE, - NONE; - - - public static EclipseLinkCacheType 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(EclipseLinkCacheType 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 EclipseLinkCacheType 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(EclipseLinkCacheType 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/EclipseLinkCaching.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkCaching.java deleted file mode 100644 index fd79ad5592..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkCaching.java +++ /dev/null @@ -1,219 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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; - -/** - * EclipseLink caching - * <p> - * 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 - */ -// TODO bjv EclipseLinkCachingPolicy -public interface EclipseLinkCaching - extends JpaContextNode -{ - // ********** type ********** - - /** - * This is the combination of defaultType and specifiedType. - * If getSpecifiedType() returns null, then return getDefaultType() - */ - EclipseLinkCacheType getType(); - - EclipseLinkCacheType getSpecifiedType(); - void setSpecifiedType(EclipseLinkCacheType type); - String SPECIFIED_TYPE_PROPERTY = "specifiedType"; //$NON-NLS-1$ - - EclipseLinkCacheType getDefaultType(); - String DEFAULT_TYPE_PROPERTY = "defaultType"; //$NON-NLS-1$ - EclipseLinkCacheType DEFAULT_TYPE = EclipseLinkCacheType.SOFT_WEAK; - - - // ********** size ********** - - /** - * This is the combination of defaultSize and specifiedSize. - * If getSpecifiedSize() returns null, then return getDefaultSize() - */ - int getSize(); - - Integer getSpecifiedSize(); - void setSpecifiedSize(Integer size); - String SPECIFIED_SIZE_PROPERTY = "specifiedSize"; //$NON-NLS-1$ - - int getDefaultSize(); - String DEFAULT_SIZE_PROPERTY = "defaultSize"; //$NON-NLS-1$ - int DEFAULT_SIZE = 100; - - - // ********** shared ********** - - /** - * This is the combination of defaultShared and specifiedShared. - * If getSpecifiedShared() returns null, then return isDefaultShared() - */ - boolean isShared(); - - Boolean getSpecifiedShared(); - - /** - * Specifying <em>shared</em> <code>false</code> will return the following - * caching settings to their defaults:<ul> - * <li>type - * <li>size - * <li>always refresh - * <li>refresh only if newer - * <li>disable hits - * <li>coordination type - * </ul> - * Additionally, the following settings will be cleared:<ul> - * <li>expiry - * <li>expiry time of day - * </ul> - * These settings do not apply to an unchared cache. - */ - void setSpecifiedShared(Boolean shared); - String SPECIFIED_SHARED_PROPERTY = "specifiedShared"; //$NON-NLS-1$ - - boolean isDefaultShared(); - String DEFAULT_SHARED_PROPERTY = "defaultShared"; //$NON-NLS-1$ - boolean DEFAULT_SHARED = true; - - - // ********** always refresh ********** - - /** - * This is the combination of defaultAlwaysRefresh and specifiedAlwaysRefresh. - * If getSpecifiedAlwaysRefresh() returns null, then return isDefaultAlwaysRefresh() - */ - boolean isAlwaysRefresh(); - - Boolean getSpecifiedAlwaysRefresh(); - void setSpecifiedAlwaysRefresh(Boolean alwaysRefresh); - String SPECIFIED_ALWAYS_REFRESH_PROPERTY = "specifiedAlwaysRefresh"; //$NON-NLS-1$ - - boolean isDefaultAlwaysRefresh(); - String DEFAULT_ALWAYS_REFRESH_PROPERTY = "defaultAlwaysRefresh"; //$NON-NLS-1$ - boolean DEFAULT_ALWAYS_REFRESH = false; - - - // ********** refresh only if newer ********** - - /** - * This is the combination of defaultRefreshOnlyIfNewer and specifiedRefreshOnlyIfNewer. - * If getSpecifiedRefreshOnlyIfNewer() returns null, then return isDefaultRefreshOnlyIfNewer() - */ - boolean isRefreshOnlyIfNewer(); - - Boolean getSpecifiedRefreshOnlyIfNewer(); - void setSpecifiedRefreshOnlyIfNewer(Boolean refreshOnlyIfNewer); - String SPECIFIED_REFRESH_ONLY_IF_NEWER_PROPERTY = "specifiedRefreshOnlyIfNewer"; //$NON-NLS-1$ - - boolean isDefaultRefreshOnlyIfNewer(); - String DEFAULT_REFRESH_ONLY_IF_NEWER_PROPERTY = "defaultRefreshOnlyIfNewer"; //$NON-NLS-1$ - boolean DEFAULT_REFRESH_ONLY_IF_NEWER = false; - - - // ********** disable hits ********** - - /** - * This is the combination of defaultDisableHits and specifiedDisableHits. - * If getSpecifiedDisableHits() returns null, then return getDefaultDisableHits() - */ - boolean isDisableHits(); - - Boolean getSpecifiedDisableHits(); - void setSpecifiedDisableHits(Boolean disableHits); - String SPECIFIED_DISABLE_HITS_PROPERTY = "specifiedDisableHits"; //$NON-NLS-1$ - - boolean isDefaultDisableHits(); - String DEFAULT_DISABLE_HITS_PROPERTY = "defaultDisableHits"; //$NON-NLS-1$ - boolean DEFAULT_DISABLE_HITS = false; - - - // ********** coordination type ********** - - /** - * This is the combination of defaultCoordinationType and specifiedCoordinationType. - * If getSpecifiedCoordinationType() returns null, then return getDefaultCoordinationType() - */ - EclipseLinkCacheCoordinationType getCoordinationType(); - - EclipseLinkCacheCoordinationType getSpecifiedCoordinationType(); - void setSpecifiedCoordinationType(EclipseLinkCacheCoordinationType coordinationType); - String SPECIFIED_COORDINATION_TYPE_PROPERTY = "specifiedCoordinationType"; //$NON-NLS-1$ - - EclipseLinkCacheCoordinationType getDefaultCoordinationType(); - String DEFAULT_COORDINATION_TYPE_PROPERTY = "defaultCoordinationType"; //$NON-NLS-1$ - EclipseLinkCacheCoordinationType DEFAULT_COORDINATION_TYPE = EclipseLinkCacheCoordinationType.SEND_OBJECT_CHANGES; - - - // ********** 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 - */ - void setExpiry(Integer expiry); - String EXPIRY_PROPERTY = "expiry"; //$NON-NLS-1$ - - - // ********** expiry time of day ********** - - /** - * 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. - */ - EclipseLinkTimeOfDay getExpiryTimeOfDay(); - String EXPIRY_TIME_OF_DAY_PROPERTY = "expiryTimeOfDay"; //$NON-NLS-1$ - - /** - * Add Cache expiryTimeOfDay annotation or xml element, this will set - * Expiry to null as it is not valid to set both expiry and timeOfDayExpiry - */ - EclipseLinkTimeOfDay addExpiryTimeOfDay(); - - /** - * Removes the Cache expiryTimeOfDay annotation/xml element - */ - void removeExpiryTimeOfDay(); - - - // ********** existence type ********** - // TODO bjv rename existenceCheckingPolicy - /** - * This is the combination of defaultExistenceType and specifiedExistenceType. - * If getSpecifiedExistenceType() returns null, then return getDefaultExistenceType() - */ - EclipseLinkExistenceType getExistenceType(); - - EclipseLinkExistenceType getSpecifiedExistenceType(); - void setSpecifiedExistenceType(EclipseLinkExistenceType type); - String SPECIFIED_EXISTENCE_TYPE_PROPERTY = "specifiedExistenceType"; //$NON-NLS-1$ - - EclipseLinkExistenceType getDefaultExistenceType(); - String DEFAULT_EXISTENCE_TYPE_PROPERTY = "defaultExistenceType"; //$NON-NLS-1$ - EclipseLinkExistenceType DEFAULT_EXISTENCE_TYPE = EclipseLinkExistenceType.CHECK_DATABASE; -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkChangeTracking.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkChangeTracking.java deleted file mode 100644 index 7cd2c7b3c9..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkChangeTracking.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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; - -/** - * EclipseLink change tracking - * <p> - * 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 EclipseLinkChangeTracking - extends JpaContextNode -{ - /** - * Return the specified type if it is present, otherwise return the default - * type. - */ - EclipseLinkChangeTrackingType getType(); - - EclipseLinkChangeTrackingType getSpecifiedType(); - void setSpecifiedType(EclipseLinkChangeTrackingType type); - String SPECIFIED_TYPE_PROPERTY = "specifiedType"; //$NON-NLS-1$ - - EclipseLinkChangeTrackingType getDefaultType(); - String DEFAULT_TYPE_PROPERTY = "defaultType"; //$NON-NLS-1$ - EclipseLinkChangeTrackingType DEFAULT_TYPE = EclipseLinkChangeTrackingType.AUTO; -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkChangeTrackingType.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkChangeTrackingType.java deleted file mode 100644 index 5698dc3680..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkChangeTrackingType.java +++ /dev/null @@ -1,106 +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.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 EclipseLinkChangeTrackingType { - - ATTRIBUTE, - OBJECT, - DEFERRED, - AUTO; - - - public static EclipseLinkChangeTrackingType 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(EclipseLinkChangeTrackingType 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 EclipseLinkChangeTrackingType 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); //$NON-NLS-1$ - } - } - - public static XmlChangeTrackingType toOrmResourceModel(EclipseLinkChangeTrackingType 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); //$NON-NLS-1$ - } - } -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkConversionValue.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkConversionValue.java deleted file mode 100644 index 5762f72ed8..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkConversionValue.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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 - * <p> - * 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 EclipseLinkConversionValue - extends JpaContextNode -{ - EclipseLinkObjectTypeConverter getParent(); - - 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$ -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkConvert.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkConvert.java deleted file mode 100644 index 82bf99030f..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkConvert.java +++ /dev/null @@ -1,82 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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; - -/** - * EclipseLink convert (not to be confused with Eclipse converter) - * <p> - * 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 EclipseLinkConvert - extends Converter -{ - String getConverterName(); - - String getSpecifiedConverterName(); - void setSpecifiedConverterName(String converterName); - String SPECIFIED_CONVERTER_NAME_PROPERTY = "specifiedConverterName"; //$NON-NLS-1$ - - String getDefaultConverterName(); - String DEFAULT_CONVERTER_NAME_PROPERTY = "defaultConverterName"; //$NON-NLS-1$ - - /** - * Reserved name for specifying a serialized object converter. - * In this case a corresponding @CustomConverter is unnecessary. - */ - 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 the zero-argument constructor. - * In this case a corresponding @CustomConverter is unnecessary. - */ - 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 a corresponding @CustomConverter is unnecessary. - */ - String NO_CONVERTER = "none"; //$NON-NLS-1$ - - String[] RESERVED_CONVERTER_NAMES = {NO_CONVERTER, CLASS_INSTANCE_CONVERTER, SERIALIZED_CONVERTER}; - - String DEFAULT_CONVERTER_NAME = NO_CONVERTER; - - /** - * Return the mapping's converter. - */ - EclipseLinkConverter getConverter(); - String CONVERTER_PROPERTY = "converter"; //$NON-NLS-1$ - - /** - * Possible values for the converter type are:<ul> - * <li>{@link EclipseLinkCustomConverter} - * <li>{@link EclipseLinkTypeConverter} - * <li>{@link EclipseLinkObjectTypeConverter} - * <li>{@link EclipseLinkStructConverter} - * <li><code>null</code> - * </ul> - */ - void setConverter(Class<? extends EclipseLinkConverter> converterType); -} 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 b338e505de..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkConverter.java +++ /dev/null @@ -1,75 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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; -import org.eclipse.jpt.utility.internal.iterables.ArrayIterable; - -/** - * EclipseLink converter:<ul> - * <li>Type ({@link EclipseLinkTypeConverter}) - * <li>Object Type ({@link EclipseLinkObjectTypeConverter}) - * <li>Struct ({@link EclipseLinkStructConverter}) - * <li>Custom ({@link EclipseLinkCustomConverter}) - * </ul> - * 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 -{ - - String ECLIPSELINK_CONVERTER_CLASS_NAME = "org.eclipse.persistence.mappings.converters.Converter"; //$NON-NLS-1$ - - /** - * Return the converter's type. - */ - Class<? extends EclipseLinkConverter> getType(); - @SuppressWarnings("unchecked") - Iterable<Class<? extends EclipseLinkConverter>> TYPES = new ArrayIterable<Class<? extends EclipseLinkConverter>>( - EclipseLinkCustomConverter.class, - EclipseLinkObjectTypeConverter.class, - EclipseLinkStructConverter.class, - EclipseLinkTypeConverter.class - ); - - - String getName(); - void setName(String name); - String NAME_PROPERTY = "name"; //$NON-NLS-1$ - - /** - * Return the character to be used for browsing or creating the converter - * class {@link org.eclipse.jdt.core.IType IType}. - * @see org.eclipse.jdt.core.IType#getFullyQualifiedName(char) - */ - char getEnclosingTypeSeparator(); - - /** - * Return whether the converter "overrides" the specified converter - * (e.g. a converter defined in <code>orm.xml</code> overrides one - * defined in Java). - */ - boolean overrides(EclipseLinkConverter converter); - - /** - * Return whether the converter is a duplicate of the specified converter. - * A converter is not a duplicate of another converter if is the exact - * same 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/EclipseLinkConverterClassConverter.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkConverterClassConverter.java deleted file mode 100644 index a035b32762..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkConverterClassConverter.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011 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 *ConverterClassConverter 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.4 - * @since 2.4 - */ - -public interface EclipseLinkConverterClassConverter extends - EclipseLinkConverter { - - String getConverterClass(); - void setConverterClass(String converterClass); - String CONVERTER_CLASS_PROPERTY = "converterClass"; //$NON-NLS-1$ -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkCustomConverter.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkCustomConverter.java deleted file mode 100644 index fc2ea7c472..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkCustomConverter.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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; - -/** - * EclipseLink custom converter - * <p> - * 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 EclipseLinkCustomConverter extends EclipseLinkConverterClassConverter -{ -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkCustomizer.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkCustomizer.java deleted file mode 100644 index d7b37c2e67..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkCustomizer.java +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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 - * <p> - * 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 EclipseLinkCustomizer - extends JpaContextNode -{ - String getCustomizerClass(); - - 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$ - - String getDefaultCustomizerClass(); - String DEFAULT_CUSTOMIZER_CLASS_PROPERTY = "defaultCustomizerClass"; //$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/EclipseLinkEmbeddable.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkEmbeddable.java deleted file mode 100644 index 1d0c8c6811..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkEmbeddable.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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.3 - * @since 2.1 - */ -public interface EclipseLinkEmbeddable - extends Embeddable, EclipseLinkTypeMapping -{ - // combine various interfaces -}
\ 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 d726e5ceae..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkEntity.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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.3 - * @since 2.1 - */ -public interface EclipseLinkEntity - extends Entity, EclipseLinkNonEmbeddableTypeMapping -{ - // combine various interfaces -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkExistenceType.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkExistenceType.java deleted file mode 100644 index 844060d1cd..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkExistenceType.java +++ /dev/null @@ -1,107 +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; - - -/** - * - * - * 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 - */ -// TODO bjv rename to EclipseLinkExistenceCheckingPolicy -public enum EclipseLinkExistenceType { - - CHECK_CACHE, - CHECK_DATABASE, - ASSUME_EXISTENCE, - ASSUME_NON_EXISTENCE; - - - public static EclipseLinkExistenceType 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(EclipseLinkExistenceType 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 EclipseLinkExistenceType 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(EclipseLinkExistenceType 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/EclipseLinkIdMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkIdMapping.java deleted file mode 100644 index e10b6ea11d..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkIdMapping.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.IdMapping; - -/** - * EclipseLink ID mapping - * <p> - * 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 -{ - EclipseLinkMutable getMutable(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkJoinFetch.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkJoinFetch.java deleted file mode 100644 index 42db7e3d3a..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkJoinFetch.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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 EclipseLinkJoinFetch - extends JpaContextNode -{ - EclipseLinkJoinFetchType getValue(); - void setValue(EclipseLinkJoinFetchType value); - String VALUE_PROPERTY = "value"; //$NON-NLS-1$ - EclipseLinkJoinFetchType DEFAULT_VALUE = EclipseLinkJoinFetchType.INNER; -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkJoinFetchMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkJoinFetchMapping.java deleted file mode 100644 index f1b5a7211d..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkJoinFetchMapping.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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; - -/** - * EclipseLink join-fetch mapping. - * <p> - * 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 EclipseLinkJoinFetchMapping - extends AttributeMapping -{ - EclipseLinkJoinFetch getJoinFetch(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkJoinFetchType.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkJoinFetchType.java deleted file mode 100644 index 80617f35cf..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkJoinFetchType.java +++ /dev/null @@ -1,89 +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.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 EclipseLinkJoinFetchType { - - INNER, - OUTER; - - - public static EclipseLinkJoinFetchType 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(EclipseLinkJoinFetchType 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 EclipseLinkJoinFetchType 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(EclipseLinkJoinFetchType 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/EclipseLinkMappedSuperclass.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkMappedSuperclass.java deleted file mode 100644 index 31438c0de0..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkMappedSuperclass.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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.3 - * @since 2.1 - */ -public interface EclipseLinkMappedSuperclass - extends MappedSuperclass, EclipseLinkNonEmbeddableTypeMapping -{ - // combine various interfaces -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkMutable.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkMutable.java deleted file mode 100644 index 7640ec2e9d..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkMutable.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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 EclipseLinkMutable - extends JpaContextNode -{ - boolean isMutable(); - - Boolean getSpecifiedMutable(); - void setSpecifiedMutable(Boolean mutable); - String SPECIFIED_MUTABLE_PROPERTY = "specifiedMutable"; //$NON-NLS-1$ - - boolean isDefaultMutable(); - String DEFAULT_MUTABLE_PROPERTY = "defaultMutable"; //$NON-NLS-1$ -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkNonEmbeddableTypeMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkNonEmbeddableTypeMapping.java deleted file mode 100644 index b647eb1da8..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkNonEmbeddableTypeMapping.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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; - -/** - * EclipseLink non-embeddable type mapping - * <p> - * 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 EclipseLinkNonEmbeddableTypeMapping - extends EclipseLinkTypeMapping -{ - EclipseLinkCaching getCaching(); - - EclipseLinkReadOnly getReadOnly(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkObjectTypeConverter.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkObjectTypeConverter.java deleted file mode 100644 index 1aaef798f2..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkObjectTypeConverter.java +++ /dev/null @@ -1,102 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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; - -/** - * EclipseLink object type converter - * <p> - * 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 EclipseLinkObjectTypeConverter - extends EclipseLinkConverter -{ - // ********** data type ********** - - String getDataType(); - void setDataType(String dataType); - String DATA_TYPE_PROPERTY = "dataType"; //$NON-NLS-1$ - - - // ********** object type ********** - - String getObjectType(); - void setObjectType(String objectType); - String OBJECT_TYPE_PROPERTY = "objectType"; //$NON-NLS-1$ - - - // ********** conversion values ********** - - /** - * Return the converter's conversion values. - */ - <T extends EclipseLinkConversionValue> ListIterator<T> conversionValues(); - String CONVERSION_VALUES_LIST = "conversionValues"; //$NON-NLS-1$ - - /** - * Return the number of conversion values. - */ - int conversionValuesSize(); - - /** - * Add a conversion value to the converter at the specified index - * and return it. - */ - EclipseLinkConversionValue addConversionValue(int index); - - /** - * Add a conversion value to the converter and return it. - */ - EclipseLinkConversionValue addConversionValue(); - - /** - * Remove the conversion value at the specified index. - */ - void removeConversionValue(int index); - - /** - * Remove the specified conversion value. - */ - void removeConversionValue(EclipseLinkConversionValue conversionValue); - - /** - * Move the conversion value from the specified source index to the - * specified target index. - */ - void moveConversionValue(int targetIndex, int sourceIndex); - - - // ********** data values ********** - - /** - * Return the converter's data values. - */ - Iterable<String> getDataValues(); - - /** - * Return the number of data values. - */ - int getDataValuesSize(); - - - // ********** default object value ********** - - String getDefaultObjectValue(); - void setDefaultObjectValue(String value); - 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/EclipseLinkOneToManyMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkOneToManyMapping.java deleted file mode 100644 index 19ca50f762..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkOneToManyMapping.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2011 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; - -/** - * EclipseLink 1:m mapping - * <p> - * 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 -{ - EclipseLinkOneToManyRelationship getRelationship(); - - EclipseLinkPrivateOwned getPrivateOwned(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkOneToManyRelationship.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkOneToManyRelationship.java deleted file mode 100644 index 2966e70461..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkOneToManyRelationship.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2011 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.JoinColumnRelationship; -import org.eclipse.jpt.core.context.OneToManyRelationship; - -/** - * EclipseLink 1:m relationship - * <p> - * 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 EclipseLinkOneToManyRelationship - extends OneToManyRelationship, - JoinColumnRelationship -{ - // add join column support to JPA 1.0 1:m -} 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 22b9fe84ec..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkOneToOneMapping.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2011 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; -import org.eclipse.jpt.core.context.OneToOneRelationship; - -/** - * EclipseLink 1:1 mapping - * <p> - * 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 -{ - OneToOneRelationship getRelationship(); - - EclipseLinkPrivateOwned getPrivateOwned(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkPrivateOwned.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkPrivateOwned.java deleted file mode 100644 index 4100fa989a..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkPrivateOwned.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 EclipseLinkPrivateOwned - 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/EclipseLinkReadOnly.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkReadOnly.java deleted file mode 100644 index 2fc0f7cb16..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkReadOnly.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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; - -/** - * EclipseLink read-only - * <p> - * 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 EclipseLinkReadOnly - 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/EclipseLinkRelationshipMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkRelationshipMapping.java deleted file mode 100644 index 5dce11a52a..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkRelationshipMapping.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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; - -/** - * EclipseLink relationship (1:1, 1:m, m:1, m:m) mapping. - * <p> - * 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, EclipseLinkJoinFetchMapping -{ - // combine various interfaces -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkStructConverter.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkStructConverter.java deleted file mode 100644 index 7065fc7d39..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkStructConverter.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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; - -/** - * EclipseLink struct converter - * <p> - * 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 EclipseLinkStructConverter extends EclipseLinkConverterClassConverter -{ - 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/EclipseLinkTimeOfDay.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkTimeOfDay.java deleted file mode 100644 index 4cf3d187fb..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkTimeOfDay.java +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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; - -/** - * EclipseLink caching expiry time of day - * <p> - * 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 EclipseLinkTimeOfDay - 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/EclipseLinkTransformationMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkTransformationMapping.java deleted file mode 100644 index b484b0ff16..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkTransformationMapping.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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; - -/** - * EclipseLink transformation mapping - * <p> - * 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 EclipseLinkTransformationMapping - extends AttributeMapping -{ - // nothing yet -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkTypeConverter.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkTypeConverter.java deleted file mode 100644 index cb500e0232..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkTypeConverter.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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; - -/** - * EclipseLink type converter - * <p> - * 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 EclipseLinkTypeConverter - 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/EclipseLinkTypeMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkTypeMapping.java deleted file mode 100644 index 1b1f14cca5..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkTypeMapping.java +++ /dev/null @@ -1,40 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.TypeMapping; - -/** - * 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.3 - * @since 2.3 - */ -public interface EclipseLinkTypeMapping - extends TypeMapping -{ - EclipseLinkCustomizer getCustomizer(); - - EclipseLinkChangeTracking getChangeTracking(); - - /** - * Return whether this type mapping specifies primary key columns rather than using - * JPA-style attributes - * (Uses the @PrimaryKey annotation for java, or the primary-key element for xml) - * - * Note: there is no context-level or UI support for this feature as of yet. - * Note: this is a 1.1 feature, but this check has been implemented for all versions - */ - boolean usesPrimaryKeyColumns(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkVariableOneToOneMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkVariableOneToOneMapping.java deleted file mode 100644 index dd115b0aa7..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/EclipseLinkVariableOneToOneMapping.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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; - -/** - * EclipseLink variable 1:1 mapping - * <p> - * 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 EclipseLinkVariableOneToOneMapping - extends AttributeMapping -{ - // nothing yet -} 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 7d63f4d51b..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, 2010 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; - -/** - * EclipseLink version mapping - * <p> - * 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 -{ - EclipseLinkMutable getMutable(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/EclipseLinkJavaOneToManyRelationship.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/EclipseLinkJavaOneToManyRelationship.java deleted file mode 100644 index 1c2b027418..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/EclipseLinkJavaOneToManyRelationship.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2011 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.JavaJoinColumnRelationship; -import org.eclipse.jpt.core.context.java.JavaOneToManyRelationship; -import org.eclipse.jpt.eclipselink.core.context.EclipseLinkOneToManyRelationship; - -/** - * EclipseLink Java 1:m relationship - * <p> - * 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 EclipseLinkJavaOneToManyRelationship - extends EclipseLinkOneToManyRelationship, - JavaOneToManyRelationship, - JavaJoinColumnRelationship -{ - // combine various interfaces -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/EclipseLinkJavaTypeMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/EclipseLinkJavaTypeMapping.java deleted file mode 100644 index f439d8f4a9..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/EclipseLinkJavaTypeMapping.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.JavaTypeMapping; -import org.eclipse.jpt.eclipselink.core.context.EclipseLinkTypeMapping; - -/** - * EclipseLink Java type mapping - * <p> - * 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 EclipseLinkJavaTypeMapping - extends JavaTypeMapping, EclipseLinkTypeMapping -{ - // this is pretty different from the orm container (so, no common super-interface) - JavaEclipseLinkConverterContainer getConverterContainer(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaEclipseLinkCaching.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaEclipseLinkCaching.java deleted file mode 100644 index dfde4cc4ef..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaEclipseLinkCaching.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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.eclipselink.core.context.EclipseLinkCaching; - -/** - * EclipseLink Java caching - * <p> - * 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 JavaEclipseLinkCaching - extends EclipseLinkCaching, 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 isExistenceChecking(); - void setExistenceChecking(boolean existenceChecking); - String EXISTENCE_CHECKING_PROPERTY = "existenceChecking"; //$NON-NLS-1$ -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaEclipseLinkConverterContainer.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaEclipseLinkConverterContainer.java deleted file mode 100644 index ca743b3501..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaEclipseLinkConverterContainer.java +++ /dev/null @@ -1,56 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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.eclipselink.core.internal.context.java.JavaEclipseLinkCustomConverter; -import org.eclipse.jpt.eclipselink.core.internal.context.java.JavaEclipseLinkObjectTypeConverter; -import org.eclipse.jpt.eclipselink.core.internal.context.java.JavaEclipseLinkStructConverter; -import org.eclipse.jpt.eclipselink.core.internal.context.java.JavaEclipseLinkTypeConverter; - -/** - * EclipseLink Java converter container - * <p> - * <strong>NB:</strong> This is only mildly-related to - * {@link org.eclipse.jpt.eclipselink.core.context.orm.OrmEclipseLinkConverterContainer}; - * thus the lack of common super-interface. - * <p> - * 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 JavaEclipseLinkConverterContainer - extends JavaJpaContextNode -{ - JavaEclipseLinkCustomConverter getCustomConverter(); - JavaEclipseLinkCustomConverter addCustomConverter(); - void removeCustomConverter(); - String CUSTOM_CONVERTER_PROPERTY = "customConverter"; //$NON-NLS-1$ - - JavaEclipseLinkObjectTypeConverter getObjectTypeConverter(); - JavaEclipseLinkObjectTypeConverter addObjectTypeConverter(); - void removeObjectTypeConverter(); - String OBJECT_TYPE_CONVERTER_PROPERTY = "objectTypeConverter"; //$NON-NLS-1$ - - JavaEclipseLinkStructConverter getStructConverter(); - JavaEclipseLinkStructConverter addStructConverter(); - void removeStructConverter(); - String STRUCT_CONVERTER_PROPERTY = "structConverter"; //$NON-NLS-1$ - - JavaEclipseLinkTypeConverter getTypeConverter(); - JavaEclipseLinkTypeConverter addTypeConverter(); - void removeTypeConverter(); - String TYPE_CONVERTER_PROPERTY = "typeConverter"; //$NON-NLS-1$ -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaEclipseLinkEmbeddable.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaEclipseLinkEmbeddable.java deleted file mode 100644 index de99e1aec0..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaEclipseLinkEmbeddable.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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; - -/** - * EclipseLink - * Java embeddable type mapping - * <p> - * 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 JavaEclipseLinkEmbeddable - extends JavaEmbeddable, EclipseLinkEmbeddable, EclipseLinkJavaTypeMapping -{ - // combine various interfaces -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaEclipseLinkEntity.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaEclipseLinkEntity.java deleted file mode 100644 index 196897cb95..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaEclipseLinkEntity.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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.JavaEntity; -import org.eclipse.jpt.eclipselink.core.context.EclipseLinkEntity; - -/** - * EclipseLink - * Java entity - * <p> - * 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 JavaEclipseLinkEntity - extends JavaEntity, EclipseLinkEntity, JavaEclipseLinkNonEmbeddableTypeMapping -{ - // combine various interfaces -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaEclipseLinkMappedSuperclass.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaEclipseLinkMappedSuperclass.java deleted file mode 100644 index 68b4e58415..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaEclipseLinkMappedSuperclass.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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.JavaMappedSuperclass; -import org.eclipse.jpt.eclipselink.core.context.EclipseLinkMappedSuperclass; - -/** - * EclipseLink - * Java mapped superclass - * <p> - * 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 3.0 - * @since 2.1 - */ -public interface JavaEclipseLinkMappedSuperclass - extends JavaMappedSuperclass, EclipseLinkMappedSuperclass, JavaEclipseLinkNonEmbeddableTypeMapping -{ - // combine various interfaces -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaEclipseLinkNonEmbeddableTypeMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaEclipseLinkNonEmbeddableTypeMapping.java deleted file mode 100644 index f2e86e29b6..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/java/JavaEclipseLinkNonEmbeddableTypeMapping.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.eclipselink.core.context.EclipseLinkNonEmbeddableTypeMapping; - -/** - * EclipseLink Java non-embeddable type mapping - * <p> - * 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 JavaEclipseLinkNonEmbeddableTypeMapping - extends EclipseLinkNonEmbeddableTypeMapping, EclipseLinkJavaTypeMapping -{ - JavaEclipseLinkCaching getCaching(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/EclipseLinkEntityMappings.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/EclipseLinkEntityMappings.java deleted file mode 100644 index 70e1e9722a..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/EclipseLinkEntityMappings.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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.orm.EntityMappings; - -public interface EclipseLinkEntityMappings - extends EntityMappings -{ - OrmEclipseLinkConverterContainer getConverterContainer(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/EclipseLinkOrmOneToManyRelationship.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/EclipseLinkOrmOneToManyRelationship.java deleted file mode 100644 index 398b99b937..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/EclipseLinkOrmOneToManyRelationship.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2011 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.orm.OrmJoinColumnRelationship; -import org.eclipse.jpt.core.context.orm.OrmOneToManyRelationship; -import org.eclipse.jpt.eclipselink.core.context.EclipseLinkOneToManyRelationship; - -/** - * EclipseLink <code>orm.xml</code> 1:m relationship - * <p> - * 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 EclipseLinkOrmOneToManyRelationship - extends EclipseLinkOneToManyRelationship, - OrmOneToManyRelationship, - OrmJoinColumnRelationship -{ - // combine various interfaces -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/EclipseLinkOrmTypeMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/EclipseLinkOrmTypeMapping.java deleted file mode 100644 index c7c085aad2..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/EclipseLinkOrmTypeMapping.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.orm.OrmTypeMapping; -import org.eclipse.jpt.eclipselink.core.context.EclipseLinkTypeMapping; -import org.eclipse.jpt.eclipselink.core.context.java.EclipseLinkJavaTypeMapping; - -/** - * EclipseLink type mapping - * <p> - * 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 EclipseLinkOrmTypeMapping - extends OrmTypeMapping, EclipseLinkTypeMapping -{ - // this is pretty different from the Java container (so, no common super-interface) - OrmEclipseLinkConverterContainer getConverterContainer(); - - EclipseLinkJavaTypeMapping getJavaTypeMapping(); - - EclipseLinkJavaTypeMapping getJavaTypeMappingForDefaults(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmEclipseLinkCaching.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmEclipseLinkCaching.java deleted file mode 100644 index b56f6bc2eb..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmEclipseLinkCaching.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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.EclipseLinkCaching; - -/** - * EclipseLink <code>orm.xml</code> caching - * <p> - * 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 OrmEclipseLinkCaching - extends EclipseLinkCaching, XmlContextNode -{ - // combine various interfaces -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmEclipseLinkConverterContainer.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmEclipseLinkConverterContainer.java deleted file mode 100644 index 23bc228446..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmEclipseLinkConverterContainer.java +++ /dev/null @@ -1,189 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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 java.util.ListIterator; -import org.eclipse.jdt.core.IPackageFragment; -import org.eclipse.jdt.core.IType; -import org.eclipse.jpt.core.context.XmlContextNode; -import org.eclipse.jpt.eclipselink.core.context.EclipseLinkCustomConverter; -import org.eclipse.jpt.eclipselink.core.context.EclipseLinkObjectTypeConverter; -import org.eclipse.jpt.eclipselink.core.context.EclipseLinkStructConverter; -import org.eclipse.jpt.eclipselink.core.context.EclipseLinkTypeConverter; -import org.eclipse.text.edits.ReplaceEdit; - -/** - * EclipseLink <code>orm.xml</code> converter container - * <p> - * <strong>NB:</strong> This is only mildly-related to - * {@link org.eclipse.jpt.eclipselink.core.context.java.JavaEclipseLinkConverterContainer}; - * thus the lack of common super-interface. - * <p> - * 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 OrmEclipseLinkConverterContainer - extends XmlContextNode -{ - //************ customConverters ********************* - - /** - * Return a list iterator of the custom converters. - * This will not be null. - */ - <T extends EclipseLinkCustomConverter> ListIterator<T> customConverters(); - - /** - * Return the number of custom converters. - */ - int customConvertersSize(); - - /** - * Add a custom converter to the converter holder, return the object representing it. - */ - EclipseLinkCustomConverter addCustomConverter(int index); - - /** - * Remove the custom converter at the index from the converter holder. - */ - void removeCustomConverter(int index); - - /** - * Remove the custom converter at from the converter holder. - */ - void removeCustomConverter(EclipseLinkCustomConverter converter); - - /** - * Move the custom converter from the source index to the target index. - */ - void moveCustomConverter(int targetIndex, int sourceIndex); - - String CUSTOM_CONVERTERS_LIST = "customConverters"; //$NON-NLS-1$ - - - //************ object type converters ********************* - - /** - * Return a list iterator of the object type converters. - * This will not be null. - */ - <T extends EclipseLinkObjectTypeConverter> ListIterator<T> objectTypeConverters(); - - /** - * Return the number of object type converters. - */ - int objectTypeConvertersSize(); - - /** - * Add a object type converter to the converter holder, return the object representing it. - */ - EclipseLinkObjectTypeConverter addObjectTypeConverter(int index); - - /** - * Remove the object type converter at the index from the converter holder. - */ - void removeObjectTypeConverter(int index); - - /** - * Remove the object type converter at from the converter holder. - */ - void removeObjectTypeConverter(EclipseLinkObjectTypeConverter converter); - - /** - * Move the object type converter from the source index to the target index. - */ - void moveObjectTypeConverter(int targetIndex, int sourceIndex); - - String OBJECT_TYPE_CONVERTERS_LIST = "objectTypeConverters"; //$NON-NLS-1$ - - - //************ struct converters ********************* - - /** - * Return a list iterator of the struct converters. - * This will not be null. - */ - <T extends EclipseLinkStructConverter> ListIterator<T> structConverters(); - - /** - * Return the number of struct converters. - */ - int structConvertersSize(); - - /** - * Add a struct converter to the converter holder, return the object representing it. - */ - EclipseLinkStructConverter addStructConverter(int index); - - /** - * Remove the struct converter at the index from the converter holder. - */ - void removeStructConverter(int index); - - /** - * Remove the struct converter at from the converter holder. - */ - void removeStructConverter(EclipseLinkStructConverter converter); - - /** - * Move the struct converter from the source index to the target index. - */ - void moveStructConverter(int targetIndex, int sourceIndex); - - String STRUCT_CONVERTERS_LIST = "structConverters"; //$NON-NLS-1$ - - - //************ type converters ********************* - - /** - * Return a list iterator of the type converters. - * This will not be null. - */ - <T extends EclipseLinkTypeConverter> ListIterator<T> typeConverters(); - - /** - * Return the number of type converters. - */ - int typeConvertersSize(); - - /** - * Add a type converter to the converter holder, return the object representing it. - */ - EclipseLinkTypeConverter addTypeConverter(int index); - - /** - * Remove the type converter at the index from the converter holder. - */ - void removeTypeConverter(int index); - - /** - * Remove the type converter at from the converter holder. - */ - void removeTypeConverter(EclipseLinkTypeConverter converter); - - /** - * Move the type converter from the source index to the target index. - */ - void moveTypeConverter(int targetIndex, int sourceIndex); - - String TYPE_CONVERTERS_LIST = "typeConverters"; //$NON-NLS-1$ - - // ********** refactoring ********** - - Iterable<ReplaceEdit> createRenameTypeEdits(IType originalType, String newName); - Iterable<ReplaceEdit> createMoveTypeEdits(IType originalType, IPackageFragment newPackage); - Iterable<ReplaceEdit> createRenamePackageEdits(IPackageFragment originalPackage, String newName); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmEclipseLinkEmbeddable.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmEclipseLinkEmbeddable.java deleted file mode 100644 index 5faf717557..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmEclipseLinkEmbeddable.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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.orm.OrmEmbeddable; -import org.eclipse.jpt.eclipselink.core.context.EclipseLinkEmbeddable; -import org.eclipse.jpt.eclipselink.core.context.java.JavaEclipseLinkEmbeddable; -import org.eclipse.jpt.eclipselink.core.resource.orm.XmlEmbeddable; - -/** - * EclipseLink <code>orm.xml</code> embeddable - * <p> - * 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 OrmEclipseLinkEmbeddable - extends OrmEmbeddable, EclipseLinkEmbeddable, EclipseLinkOrmTypeMapping -{ - XmlEmbeddable getXmlTypeMapping(); - - JavaEclipseLinkEmbeddable getJavaTypeMapping(); - - JavaEclipseLinkEmbeddable getJavaTypeMappingForDefaults(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmEclipseLinkEntity.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmEclipseLinkEntity.java deleted file mode 100644 index 02ad9fcf4a..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmEclipseLinkEntity.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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.orm.OrmEntity; -import org.eclipse.jpt.eclipselink.core.context.EclipseLinkEntity; -import org.eclipse.jpt.eclipselink.core.context.java.JavaEclipseLinkEntity; -import org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity; - -/** - * EclipseLink <code>orm.xml</code> entity - * <p> - * 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 OrmEclipseLinkEntity - extends OrmEntity, EclipseLinkEntity, OrmEclipseLinkNonEmbeddableTypeMapping -{ - XmlEntity getXmlTypeMapping(); - - JavaEclipseLinkEntity getJavaTypeMapping(); - - JavaEclipseLinkEntity getJavaTypeMappingForDefaults(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmEclipseLinkMappedSuperclass.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmEclipseLinkMappedSuperclass.java deleted file mode 100644 index 2e81a8c811..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmEclipseLinkMappedSuperclass.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2010 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.orm.OrmMappedSuperclass; -import org.eclipse.jpt.eclipselink.core.context.EclipseLinkMappedSuperclass; -import org.eclipse.jpt.eclipselink.core.context.java.JavaEclipseLinkMappedSuperclass; -import org.eclipse.jpt.eclipselink.core.resource.orm.XmlMappedSuperclass; - -/** - * EclipseLink - * <code>orm.xml</code> mapped superclass - * <p> - * 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 OrmEclipseLinkMappedSuperclass - extends OrmMappedSuperclass, EclipseLinkMappedSuperclass, OrmEclipseLinkNonEmbeddableTypeMapping -{ - XmlMappedSuperclass getXmlTypeMapping(); - - JavaEclipseLinkMappedSuperclass getJavaTypeMapping(); - - JavaEclipseLinkMappedSuperclass getJavaTypeMappingForDefaults(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmEclipseLinkNonEmbeddableTypeMapping.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmEclipseLinkNonEmbeddableTypeMapping.java deleted file mode 100644 index 53a96c306f..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/orm/OrmEclipseLinkNonEmbeddableTypeMapping.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.eclipselink.core.context.EclipseLinkNonEmbeddableTypeMapping; -import org.eclipse.jpt.eclipselink.core.context.java.JavaEclipseLinkNonEmbeddableTypeMapping; - -/** - * EclipseLink <code>orm.xml</code> non-embeddable type mapping - * <p> - * 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 OrmEclipseLinkNonEmbeddableTypeMapping - extends EclipseLinkNonEmbeddableTypeMapping, EclipseLinkOrmTypeMapping -{ - OrmEclipseLinkCaching getCaching(); - - JavaEclipseLinkNonEmbeddableTypeMapping getJavaTypeMapping(); - - JavaEclipseLinkNonEmbeddableTypeMapping getJavaTypeMappingForDefaults(); -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/EclipseLinkPersistenceXmlContextNodeFactory.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/EclipseLinkPersistenceXmlContextNodeFactory.java deleted file mode 100644 index e9c89e48cc..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/EclipseLinkPersistenceXmlContextNodeFactory.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.persistence; - -import org.eclipse.jpt.core.context.persistence.PersistenceUnit; -import org.eclipse.jpt.core.context.persistence.PersistenceUnitProperties; -import org.eclipse.jpt.core.context.persistence.PersistenceXmlContextNodeFactory; - -public interface EclipseLinkPersistenceXmlContextNodeFactory extends PersistenceXmlContextNodeFactory -{ - - PersistenceUnitProperties buildLogging(PersistenceUnit parent); - -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/caching/CacheType.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/caching/CacheType.java deleted file mode 100644 index 1df7e9ef58..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/caching/CacheType.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.persistence.caching; - -/** - * CacheType - */ -public enum CacheType { - soft_weak, - hard_weak, - weak, - soft, - full, - none; - - // EclipseLink value string - public static final String FULL = "Full"; - public static final String HARD_WEAK = "HardWeak"; - public static final String NONE = "NONE"; - public static final String SOFT = "Soft"; - public static final String SOFT_WEAK = "SoftWeak"; - public static final String WEAK = "Weak"; -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/caching/Caching.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/caching/Caching.java deleted file mode 100644 index 1c3655df82..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/caching/Caching.java +++ /dev/null @@ -1,90 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2008, 2010 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.persistence.caching; - -import java.util.Iterator; -import java.util.ListIterator; - -import org.eclipse.jpt.core.context.persistence.PersistenceUnitProperties; -import org.eclipse.jpt.eclipselink.core.internal.context.persistence.caching.Entity; - -/** - * Caching - */ -public interface Caching extends PersistenceUnitProperties -{ - CacheType getDefaultCacheTypeDefault(); - CacheType getCacheTypeDefault(); - void setCacheTypeDefault(CacheType cacheTypeDefault); - static final String CACHE_TYPE_DEFAULT_PROPERTY = "cacheTypeDefault"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_CACHE_TYPE_DEFAULT = "eclipselink.cache.type.default"; //$NON-NLS-1$ - static final CacheType DEFAULT_CACHE_TYPE_DEFAULT = CacheType.soft_weak; - - Integer getDefaultCacheSizeDefault(); - Integer getCacheSizeDefault(); - void setCacheSizeDefault(Integer cacheSizeDefault); - static final String CACHE_SIZE_DEFAULT_PROPERTY = "cacheSizeDefault"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_CACHE_SIZE_DEFAULT = "eclipselink.cache.size.default"; //$NON-NLS-1$ - static final Integer DEFAULT_CACHE_SIZE_DEFAULT = Integer.valueOf(100); - - Boolean getDefaultSharedCacheDefault(); - Boolean getSharedCacheDefault(); - void setSharedCacheDefault(Boolean sharedCacheDefault); - static final String SHARED_CACHE_DEFAULT_PROPERTY = "sharedCacheDefault"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_CACHE_SHARED_DEFAULT = "eclipselink.cache.shared.default"; //$NON-NLS-1$ - static final Boolean DEFAULT_SHARED_CACHE_DEFAULT = Boolean.TRUE; - - - CacheType getDefaultCacheType(); - CacheType getCacheTypeOf(String entityName); - void setCacheTypeOf(String entityName, CacheType cacheType); - static final String CACHE_TYPE_PROPERTY = "cacheType"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_CACHE_TYPE = "eclipselink.cache.type."; //$NON-NLS-1$ - static final CacheType DEFAULT_CACHE_TYPE = CacheType.soft_weak; - - Integer getDefaultCacheSize(); - Integer getCacheSizeOf(String entityName); - void setCacheSizeOf(String entityName, Integer cacheSize); - static final String CACHE_SIZE_PROPERTY = "cacheSize"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_CACHE_SIZE = "eclipselink.cache.size."; //$NON-NLS-1$ - static final Integer DEFAULT_CACHE_SIZE = Integer.valueOf(100); - - Boolean getDefaultSharedCache(); - Boolean getSharedCacheOf(String entityName); - void setSharedCacheOf(String entityName, Boolean sharedCache); - static final String SHARED_CACHE_PROPERTY = "sharedCache"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_SHARED_CACHE = "eclipselink.cache.shared."; //$NON-NLS-1$ - static final Boolean DEFAULT_SHARED_CACHE = Boolean.TRUE; - - FlushClearCache getDefaultFlushClearCache(); - FlushClearCache getFlushClearCache(); - void setFlushClearCache(FlushClearCache newFlushClearCache); - static final String FLUSH_CLEAR_CACHE_PROPERTY = "flushClearCache"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_FLUSH_CLEAR_CACHE = "eclipselink.flush-clear.cache"; //$NON-NLS-1$ - static final FlushClearCache DEFAULT_FLUSH_CLEAR_CACHE = FlushClearCache.drop_invalidate; - - void removeDefaultCachingProperties(); - - ListIterator<Entity> entities(); - Iterator<String> entityNames(); - int entitiesSize(); - boolean entityExists(String entity); - Entity addEntity(String entity); - void removeEntity(String entity); - String ENTITIES_LIST = "entities"; //$NON-NLS-1$ - -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/caching/FlushClearCache.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/caching/FlushClearCache.java deleted file mode 100644 index f92f5ab70d..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/caching/FlushClearCache.java +++ /dev/null @@ -1,24 +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.persistence.caching; - -/** - * FlushClearCache - */ -public enum FlushClearCache { - drop, - drop_invalidate, - merge; - - // EclipseLink value string - public static final String DROP = "Drop"; - public static final String DROP_INVALIDATE = "DropInvalidate"; - public static final String MERGE = "Merge"; -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/connection/BatchWriting.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/connection/BatchWriting.java deleted file mode 100644 index 2f3b8a777e..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/connection/BatchWriting.java +++ /dev/null @@ -1,26 +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.persistence.connection; - -/** - * BatchWriting - */ -public enum BatchWriting { - none, - jdbc, - buffered, - oracle_jdbc; - - // EclipseLink value string - static final String NONE = "None"; - static final String JDBC = "JDBC"; - static final String BUFFERED = "Buffered"; - static final String ORACLE_JDBC = "Oracle-JDBC"; -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/connection/Connection.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/connection/Connection.java deleted file mode 100644 index 650a063250..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/connection/Connection.java +++ /dev/null @@ -1,147 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2008, 2010 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.persistence.connection; - -import org.eclipse.jpt.core.context.persistence.PersistenceUnitProperties; - -/** - * Connection - */ -public interface Connection extends PersistenceUnitProperties -{ - Boolean getDefaultNativeSql(); - Boolean getNativeSql(); - void setNativeSql(Boolean newNativeSql); - static final String NATIVE_SQL_PROPERTY = "nativeSql"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_NATIVE_SQL = "eclipselink.jdbc.native-sql"; //$NON-NLS-1$ - static final Boolean DEFAULT_NATIVE_SQL = Boolean.FALSE; - - BatchWriting getDefaultBatchWriting(); - BatchWriting getBatchWriting(); - void setBatchWriting(BatchWriting newBatchWriting); - static final String BATCH_WRITING_PROPERTY = "batchWriting"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_BATCH_WRITING = "eclipselink.jdbc.batch-writing"; //$NON-NLS-1$ - static final BatchWriting DEFAULT_BATCH_WRITING = BatchWriting.none; - - Boolean getDefaultCacheStatements(); - Boolean getCacheStatements(); - void setCacheStatements(Boolean newCacheStatements); - static final String CACHE_STATEMENTS_PROPERTY = "cacheStatements"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_CACHE_STATEMENTS = "eclipselink.jdbc.cache-statements"; //$NON-NLS-1$ - static final Boolean DEFAULT_CACHE_STATEMENTS = Boolean.FALSE; - - Integer getDefaultCacheStatementsSize(); - Integer getCacheStatementsSize(); - void setCacheStatementsSize(Integer newCacheStatementsSize); - static final String CACHE_STATEMENTS_SIZE_PROPERTY = "cacheStatementsSize"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_CACHE_STATEMENTS_SIZE = "eclipselink.jdbc.cache-statements.size"; //$NON-NLS-1$ - static final Integer DEFAULT_CACHE_STATEMENTS_SIZE = Integer.valueOf(50); - - String getDefaultDriver(); - String getDriver(); - void setDriver(String newDriver); - static final String DRIVER_PROPERTY = "driver"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_DRIVER = "eclipselink.jdbc.driver"; //$NON-NLS-1$ - static final String DEFAULT_DRIVER = ""; //$NON-NLS-1$ - - String getDefaultUrl(); - String getUrl(); - void setUrl(String newUrl); - static final String URL_PROPERTY = "url"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_URL = "eclipselink.jdbc.url"; //$NON-NLS-1$ - static final String DEFAULT_URL = ""; //$NON-NLS-1$ - - String getDefaultUser(); - String getUser(); - void setUser(String newUser); - static final String USER_PROPERTY = "user"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_USER = "eclipselink.jdbc.user"; //$NON-NLS-1$ - static final String DEFAULT_USER = ""; //$NON-NLS-1$ - - String getDefaultPassword(); - String getPassword(); - void setPassword(String newPassword); - static final String PASSWORD_PROPERTY = "password"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_PASSWORD = "eclipselink.jdbc.password"; //$NON-NLS-1$ - static final String DEFAULT_PASSWORD = ""; //$NON-NLS-1$ - - Boolean getDefaultBindParameters(); - Boolean getBindParameters(); - void setBindParameters(Boolean newBindParameters); - static final String BIND_PARAMETERS_PROPERTY = "bindParameters"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_BIND_PARAMETERS = "eclipselink.jdbc.bind-parameters"; //$NON-NLS-1$ - static final Boolean DEFAULT_BIND_PARAMETERS = Boolean.TRUE; - - Boolean getDefaultReadConnectionsShared(); - Boolean getReadConnectionsShared(); - void setReadConnectionsShared(Boolean newReadConnectionsShared); - static final String READ_CONNECTIONS_SHARED_PROPERTY = "readConnectionsShared"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_READ_CONNECTIONS_SHARED = "eclipselink.jdbc.read-connections.shared"; //$NON-NLS-1$ - static final Boolean DEFAULT_READ_CONNECTIONS_SHARED = Boolean.FALSE; - - Integer getDefaultReadConnectionsMin(); - Integer getReadConnectionsMin(); - void setReadConnectionsMin(Integer newReadConnectionsMin); - static final String READ_CONNECTIONS_MIN_PROPERTY = "readConnectionsMin"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_READ_CONNECTIONS_MIN = "eclipselink.jdbc.read-connections.min"; //$NON-NLS-1$ - static final Integer DEFAULT_READ_CONNECTIONS_MIN = Integer.valueOf(2); - - Integer getDefaultReadConnectionsMax(); - Integer getReadConnectionsMax(); - void setReadConnectionsMax(Integer newReadConnectionsMax); - static final String READ_CONNECTIONS_MAX_PROPERTY = "readConnectionsMax"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_READ_CONNECTIONS_MAX = "eclipselink.jdbc.read-connections.max"; //$NON-NLS-1$ - static final Integer DEFAULT_READ_CONNECTIONS_MAX = Integer.valueOf(2); - - Integer getDefaultWriteConnectionsMin(); - Integer getWriteConnectionsMin(); - void setWriteConnectionsMin(Integer newWriteConnectionsMin); - static final String WRITE_CONNECTIONS_MIN_PROPERTY = "writeConnectionsMin"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_WRITE_CONNECTIONS_MIN = "eclipselink.jdbc.write-connections.min"; //$NON-NLS-1$ - static final Integer DEFAULT_WRITE_CONNECTIONS_MIN = Integer.valueOf(5); - - Integer getDefaultWriteConnectionsMax(); - Integer getWriteConnectionsMax(); - void setWriteConnectionsMax(Integer newWriteConnectionsMax); - static final String WRITE_CONNECTIONS_MAX_PROPERTY = "writeConnectionsMax"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_WRITE_CONNECTIONS_MAX = "eclipselink.jdbc.write-connections.max"; //$NON-NLS-1$ - static final Integer DEFAULT_WRITE_CONNECTIONS_MAX = Integer.valueOf(10); - - ExclusiveConnectionMode getDefaultExclusiveConnectionMode(); - ExclusiveConnectionMode getExclusiveConnectionMode(); - void setExclusiveConnectionMode(ExclusiveConnectionMode newExclusiveConnectionMode); - static final String EXCLUSIVE_CONNECTION_MODE_PROPERTY = "exclusiveConnectionMode"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_EXCLUSIVE_CONNECTION_MODE = "eclipselink.jdbc.exclusive-connection.mode"; //$NON-NLS-1$ - static final ExclusiveConnectionMode DEFAULT_EXCLUSIVE_CONNECTION_MODE = ExclusiveConnectionMode.transactional; - - Boolean getDefaultLazyConnection(); - Boolean getLazyConnection(); - void setLazyConnection(Boolean newLazyConnection); - static final String LAZY_CONNECTION_PROPERTY = "lazyConnection"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_LAZY_CONNECTION = "eclipselink.jdbc.exclusive-connection.is-lazy"; //$NON-NLS-1$ - static final Boolean DEFAULT_LAZY_CONNECTION = Boolean.TRUE; - -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/connection/ExclusiveConnectionMode.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/connection/ExclusiveConnectionMode.java deleted file mode 100644 index 47a9b8d319..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/connection/ExclusiveConnectionMode.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2010 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.persistence.connection; - -/** - * ExclusiveConnectionMode - */ -public enum ExclusiveConnectionMode { - always, - isolated, - transactional; - - // EclipseLink value string - static final String ALWAYS = "Always"; - static final String ISOLATED = "Isolated"; - static final String TRANSACTIONAL = "Transactional"; - -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/customization/Customization.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/customization/Customization.java deleted file mode 100644 index 1b05b16e37..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/customization/Customization.java +++ /dev/null @@ -1,142 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2008, 2010 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.persistence.customization; - -import java.util.Iterator; -import java.util.ListIterator; - -import org.eclipse.jpt.core.context.persistence.PersistenceUnitProperties; -import org.eclipse.jpt.core.internal.context.persistence.AbstractPersistenceUnitProperties; -import org.eclipse.jpt.eclipselink.core.internal.context.persistence.customization.Entity; - -/** - * Customization - */ -public interface Customization extends PersistenceUnitProperties -{ - Boolean getDefaultThrowExceptions(); - Boolean getThrowExceptions(); - void setThrowExceptions(Boolean newThrowExceptions); - static final String THROW_EXCEPTIONS_PROPERTY = "throwExceptions"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_THROW_EXCEPTIONS = "eclipselink.orm.throw.exceptions"; //$NON-NLS-1$ - static final Boolean DEFAULT_THROW_EXCEPTIONS = Boolean.TRUE; - - Weaving getDefaultWeaving(); - Weaving getWeaving(); - void setWeaving(Weaving newWeaving); - static final String WEAVING_PROPERTY = "weaving"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_WEAVING = "eclipselink.weaving"; //$NON-NLS-1$ - static final Weaving DEFAULT_WEAVING = Weaving.true_; - - Boolean getDefaultWeavingLazy(); - Boolean getWeavingLazy(); - void setWeavingLazy(Boolean newWeavingLazy); - static final String WEAVING_LAZY_PROPERTY = "weavingLazy"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_WEAVING_LAZY = "eclipselink.weaving.lazy"; //$NON-NLS-1$ - static final Boolean DEFAULT_WEAVING_LAZY = Boolean.TRUE; - - Boolean getDefaultWeavingChangeTracking(); - Boolean getWeavingChangeTracking(); - void setWeavingChangeTracking(Boolean newWeavingChangeTracking); - static final String WEAVING_CHANGE_TRACKING_PROPERTY = "weavingChangeTracking"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_WEAVING_CHANGE_TRACKING = "eclipselink.weaving.changetracking"; //$NON-NLS-1$ - static final Boolean DEFAULT_WEAVING_CHANGE_TRACKING = Boolean.TRUE; - - Boolean getDefaultWeavingFetchGroups(); - Boolean getWeavingFetchGroups(); - void setWeavingFetchGroups(Boolean newWeavingFetchGroups); - static final String WEAVING_FETCH_GROUPS_PROPERTY = "weavingFetchGroups"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_WEAVING_FETCH_GROUPS = "eclipselink.weaving.fetchgroups"; //$NON-NLS-1$ - static final Boolean DEFAULT_WEAVING_FETCH_GROUPS = Boolean.TRUE; - - Boolean getDefaultWeavingInternal(); - Boolean getWeavingInternal(); - void setWeavingInternal(Boolean newWeavingInternal); - static final String WEAVING_INTERNAL_PROPERTY = "weavingInternal"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_WEAVING_INTERNAL = "eclipselink.weaving.internal"; //$NON-NLS-1$ - static final Boolean DEFAULT_WEAVING_INTERNAL = Boolean.TRUE; - - Boolean getDefaultWeavingEager(); - Boolean getWeavingEager(); - void setWeavingEager(Boolean newWeavingEager); - static final String WEAVING_EAGER_PROPERTY = "weavingEager"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_WEAVING_EAGER = "eclipselink.weaving.eager"; //$NON-NLS-1$ - static final Boolean DEFAULT_WEAVING_EAGER = Boolean.FALSE; - - String getDefaultDescriptorCustomizer(); - String getDescriptorCustomizerOf(String entityName); - void setDescriptorCustomizerOf(String entityName, String newDescriptorCustomizer); - static final String DESCRIPTOR_CUSTOMIZER_PROPERTY = "descriptorCustomizer"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_DESCRIPTOR_CUSTOMIZER = "eclipselink.descriptor.customizer."; //$NON-NLS-1$ - static final String DEFAULT_DESCRIPTOR_CUSTOMIZER = null; // no default - - ListIterator<String> sessionCustomizers(); - int sessionCustomizersSize(); - boolean sessionCustomizerExists(String sessionCustomizerClassName); - String addSessionCustomizer(String newSessionCustomizerClassName); - void removeSessionCustomizer(String sessionCustomizerClassName); - static final String SESSION_CUSTOMIZER_LIST = "sessionCustomizers"; //$NON-NLS-1$ - static final String SESSION_CUSTOMIZER_PROPERTY = "sessionCustomizer"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_SESSION_CUSTOMIZER = "eclipselink.session.customizer"; //$NON-NLS-1$ - - ListIterator<Entity> entities(); - Iterator<String> entityNames(); - int entitiesSize(); - boolean entityExists(String entity); - Entity addEntity(String entity); - void removeEntity(String entity); - static final String ENTITIES_LIST = "entities"; //$NON-NLS-1$ - - String getDefaultProfiler(); - String getProfiler(); - void setProfiler(String newProfiler); - void setProfiler(Profiler newProfiler); - static final String PROFILER_PROPERTY = "profiler"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_PROFILER = "eclipselink.profiler"; //$NON-NLS-1$ - static final String DEFAULT_PROFILER = - AbstractPersistenceUnitProperties.getPropertyStringValueOf(Profiler.no_profiler); - String ECLIPSELINK_SESSION_PROFILER_CLASS_NAME = "org.eclipse.persistence.sessions.SessionProfiler"; //$NON-NLS-1$ - - Boolean getDefaultValidationOnly(); - Boolean getValidationOnly(); - void setValidationOnly(Boolean newValidationOnly); - static final String VALIDATION_ONLY_PROPERTY = "validationOnly"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_VALIDATION_ONLY = "eclipselink.validation-only"; //$NON-NLS-1$ - static final Boolean DEFAULT_VALIDATION_ONLY = Boolean.TRUE; - - String getDefaultExceptionHandler(); - String getExceptionHandler(); - void setExceptionHandler(String newExceptionHandler); - static final String EXCEPTION_HANDLER_PROPERTY = "exceptionHandler"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_EXCEPTION_HANDLER = "eclipselink.exception-handler"; //$NON-NLS-1$ - static final String DEFAULT_EXCEPTION_HANDLER = null; // no default - - String ECLIPSELINK_EXCEPTION_HANDLER_CLASS_NAME = "org.eclipse.persistence.exceptions.ExceptionHandler"; //$NON-NLS-1$ - - Boolean getDefaultValidateSchema(); - Boolean getValidateSchema(); - void setValidateSchema(Boolean newValidateSchema); - static final String VALIDATE_SCHEMA_PROPERTY = "validateSchema"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_VALIDATE_SCHEMA = "eclipselink.orm.validate.schema"; //$NON-NLS-1$ - static final Boolean DEFAULT_VALIDATE_SCHEMA = Boolean.FALSE; -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/customization/Profiler.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/customization/Profiler.java deleted file mode 100644 index 3cd2f1ce40..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/customization/Profiler.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.persistence.customization; - -/** - * Profiler - */ -public enum Profiler { - performance_profiler, - query_monitor, - no_profiler; - - // EclipseLink value string - public static final String PERFORMANCE_PROFILER = "PerformanceProfiler"; //$NON-NLS-1$ - public static final String QUERY_MONITOR = "QueryMonitor"; //$NON-NLS-1$ - public static final String NO_PROFILER = "NoProfiler"; //$NON-NLS-1$ - - // EclipseLink profiler class names - public static final String PERFORMANCE_PROFILER_CLASS_NAME = "org.eclipse.persistence.tools.profiler.PerformanceProfiler"; //$NON-NLS-1$ - public static final String QUERY_MONITOR_CLASS_NAME = "org.eclipse.persistence.tools.profiler.QueryMonitor"; //$NON-NLS-1$ - - /** - * Return the Profiler value corresponding to the given literal. - */ - public static Profiler getProfilerFor(String literal) { - - for( Profiler profiler : Profiler.values()) { - if(profiler.toString().equals(literal)) { - return profiler; - } - } - return null; - } - - - public static String getProfilerClassName(String profilerValue) { - if (profilerValue == PERFORMANCE_PROFILER) { - return PERFORMANCE_PROFILER_CLASS_NAME; - } - if (profilerValue == QUERY_MONITOR) { - return QUERY_MONITOR_CLASS_NAME; - } - return profilerValue; - } -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/customization/Weaving.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/customization/Weaving.java deleted file mode 100644 index 1b7c33733b..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/customization/Weaving.java +++ /dev/null @@ -1,24 +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.persistence.customization; - -/** - * Weaving - */ -public enum Weaving { - true_, - false_, - static_; - - // EclipseLink value string - public static final String TRUE_ = "true"; - public static final String FALSE_ = "false"; - public static final String STATIC_ = "static"; -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/general/GeneralProperties.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/general/GeneralProperties.java deleted file mode 100644 index e7818a313e..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/general/GeneralProperties.java +++ /dev/null @@ -1,28 +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.persistence.general; - -import org.eclipse.jpt.core.context.persistence.PersistenceUnitProperties; - -/** - * GeneralProperties - */ -public interface GeneralProperties extends PersistenceUnitProperties -{ - - Boolean getDefaultExcludeEclipselinkOrm(); - Boolean getExcludeEclipselinkOrm(); - void setExcludeEclipselinkOrm(Boolean newExcludeEclipselinkOrm); - static final String EXCLUDE_ECLIPSELINK_ORM_PROPERTY = "excludeEclipselinkOrm"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_EXCLUDE_ECLIPSELINK_ORM = "eclipselink.exclude-eclipselink-orm"; //$NON-NLS-1$ - static final Boolean DEFAULT_EXCLUDE_ECLIPSELINK_ORM = Boolean.FALSE; - -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/logging/Logger.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/logging/Logger.java deleted file mode 100644 index 601dada583..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/logging/Logger.java +++ /dev/null @@ -1,55 +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.persistence.logging; - -/** - * Logger - */ -public enum Logger { - default_logger, - java_logger, - server_logger; - - // EclipseLink value string - public static final String DEFAULT_LOGGER = "DefaultLogger"; //$NON-NLS-1$ - public static final String JAVA_LOGGER = "JavaLogger"; //$NON-NLS-1$ - public static final String SERVER_LOGGER = "ServerLogger"; //$NON-NLS-1$ - - // EclipseLink logger class names - public static final String DEFAULT_LOGGER_CLASS_NAME = "org.eclipse.persistence.logging.DefaultSessionLog"; //$NON-NLS-1$ - public static final String JAVA_LOGGER_CLASS_NAME = "org.eclipse.persistence.logging.JavaLog"; //$NON-NLS-1$ - public static final String SERVER_LOGGER_CLASS_NAME = "org.eclipse.persistence.platform.server.ServerLog"; //$NON-NLS-1$ - - /** - * Return the Logger value corresponding to the given literal. - */ - public static Logger getLoggerFor(String literal) { - - for( Logger logger : Logger.values()) { - if(logger.toString().equals(literal)) { - return logger; - } - } - return null; - } - - public static String getLoggerClassName(String loggerValue) { - if (loggerValue == DEFAULT_LOGGER) { - return DEFAULT_LOGGER_CLASS_NAME; - } - if (loggerValue == JAVA_LOGGER) { - return JAVA_LOGGER_CLASS_NAME; - } - if (loggerValue == SERVER_LOGGER) { - return SERVER_LOGGER_CLASS_NAME; - } - return loggerValue; - } -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/logging/Logging.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/logging/Logging.java deleted file mode 100644 index 0d6da4ab93..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/logging/Logging.java +++ /dev/null @@ -1,78 +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.persistence.logging; - -import org.eclipse.jpt.core.context.persistence.PersistenceUnitProperties; -import org.eclipse.jpt.core.internal.context.persistence.AbstractPersistenceUnitProperties; - -/** - * Logging - */ -public interface Logging extends PersistenceUnitProperties -{ - LoggingLevel getDefaultLevel(); - LoggingLevel getLevel(); - void setLevel(LoggingLevel level); - static final String LEVEL_PROPERTY = "level"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_LEVEL = "eclipselink.logging.level"; //$NON-NLS-1$ - static final LoggingLevel DEFAULT_LEVEL = LoggingLevel.info; - - Boolean getDefaultTimestamp(); - Boolean getTimestamp(); - void setTimestamp(Boolean timestamp); - static final String TIMESTAMP_PROPERTY = "timestamp"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_TIMESTAMP = "eclipselink.logging.timestamp"; //$NON-NLS-1$ - static final Boolean DEFAULT_TIMESTAMP = Boolean.TRUE; - - Boolean getDefaultThread(); - Boolean getThread(); - void setThread(Boolean thread); - static final String THREAD_PROPERTY = "thread"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_THREAD = "eclipselink.logging.thread"; //$NON-NLS-1$ - static final Boolean DEFAULT_THREAD = Boolean.TRUE; - - Boolean getDefaultSession(); - Boolean getSession(); - void setSession(Boolean session); - static final String SESSION_PROPERTY = "session"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_SESSION = "eclipselink.logging.session"; //$NON-NLS-1$ - static final Boolean DEFAULT_SESSION = Boolean.TRUE; - - Boolean getDefaultExceptions(); - Boolean getExceptions(); - void setExceptions(Boolean exceptions); - static final String EXCEPTIONS_PROPERTY = "exceptions"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_EXCEPTIONS = "eclipselink.logging.exceptions"; //$NON-NLS-1$ - static final Boolean DEFAULT_EXCEPTIONS = Boolean.FALSE; - - String getDefaultLogFileLocation(); - String getLogFileLocation(); - void setLogFileLocation(String newLogFileLocation); - static final String LOG_FILE_LOCATION_PROPERTY = "logFileLocation"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_LOG_FILE_LOCATION = "eclipselink.logging.file"; //$NON-NLS-1$ - static final String DEFAULT_LOG_FILE_LOCATION = null; // No Default - - String getDefaultLogger(); - String getLogger(); - void setLogger(String newLogger); - void setLogger(Logger newLogger); - static final String LOGGER_PROPERTY = "logger"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_LOGGER = "eclipselink.logging.logger"; //$NON-NLS-1$ - static final String DEFAULT_LOGGER = - AbstractPersistenceUnitProperties.getPropertyStringValueOf(Logger.default_logger); - String ECLIPSELINK_LOGGER_CLASS_NAME = "org.eclipse.persistence.logging.SessionLog"; //$NON-NLS-1$ -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/logging/LoggingLevel.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/logging/LoggingLevel.java deleted file mode 100644 index c563b8c491..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/logging/LoggingLevel.java +++ /dev/null @@ -1,36 +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.persistence.logging; - -/** - * LoggingLevel - */ -public enum LoggingLevel { - off, - severe, - warning, - info, - config, - fine, - finer, - finest, - all; - - // EclipseLink value string - public static final String OFF = "OFF"; - public static final String SEVERE = "SEVERE"; - public static final String WARNING = "WARNING"; - public static final String INFO = "INFO"; - public static final String CONFIG = "CONFIG"; - public static final String FINE = "FINE"; - public static final String FINER = "FINER"; - public static final String FINEST = "FINEST"; - public static final String ALL = "ALL"; -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/options/Options.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/options/Options.java deleted file mode 100644 index ed6a6c89b4..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/options/Options.java +++ /dev/null @@ -1,81 +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.persistence.options; - -import org.eclipse.jpt.core.context.persistence.PersistenceUnitProperties; -import org.eclipse.jpt.core.internal.context.persistence.AbstractPersistenceUnitProperties; - -/** - * Session Options - */ -public interface Options extends PersistenceUnitProperties -{ - String getDefaultSessionName(); - String getSessionName(); - void setSessionName(String newSessionName); - static final String SESSION_NAME_PROPERTY = "sessionName"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_SESSION_NAME = "eclipselink.session-name"; //$NON-NLS-1$ - static final String DEFAULT_SESSION_NAME = ""; // no default //$NON-NLS-1$ - - String getDefaultSessionsXml(); - String getSessionsXml(); - void setSessionsXml(String newSessionsXml); - static final String SESSIONS_XML_PROPERTY = "sessionsXml"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_SESSIONS_XML = "eclipselink.sessions-xml"; //$NON-NLS-1$ - static final String DEFAULT_SESSIONS_XML = ""; // no default //$NON-NLS-1$ - - Boolean getDefaultIncludeDescriptorQueries(); - Boolean getIncludeDescriptorQueries(); - void setIncludeDescriptorQueries(Boolean newIncludeDescriptorQueries); - static final String SESSION_INCLUDE_DESCRIPTOR_QUERIES_PROPERTY = "includeDescriptorQueriesy"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_SESSION_INCLUDE_DESCRIPTOR_QUERIES = "eclipselink.session.include.descriptor.queries"; //$NON-NLS-1$ - static final Boolean DEFAULT_SESSION_INCLUDE_DESCRIPTOR_QUERIES = Boolean.TRUE; - - String getDefaultTargetDatabase(); - String getTargetDatabase(); - void setTargetDatabase(String newTargetDatabase); - void setTargetDatabase(TargetDatabase newTargetDatabase); - static final String TARGET_DATABASE_PROPERTY = "targetDatabase"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_TARGET_DATABASE = "eclipselink.target-database"; //$NON-NLS-1$ - static final String DEFAULT_TARGET_DATABASE = - AbstractPersistenceUnitProperties.getPropertyStringValueOf(TargetDatabase.auto); - - String getDefaultTargetServer(); - String getTargetServer(); - void setTargetServer(String newTargetServer); - void setTargetServer(TargetServer newTargetServer); - static final String TARGET_SERVER_PROPERTY = "targetServer"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_TARGET_SERVER = "eclipselink.target-server"; //$NON-NLS-1$ - static final String DEFAULT_TARGET_SERVER = - AbstractPersistenceUnitProperties.getPropertyStringValueOf(TargetServer.none); - - String getDefaultEventListener(); - String getEventListener(); - void setEventListener(String newEventListener); - static final String SESSION_EVENT_LISTENER_PROPERTY = "eventListener"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_SESSION_EVENT_LISTENER = "eclipselink.session-event-listener"; //$NON-NLS-1$ - static final String DEFAULT_SESSION_EVENT_LISTENER = null; // no default - String ECLIPSELINK_EVENT_LISTENER_CLASS_NAME = "org.eclipse.persistence.sessions.SessionEventListener"; //$NON-NLS-1$ - - Boolean getDefaultTemporalMutable(); - Boolean getTemporalMutable(); - void setTemporalMutable(Boolean temporalMutable); - static final String TEMPORAL_MUTABLE_PROPERTY = "temporalMutable"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_TEMPORAL_MUTABLE = "eclipselink.temporal.mutable"; //$NON-NLS-1$ - static final Boolean DEFAULT_TEMPORAL_MUTABLE = Boolean.FALSE; - -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/options/TargetDatabase.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/options/TargetDatabase.java deleted file mode 100644 index 9c6412e2ee..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/options/TargetDatabase.java +++ /dev/null @@ -1,77 +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.persistence.options; - -/** - * TargetDatabase - */ -public enum TargetDatabase { - attunity, - auto, - cloudscape, - database, - db2, - db2mainframe, - dbase, - derby, - hsql, - informix, - javadb, - mysql, - oracle, - oracle11, - oracle10, - oracle9, - oracle8, - pointbase, - postgresql, - sqlanywhere, - sqlserver, - sybase, - timesten; - - // EclipseLink value string - static final String ATTUNITY = "Attunity"; - static final String AUTO = "Auto"; - static final String CLOUDSCAPE = "Cloudscape"; - static final String DATABASE = "Database"; - static final String DB2 = "DB2"; - static final String DB2MAINFRAME = "DB2Mainframe"; - static final String DBASE = "DBase"; - static final String DERBY = "Derby"; - static final String HSQL = "HSQL"; - static final String INFORMIX = "Informix"; - static final String JAVADB = "JavaDB"; - static final String MYSQL = "MySQL"; - static final String ORACLE = "Oracle"; - static final String ORACLE11 = "Oracle11"; - static final String ORACLE10 = "Oracle10g"; - static final String ORACLE9 = "Oracle9i"; - static final String ORACLE8 = "Oracle8i"; - static final String POINTBASE = "PointBase"; - static final String POSTGRESQL = "PostgreSQL"; - static final String SQLANYWHERE = "SQLAnywhere"; - static final String SQLSERVER = "SQLServer"; - static final String SYBASE = "Sybase"; - static final String TIMESTEN = "TimesTen"; - - /** - * Return the TargetDatabase value corresponding to the given literal. - */ - public static TargetDatabase getTargetDatabaseFor(String literal) { - - for( TargetDatabase targetDatabase : TargetDatabase.values()) { - if(targetDatabase.toString().equals(literal)) { - return targetDatabase; - } - } - return null; - } -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/options/TargetServer.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/options/TargetServer.java deleted file mode 100644 index 1190401907..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/options/TargetServer.java +++ /dev/null @@ -1,49 +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.persistence.options; - -/** - * TargetServer - */ -public enum TargetServer { - none, - oc4j, - sunas9, - websphere, - websphere_6_1, - weblogic, - weblogic_9, - weblogic_10, - jboss; - - // EclipseLink value string - static final String NONE = "None"; - static final String OC4J = "OC4J"; - static final String SUNAS9 = "SunAS9"; - static final String WEBSPHERE = "WebSphere"; - static final String WEBSPHERE_6_1 = "WebSphere_6_1"; - static final String WEBLOGIC = "WebLogic"; - static final String WEBLOGIC_9 = "WebLogic_9"; - static final String WEBLOGIC_10 = "WebLogic_10"; - static final String JBOSS = "JBoss"; - - /** - * Return the TargetServer value corresponding to the given literal. - */ - public static TargetServer getTargetServerFor(String literal) { - - for( TargetServer targetServer : TargetServer.values()) { - if(targetServer.toString().equals(literal)) { - return targetServer; - } - } - return null; - } -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/schema/generation/DdlGenerationType.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/schema/generation/DdlGenerationType.java deleted file mode 100644 index bae6febd2f..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/schema/generation/DdlGenerationType.java +++ /dev/null @@ -1,24 +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.persistence.schema.generation; - -/** - * DdlGenerationType - */ -public enum DdlGenerationType { - none, - create_tables, - drop_and_create_tables; - - // EclipseLink value string - public static final String NONE = "none"; - public static final String CREATE_TABLES = "create-tables"; - public static final String DROP_AND_CREATE_TABLES = "drop-and-create-tables"; -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/schema/generation/OutputMode.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/schema/generation/OutputMode.java deleted file mode 100644 index 9d009c60f3..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/schema/generation/OutputMode.java +++ /dev/null @@ -1,24 +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.persistence.schema.generation; - -/** - * OutputMode - */ -public enum OutputMode { - both, - sql_script, - database; - - // EclipseLink value string - public static final String BOTH = "both"; - public static final String DATABASE = "database"; - public static final String SQL_SCRIPT = "sql-script"; -} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/schema/generation/SchemaGeneration.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/schema/generation/SchemaGeneration.java deleted file mode 100644 index 11bc714a56..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/context/persistence/schema/generation/SchemaGeneration.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2008, 2010 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.persistence.schema.generation; - -import org.eclipse.jpt.core.context.persistence.PersistenceUnitProperties; - -/** - * SchemaGeneration - */ -public interface SchemaGeneration extends PersistenceUnitProperties -{ - DdlGenerationType getDefaultDdlGenerationType(); - DdlGenerationType getDdlGenerationType(); - void setDdlGenerationType(DdlGenerationType ddlGenerationType); - static final String DDL_GENERATION_TYPE_PROPERTY = "ddlGenerationType"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_DDL_GENERATION_TYPE = "eclipselink.ddl-generation"; //$NON-NLS-1$ - static final DdlGenerationType DEFAULT_SCHEMA_GENERATION_DDL_GENERATION_TYPE = DdlGenerationType.none; - - OutputMode getDefaultOutputMode(); - OutputMode getOutputMode(); - void setOutputMode(OutputMode outputMode); // put - static final String OUTPUT_MODE_PROPERTY = "outputMode"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_DDL_GENERATION_OUTPUT_MODE = "eclipselink.ddl-generation.output-mode"; //$NON-NLS-1$ - static final OutputMode DEFAULT_SCHEMA_GENERATION_OUTPUT_MODE = null; // No Default - - String getDefaultCreateFileName(); - String getCreateFileName(); - void setCreateFileName(String createFileName); - static final String CREATE_FILE_NAME_PROPERTY = "createFileName"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_CREATE_FILE_NAME = "eclipselink.create-ddl-jdbc-file-name"; //$NON-NLS-1$ - static final String DEFAULT_SCHEMA_GENERATION_CREATE_FILE_NAME = "createDDL.jdbc"; //$NON-NLS-1$ - - String getDefaultDropFileName(); - String getDropFileName(); - void setDropFileName(String dropFileName); - static final String DROP_FILE_NAME_PROPERTY = "dropFileName"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_DROP_FILE_NAME = "eclipselink.drop-ddl-jdbc-file-name"; //$NON-NLS-1$ - static final String DEFAULT_SCHEMA_GENERATION_DROP_FILE_NAME = "dropDDL.jdbc"; //$NON-NLS-1$ - - String getDefaultApplicationLocation(); - String getApplicationLocation(); - void setApplicationLocation(String applicationLocation); - static final String APPLICATION_LOCATION_PROPERTY = "applicationLocation"; //$NON-NLS-1$ - // EclipseLink key string - static final String ECLIPSELINK_APPLICATION_LOCATION = "eclipselink.application-location"; //$NON-NLS-1$ - static final String DEFAULT_SCHEMA_GENERATION_APPLICATION_LOCATION = null; //$NON-NLS-1$ - -} |