Examples of PersistenceClassElement


Examples of com.sun.jdo.api.persistence.model.jdo.PersistenceClassElement

  {
    // even though o == null and n == null will signify a change, that
    // is consistent with PropertyChangeSupport's behavior and is
    // necessary for this to work
    boolean noChange = ((o != null) && (n != null) && o.equals(n));
    PersistenceClassElement classElement =
      ((PersistenceMemberElement)_element).getDeclaringClass();

    super.firePropertyChange(name, o, n);

    if ((classElement != null) && !noChange)
      classElement.setModified(true);
  }
View Full Code Here

Examples of com.sun.jdo.api.persistence.model.jdo.PersistenceClassElement

  {
    // even though o == null and n == null will signify a change, that
    // is consistent with PropertyChangeSupport's behavior and is
    // necessary for this to work
    boolean noChange = ((o != null) && (n != null) && o.equals(n));
    PersistenceClassElement classElement =
      ((PersistenceMemberElement)_element).getDeclaringClass();

    super.fireVetoableChange(name, o, n);

    if ((classElement != null) && !noChange)
    {
      ((PersistenceElementImpl)classElement.getImpl()).
        fireVetoableChange(PROP_MODIFIED, Boolean.FALSE, Boolean.TRUE);
    }
  }
View Full Code Here

Examples of com.sun.jdo.api.persistence.model.jdo.PersistenceClassElement

     */
    private final String[] getPersistentFields(String classPath)
        throws JDOMetaDataUserException, JDOMetaDataFatalError
    {
        final String className = pathToName(classPath);
        final PersistenceClassElement pce
            = model.getPersistenceClass(className);
        if (pce == null)
            return new String[]{};

        // exctract field names into result array
        final PersistenceFieldElement[] pfes = pce.getFields();
        final int nofFields = (pfes != null  ?  pfes.length  :  0);
        final String[] names = new String[nofFields];
        for (int i = 0; i < nofFields; i++) {
            final PersistenceFieldElement pfe = pfes[i];
            names[i] = pfe.getName();
View Full Code Here

Examples of com.sun.jdo.api.persistence.model.jdo.PersistenceClassElement

                if (mapClassElt != null) {
                    String className = mapClassElt.getName();
                    String ejbName = nameMapper.getEjbNameForPersistenceClass(
                        className);

                    PersistenceClassElement pce = (PersistenceClassElement)
                            model.getPersistenceClass(className);
                    PersistenceFieldElement[] allFields = pce.getFields();
                    if (allFields != null) {
                        List generatedFieldList = new ArrayList();

                        // In order to avoid concurrentmod exception,
                        // loop through all persistence fields to put generated
View Full Code Here

Examples of com.sun.jdo.api.persistence.model.jdo.PersistenceClassElement

  {
    // even though o == null and n == null will signify a change, that
    // is consistent with PropertyChangeSupport's behavior and is
    // necessary for this to work
    boolean noChange = ((o != null) && (n != null) && o.equals(n));
    PersistenceClassElement classElement =
      ((PersistenceMemberElement)_element).getDeclaringClass();

    super.firePropertyChange(name, o, n);

    if ((classElement != null) && !noChange)
      classElement.setModified(true);
  }
View Full Code Here

Examples of com.sun.jdo.api.persistence.model.jdo.PersistenceClassElement

  {
    // even though o == null and n == null will signify a change, that
    // is consistent with PropertyChangeSupport's behavior and is
    // necessary for this to work
    boolean noChange = ((o != null) && (n != null) && o.equals(n));
    PersistenceClassElement classElement =
      ((PersistenceMemberElement)_element).getDeclaringClass();

    super.fireVetoableChange(name, o, n);

    if ((classElement != null) && !noChange)
    {
      ((PersistenceElementImpl)classElement.getImpl()).
        fireVetoableChange(PROP_MODIFIED, Boolean.FALSE, Boolean.TRUE);
    }
  }
View Full Code Here

Examples of com.sun.jdo.api.persistence.model.jdo.PersistenceClassElement

                if (mapClassElt != null) {
                    String className = mapClassElt.getName();
                    String ejbName = nameMapper.getEjbNameForPersistenceClass(
                        className);

                    PersistenceClassElement pce = (PersistenceClassElement)
                            model.getPersistenceClass(className);
                    PersistenceFieldElement[] allFields = pce.getFields();
                    if (allFields != null) {
                        List generatedFieldList = new ArrayList();

                        // In order to avoid concurrentmod exception,
                        // loop through all persistence fields to put generated
View Full Code Here

Examples of com.sun.jdo.api.persistence.model.jdo.PersistenceClassElement

     */
    private final String[] getPersistentFields(String classPath)
        throws JDOMetaDataUserException, JDOMetaDataFatalError
    {
        final String className = pathToName(classPath);
        final PersistenceClassElement pce
            = model.getPersistenceClass(className);
        if (pce == null)
            return new String[]{};

        // exctract field names into result array
        final PersistenceFieldElement[] pfes = pce.getFields();
        final int nofFields = (pfes != null  ?  pfes.length  :  0);
        final String[] names = new String[nofFields];
        for (int i = 0; i < nofFields; i++) {
            final PersistenceFieldElement pfe = pfes[i];
            names[i] = pfe.getName();
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.