Package org.apache.ojb.broker.metadata

Examples of org.apache.ojb.broker.metadata.AttributeDescriptorBase


    {
        String attributeName = getAttributeName(fieldNum);
        ClassDescriptor cld = broker.getClassDescriptor(pc.getClass());
       
        // field could be a primitive typed attribute...
        AttributeDescriptorBase fld = cld.getFieldDescriptorByName(attributeName);
        // field could be a reference attribute...
        if (fld == null)
        {
      fld = cld.getObjectReferenceDescriptorByName(attributeName);
    }
    // or it could be a collection attribute:
        if (fld == null)
        {
      fld = cld.getCollectionDescriptorByName(attributeName);
    }       
        Object value = fld.getPersistentField().get(pc);
        return value;
    }
View Full Code Here


        {
            try
            {
                javax.swing.JTree tree = (javax.swing.JTree)c;
                OjbMetaDataTreeModel model = (OjbMetaDataTreeModel)tree.getModel();
                AttributeDescriptorBase descriptors[] = new AttributeDescriptorBase[tree.getSelectionCount()];
                for (int i = 0; tree.getSelectionPaths() != null && i < tree.getSelectionPaths().length; i++)
                {
                    Object o = ((OjbMetaTreeNode)tree.getSelectionPaths()[i].getLastPathComponent()).getAssociatedDescriptor();
                    if (o instanceof AttributeDescriptorBase)
                    {
View Full Code Here

    {
        String attributeName = getAttributeName(fieldNum);
        ClassDescriptor cld = broker.getClassDescriptor(pc.getClass());
       
        // field could be a primitive typed attribute...
        AttributeDescriptorBase fld = cld.getFieldDescriptorByName(attributeName);
        // field could be a reference attribute...
        if (fld == null)
        {
      fld = cld.getObjectReferenceDescriptorByName(attributeName);
    }
    // or it could be a collection attribute:
        if (fld == null)
        {
      fld = cld.getCollectionDescriptorByName(attributeName);
    }       
        Object value = fld.getPersistentField().get(pc);
        return value;
    }
View Full Code Here

        {
            try
            {
                javax.swing.JTree tree = (javax.swing.JTree)c;
                OjbMetaDataTreeModel model = (OjbMetaDataTreeModel)tree.getModel();
                AttributeDescriptorBase descriptors[] = new AttributeDescriptorBase[tree.getSelectionCount()];
                for (int i = 0; tree.getSelectionPaths() != null && i < tree.getSelectionPaths().length; i++)
                {
                    Object o = ((OjbMetaTreeNode)tree.getSelectionPaths()[i].getLastPathComponent()).getAssociatedDescriptor();
                    if (o instanceof AttributeDescriptorBase)
                    {
View Full Code Here

TOP

Related Classes of org.apache.ojb.broker.metadata.AttributeDescriptorBase

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.