Package org.eclipse.persistence.internal.jpa.metadata.tables

Examples of org.eclipse.persistence.internal.jpa.metadata.tables.IndexMetadata


        // annotations. This method is appending annotation metadata to XML
        // metadata.
        MetadataAnnotation index = getAnnotation(Index.class);
       
        if (index != null) {
            m_indexes.add(new IndexMetadata(index, this));
        }
       
        MetadataAnnotation indexes = getAnnotation(Indexes.class);
        if (indexes != null) {
            Object[] indexArray = (Object[])indexes.getAttributeArray("value");
            for (Object eachIndex : indexArray) {
                m_indexes.add(new IndexMetadata((MetadataAnnotation) eachIndex, this));           
            }
        }
       
        for (IndexMetadata indexMetadata : m_indexes) {
            indexMetadata.process(getDescriptor(), null);
View Full Code Here


        // Set the return update if one is present.
        m_returnUpdate = isAnnotationPresent(ReturnUpdate.class);
       
        // Set the index annotation if one is present.
        if (isAnnotationPresent(Index.class)) {
            m_index = new IndexMetadata(getAnnotation(Index.class), this);
        }
       
        // Set the cache index annotation if one is present.
        if (isAnnotationPresent(CacheIndex.class)) {
            m_cacheIndex = new CacheIndexMetadata(getAnnotation(CacheIndex.class), this);
View Full Code Here

        // Set the return update if one is present.
        m_returnUpdate = isAnnotationPresent(ReturnUpdate.class);
       
        // Set the index annotation if one is present.
        if (isAnnotationPresent(Index.class)) {
            m_index = new IndexMetadata(getAnnotation(Index.class), this);
        }
    }
View Full Code Here

        // annotations. This method is appending annotation metadata to XML
        // metadata.
        MetadataAnnotation index = getAnnotation(Index.class);
       
        if (index != null) {
            m_indexes.add(new IndexMetadata(index, this));
        }
       
        MetadataAnnotation indexes = getAnnotation(Indexes.class);
        if (indexes != null) {
            Object[] indexArray = (Object[])indexes.getAttributeArray("value");
            for (Object eachIndex : indexArray) {
                m_indexes.add(new IndexMetadata((MetadataAnnotation) eachIndex, this));           
            }
        }
       
        for (IndexMetadata indexMetadata : m_indexes) {
            indexMetadata.process(getDescriptor(), null);
View Full Code Here

        // Set the return update if one is present.
        m_returnUpdate = isAnnotationPresent(ReturnUpdate.class);
       
        // Set the index annotation if one is present.
        if (isAnnotationPresent(Index.class)) {
            m_index = new IndexMetadata(getAnnotation(Index.class), this);
        }
    }
View Full Code Here

* @since EclipseLink 2.5.1
*/
public class IndexImpl extends MetadataImpl<IndexMetadata> implements Index {
   
    public IndexImpl() {
        super(new IndexMetadata());
        getMetadata().setColumnNames(new ArrayList<String>());
    }
View Full Code Here

        // Set the return update if one is present.
        m_returnUpdate = isAnnotationPresent(ReturnUpdate.class);
       
        // Set the index annotation if one is present.
        if (isAnnotationPresent(Index.class)) {
            m_index = new IndexMetadata(getAnnotation(Index.class), this);
        }
       
        // Set the cache index annotation if one is present.
        if (isAnnotationPresent(CacheIndex.class)) {
            m_cacheIndex = new CacheIndexMetadata(getAnnotation(CacheIndex.class), this);
View Full Code Here

    protected void processIndexes() {
        // TODO: This method is adding annotation metadata to XML metadata. This
        // is wrong and does not follow the spec ideology. XML metadata should
        // override not merge with annotations.
        if (isAnnotationPresent(Index.class)) {
            m_indexes.add(new IndexMetadata(getAnnotation(Index.class), this));
        }
       
        if (isAnnotationPresent(Indexes.class)) {
            for (Object index : getAnnotation(Indexes.class).getAttributeArray("value")) {
                m_indexes.add(new IndexMetadata((MetadataAnnotation) index, this));           
            }
        }
       
        for (IndexMetadata indexMetadata : m_indexes) {
            indexMetadata.process(getDescriptor(), null);
View Full Code Here

        // annotations. This method is appending annotation metadata to XML
        // metadata.
        MetadataAnnotation index = getAnnotation(Index.class);
       
        if (index != null) {
            m_indexes.add(new IndexMetadata(index, this));
        }
       
        MetadataAnnotation indexes = getAnnotation(Indexes.class);
        if (indexes != null) {
            Object[] indexArray = (Object[])indexes.getAttributeArray("value");
            for (Object eachIndex : indexArray) {
                m_indexes.add(new IndexMetadata((MetadataAnnotation) eachIndex, this));           
            }
        }
       
        for (IndexMetadata indexMetadata : m_indexes) {
            indexMetadata.process(getDescriptor(), null);
View Full Code Here

        // Set the return update if one is present.
        m_returnUpdate = isAnnotationPresent(ReturnUpdate.class);
       
        // Set the index annotation if one is present.
        if (isAnnotationPresent(Index.class)) {
            m_index = new IndexMetadata(getAnnotation(Index.class), this);
        }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.persistence.internal.jpa.metadata.tables.IndexMetadata

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.