Examples of CollectionDescriptor


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

    }

    void changeMovieCollectionDescriptorTo(boolean autoRetrieve, int autoUpdate, int autoDelete, boolean proxy)
    {
        ClassDescriptor cld = broker.getClassDescriptor(MovieImpl.class);
        CollectionDescriptor cod = (CollectionDescriptor) cld.getCollectionDescriptors().get(0);
        cod.setLazy(proxy);
        cod.setCascadeRetrieve(autoRetrieve);
        cod.setCascadingStore(autoUpdate);
        cod.setCascadingDelete(autoDelete);
    }
View Full Code Here

Examples of org.blueoxygen.aconix.entity.CollectionDescriptor

  public String AddOrdered(){
   
    LogInformation logInfo;
    if("".equals(getId())){
      logInfo = new LogInformation();
      collectionDescriptor = new CollectionDescriptor();
      logInfo.setCreateBy(sess.getCurrentUser().getId());
      logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
    }
    else {
      collectionDescriptor = (CollectionDescriptor) getManager().getById(CollectionDescriptor.class, getId());
View Full Code Here

Examples of org.jbpm.pvm.internal.wire.descriptor.CollectionDescriptor

  public AbstractCollectionBinding(String tagName) {
    super(tagName);
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    CollectionDescriptor descriptor = createDescriptor();
   
    String className = XmlUtil.attribute(element,"class");
   
    // verify if the given classname is specified and implements the collection interface
    if (verify(className, getCollectionInterface(), parse, parser)) {
      descriptor.setClassName(className);
    }
   
    Boolean isSynchronized = XmlUtil.attributeBoolean(element, "synchronized", false, parse);
    if (isSynchronized!=null) {
      descriptor.setSynchronized(isSynchronized.booleanValue());
    }
   
    List<Descriptor> valueDescriptors = new ArrayList<Descriptor>();
    List<Element> elements = XmlUtil.elements(element);
    for (Element valueElement: elements) {
      Descriptor valueDescriptor = (Descriptor) parser.parseElement(valueElement, parse, WireParser.CATEGORY_DESCRIPTOR);
      if (valueDescriptor!=null) {
        valueDescriptors.add(valueDescriptor);
      }
    }
    descriptor.setValueDescriptors(valueDescriptors);
    return descriptor;
  }
View Full Code Here

Examples of org.jbpm.wire.descriptor.CollectionDescriptor

import org.w3c.dom.Element;

public abstract class AbstractCollectionBinding implements Binding {

  public Object parse(Element element, Parse parse, Parser parser) {
    CollectionDescriptor descriptor = createDescriptor();
   
    String className = XmlUtil.attribute(element,"class");
   
    // verify if the given classname is specified and implements the collection interface
    if (verify(className, getCollectionInterface(), parse, parser)) {
      descriptor.setClassName(className);
    }
   
    String synchronizedText = XmlUtil.attribute(element, "synchronized");
    if (synchronizedText!=null) {
      Boolean isSynchronized = XmlUtil.booleanEquals(synchronizedText, Boolean.FALSE);
      descriptor.setSynchronized(isSynchronized);
    }
   
    List<Descriptor> valueDescriptors = new ArrayList<Descriptor>();
    List<Element> elements = XmlUtil.elements(element);
    if (elements!=null) {
      for (Element valueElement: elements) {
        Descriptor valueDescriptor = (Descriptor) parser.parseElement(valueElement, parse, WireParser.CATEGORY_DESCRIPTOR);
        if (valueDescriptor!=null) {
          valueDescriptors.add(valueDescriptor);
        }
      }
    }
    descriptor.setValueDescriptors(valueDescriptors);
    return descriptor;
  }
View Full Code Here

Examples of org.openbp.common.generic.propertybrowser.CollectionDescriptor

    {
      // Doesn't matter if we can't find a create method
    }

    // Try to instantiate a new object using the default constructor
    CollectionDescriptor cd = getCollectionDescriptor();
    Class elementClass = cd.getSafeTypeClass();

    if (elementClass == null && list != null && list.size() > 0)
    {
      // If we don't have class info, try to guess from the list contents
      Object element = list.get(0);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.