blob: d7714aee9f6418cdc89b8a24a2d4911092ddd6c5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/*******************************************************************************
* Copyright (c) 2006, 2007 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.core.internal.context.java;
import java.util.ListIterator;
import org.eclipse.jpt.core.internal.context.base.IPersistentAttribute;
import org.eclipse.jpt.core.internal.context.base.IPersistentType;
import org.eclipse.jpt.core.internal.resource.java.JavaPersistentTypeResource;
public interface IJavaPersistentType extends IPersistentType, IJavaJpaContextNode
{
IJavaTypeMapping getMapping();
@SuppressWarnings("unchecked")
ListIterator<IJavaPersistentAttribute> attributes();
IJavaPersistentAttribute attributeNamed(String attributeName);
/**
* Resolve and return the attribute named <code>attributeName</code> if it
* is distinct and exists within the context of this type
*/
IPersistentAttribute resolveAttribute(String attributeName);
void initializeFromResource(JavaPersistentTypeResource persistentTypeResource);
void update(JavaPersistentTypeResource persistentTypeResource);
/**
* Return whether any attribute in this persistent type contains a mapping annotation
* @return
*/
boolean hasAnyAttributeMappingAnnotations();
}
|