javax.persistence.metamodel
Interface Type<X>

Type Parameters:
X - The type of the represented object or attribute
All Known Subinterfaces:
BasicType<X>, EmbeddableType<X>, EntityType<X>, IdentifiableType<X>, ManagedType<X>, MappedSuperclassType<X>

public interface Type<X>

Instances of the type Type represent persistent object or attribute types.

Since:
Java Persistence 2.0

Nested Class Summary
static class Type.PersistenceType
           
 
Method Summary
 java.lang.Class<X> getJavaType()
          Return the represented Java type.
 Type.PersistenceType getPersistenceType()
          Return the persistence type.
 

Method Detail

getPersistenceType

Type.PersistenceType getPersistenceType()
Return the persistence type.

Returns:
persistence type

getJavaType

java.lang.Class<X> getJavaType()
Return the represented Java type.

Returns:
Java type


Submit a bug or feature

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41