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

Examples of org.eclipse.persistence.internal.jpa.metadata.columns.ColumnMetadata


    public void initXMLObject(MetadataAccessibleObject accessibleObject) {
        super.initXMLObject(accessibleObject);

        // Default a column if necessary.
        if (m_column == null) {
            m_column = new ColumnMetadata(accessibleObject, getAttributeName());
        } else {
            // Make sure the attribute name is set on the column.
            m_column.setAttributeName(getAttributeName());

            // Initialize single objects.
View Full Code Here


     * INTERNAL:
     */
    public WriteTransformerMetadata(Annotation writeTransformer, MetadataAccessibleObject accessibleObject) {
        super(writeTransformer, accessibleObject);
       
        m_column = new ColumnMetadata((Annotation) MetadataHelper.invokeMethod("column", writeTransformer), accessibleObject);
    }
View Full Code Here

     * The name may be set by TransformationAccessor in case there's none
     * specified.
     */
    public void setFieldName(String fieldName) {
        if (m_column == null) {
            m_column = new ColumnMetadata();
        }
       
        m_column.setName(fieldName);
    }
View Full Code Here

        super(primaryKey, accessibleObject);
       
        m_validation = (Enum) MetadataHelper.invokeMethod("validation", primaryKey);
       
        for (Annotation selectedColumn : (Annotation[]) MetadataHelper.invokeMethod("columns", primaryKey)) {
          m_columns.add(new ColumnMetadata(selectedColumn, accessibleObject));
        }
    }
View Full Code Here

    public FieldPartitioningMetadata(MetadataAnnotation annotation, MetadataAccessor accessor) {
        super(annotation, accessor);
       
        MetadataAnnotation column = (MetadataAnnotation) annotation.getAttribute("partitionColumn");
        if (column != null) {
            this.partitionColumn = new ColumnMetadata(column, accessor);
        }
       
        this.partitionValueType = getMetadataClass((String) annotation.getAttributeClass("partitionValueType", String.class));
        this.unionUnpartitionableQueries = (Boolean)annotation.getAttribute("unionUnpartitionableQueries");
    }
View Full Code Here

            m_mapKeyClass = getMetadataClass((String)getAnnotation(JPA_MAP_KEY_CLASS).getAttribute("value"));
        }
       
        // Set the map key column if one is defined.
        if (isAnnotationPresent(JPA_MAP_KEY_COLUMN)) {
            m_mapKeyColumn = new ColumnMetadata(getAnnotation(JPA_MAP_KEY_COLUMN), this);
        }
       
        // Set the map key join columns if some are present.
        // Process all the map key join columns first.
        if (isAnnotationPresent(JPA_MAP_KEY_JOIN_COLUMNS)) {
View Full Code Here

     */
    @Override
    protected ColumnMetadata getColumn(String loggingCtx) {
        if (loggingCtx.equals(MetadataLogger.MAP_KEY_COLUMN)) {
            if (m_mapKeyColumn == null) {
                return new ColumnMetadata(getAnnotation(JPA_MAP_KEY_COLUMN), this);
            } else {
                return m_mapKeyColumn;
            }
        } else {
            return super.getColumn(loggingCtx);
View Full Code Here

     * INTERNAL:
     */
    public BasicMapAccessor(MetadataAnnotation basicMap, MetadataAccessibleObject accessibleObject, ClassAccessor classAccessor) {
        super(basicMap, accessibleObject, classAccessor);
       
        m_keyColumn = new ColumnMetadata((MetadataAnnotation) basicMap.getAttribute("keyColumn"), this);

        MetadataAnnotation keyConvert = (MetadataAnnotation) basicMap.getAttribute("keyConverter");
        if (keyConvert != null) {
            m_keyConverter = (String) keyConvert.getAttribute("value");
        }

        MetadataAnnotation valueConvert = (MetadataAnnotation) basicMap.getAttribute("valueConverter");
        if (valueConvert != null) {
            m_valueConverter = (String)valueConvert.getAttribute("value");
        }
       
        setValueColumn(new ColumnMetadata((MetadataAnnotation) basicMap.getAttribute("valueColumn"), this));
        setFetch((String) basicMap.getAttribute("fetch"));
    }
View Full Code Here

        initAccess();

        // Any mapping type may have a field for EIS/NoSQL data.
        MetadataAnnotation field = getAnnotation("org.eclipse.persistence.nosql.annotations.Field");
        if (field != null) {
            m_field = new ColumnMetadata(field, this);
        }
    }
View Full Code Here

     * @see BasicMapAccessor
     * @see ElementCollectionAccessor
     * @see CollectionAccessor
     */
    protected ColumnMetadata getColumn(String loggingCtx) {
        return m_field == null ? new ColumnMetadata(this) : m_field;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.persistence.internal.jpa.metadata.columns.ColumnMetadata

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.