blob: d5cc5f8296d59859476f05400da9e445c098eb70 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
*
* Contributors:
* Oracle - initial API and implementation
******************************************************************************/
package org.eclipse.jpt.eclipselink.core.context.java;
import org.eclipse.jpt.core.context.java.JavaJpaContextNode;
import org.eclipse.jpt.core.resource.java.JavaResourcePersistentType;
import org.eclipse.jpt.eclipselink.core.context.CustomConverter;
import org.eclipse.jpt.eclipselink.core.context.ObjectTypeConverter;
import org.eclipse.jpt.eclipselink.core.context.StructConverter;
import org.eclipse.jpt.eclipselink.core.context.TypeConverter;
/**
*
*
* Provisional API: This interface is part of an interim API that is still
* under development and expected to change significantly before reaching
* stability. It is available at this early stage to solicit feedback from
* pioneering adopters on the understanding that any code that uses this API
* will almost certainly be broken (repeatedly) as the API evolves.
*
* @version 2.1
* @since 2.1
*/
public interface JavaConverterHolder extends JavaJpaContextNode
{
/**
* Initialize the JavaConverterHolder context model object to match the JavaResourcePersistentType
* resource model object. This should be called immediately after object creation.
*/
void initialize(JavaResourcePersistentType jrpt);
/**
* Update the JavaConverterHolder context model object to match the JavaResourcePersistentType
* resource model object. see {@link org.eclipse.jpt.core.JpaProject#update()}
*/
void update(JavaResourcePersistentType jrpt);
CustomConverter getConverter();
CustomConverter addConverter();
void removeConverter();
String CONVERTER_PROPERTY = "converterProperty"; //$NON-NLS-1$
ObjectTypeConverter getObjectTypeConverter();
ObjectTypeConverter addObjectTypeConverter();
void removeObjectTypeConverter();
String OBJECT_TYPE_CONVERTER_PROPERTY = "objectTypeConverterProperty"; //$NON-NLS-1$
StructConverter getStructConverter();
StructConverter addStructConverter();
void removeStructConverter();
String STRUCT_CONVERTER_PROPERTY = "structConverterProperty"; //$NON-NLS-1$
TypeConverter getTypeConverter();
TypeConverter addTypeConverter();
void removeTypeConverter();
String TYPE_CONVERTER_PROPERTY = "typeCnverterProperty"; //$NON-NLS-1$
}