Package javax.jdo

Examples of javax.jdo.JDOUnsupportedOptionException


  return optionsFlags.get(RETAIN_VALUES);
    }

    public void setOptimistic(boolean optimistic) {
  if (optimistic) {
      throw new JDOUnsupportedOptionException();
  }
  optionsFlags.set(OPTIMISTIC, optimistic);
    }
View Full Code Here


  return optionsFlags.get(OPTIMISTIC);
    }

    public void setRestoreValues(boolean restoreValues) {
  if (restoreValues) {
      throw new JDOUnsupportedOptionException();
  }
  optionsFlags.set(RESTORE_VALUES, restoreValues);
    }
View Full Code Here

     */
    public void setConnectionFactory(Object connectionFactory) {
    if (started) {
      throw new JDOUserException("It is forbidden to modify property after a getPersistenceManager() call");
    }
        throw new JDOUnsupportedOptionException("Cannot set a Connection Factory, use <> instead");
    }
View Full Code Here

     */
    public void setConnectionFactory2(Object connectionfactory) {
    if (started) {
      throw new JDOUserException("It is forbidden to modify property after a getPersistenceManager() call");
    }
        throw new JDOUnsupportedOptionException(
                "Cannot set a second Connection Factory");
    }
View Full Code Here

          }
                } while (tc.next());
            }
        } catch (MedorException me) {
            values = null;
            throw new JDOUnsupportedOptionException(
                    "Persistence manager problem to get result", new Exception[]{me});
        }
        return values;
    }
View Full Code Here

    public void jdoReplaceFlags() {
        throw new JDOUnsupportedOptionException();
    }

    public PersistenceCapable jdoNewInstance(StateManager sm) {
        throw new JDOUnsupportedOptionException();
    }
View Full Code Here

    public PersistenceCapable jdoNewInstance(StateManager sm) {
        throw new JDOUnsupportedOptionException();
    }

    public PersistenceCapable jdoNewInstance(StateManager sm, Object oid) {
        throw new JDOUnsupportedOptionException();
    }
View Full Code Here

    /**
     * Ensures that this collection contains the specified element
     * (optional operation).
     */
    public boolean add(Object o) {
        throw new JDOUnsupportedOptionException(
                "This method is not supported in this implementation");
    }
View Full Code Here

    public PersistenceCapable jdoNewInstance(StateManager sm, Object oid) {
        throw new JDOUnsupportedOptionException();
    }

    public Object jdoNewObjectIdInstance(Object arg0) {
        throw new JDOUnsupportedOptionException();
    }
View Full Code Here

    public Object jdoNewObjectIdInstance(Object arg0) {
        throw new JDOUnsupportedOptionException();
    }
    public Object jdoNewObjectIdInstance() {
        throw new JDOUnsupportedOptionException();
    }
View Full Code Here

TOP

Related Classes of javax.jdo.JDOUnsupportedOptionException

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.