Package com.sun.jdo.api.persistence.model.jdo

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


  {
    // 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

     */
    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

                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

  {
    // 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

  {
    // 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

                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

     */
    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

Related Classes of com.sun.jdo.api.persistence.model.jdo.PersistenceClassElement

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.