Package com.sun.jdo.api.persistence.enhancer.meta.JDOMetaDataProperties

Examples of com.sun.jdo.api.persistence.enhancer.meta.JDOMetaDataProperties.JDOClass


        for (Iterator i = transientTypePrefixes.iterator(); i.hasNext();) {
            final String typePrefix = (String)i.next();
            if (classPath.startsWith(typePrefix))
                return false;
        }
        JDOClass clazz = getJDOClass (classPath);
        return (clazz != null  ?  clazz.isPersistent ()  false);
    }
View Full Code Here


     */

    public final String getSuperClass (String classname)
    {

        JDOClass clazz = getJDOClass (classname);
        return (clazz != null  ?  clazz.getSuperClassName ()  null);

    //JDOMetaDataPropertyImpl.getSuperClass()
View Full Code Here

     * class.
     */
    public int getFieldNo(String classPath, String fieldName)
        throws JDOMetaDataUserException, JDOMetaDataFatalError
    {
        JDOClass clazz = getJDOClass (classPath);
        return (clazz != null  ?  clazz.getIndexOfField (fieldName:  -1);
    }
View Full Code Here

     * of a class.
     */
    public String [] getManagedFields (String classname)
    {

        JDOClass clazz = getJDOClass (classname);
        return (clazz != null  ?  clazz.getManagedFieldNames ()  new String [] {});

    //JDOMetaDataPropertyImpl.getManagedFields()
View Full Code Here

     *********************************************************************/

    public final String [] getKnownFields (String classname)
    {

        JDOClass clazz = getJDOClass (classname);
        return (clazz != null  ?  clazz.getFields ()  new String [] {});

    //JDOMetaDataPropertyImpl.getKnownFields()
View Full Code Here

     *********************************************************************/

    public final int getClassModifiers (String classname)
    {

        JDOClass clazz = getJDOClass (classname);
        return (clazz != null  ?  clazz.getModifiers ()  0);

    //JDOMetaDataPropertyImpl.getClassModifiers()
View Full Code Here

        //read all classes
        String [] classnames = this.properties.getKnownClassNames ();
        for  (int i = classnames.length - 1; i >= 0; i--)
        {
            JDOClass clazz = getJDOClass (classnames [i])//should be always != null

            //if the class is persistence it cannot be a second class object type
            if  (clazz.isPersistent ()  &&  secondClassObjectTypes.contains (clazz.getName ()))
            {
                throw new JDOMetaDataUserException ("ERROR: Parsing meta data properties: " +
                                                    "The persistent-capable class '" + clazz.getName () +
                                                    "' is second class object type.");
            }
        }

    }  //JDOMetaDataPropertyImpl.readProperties()
View Full Code Here

    private final JDOField getJDOField (String classname,
                                        String fieldname)
    {

        JDOClass clazz = getJDOClass (classname);
        return (clazz != null  ?  clazz.getField (fieldnamenull);

    //JDOMetaDataPropertyImpl.getJDOField()
View Full Code Here

     *********************************************************************/

    public String getKeyClass(String classPath)
        throws JDOMetaDataUserException, JDOMetaDataFatalError
    {
        final JDOClass clazz = getJDOClass(classPath);
        return (clazz != null ? clazz.getOidClassName() : null);
    }
View Full Code Here

    public boolean isKnownNonManagedField(String classPath,
                                          String fieldName,
                                          String fieldSig)
    {
        final JDOClass clazz = getJDOClass(classPath);
        if (clazz == null) {
            return true;
        }
        final JDOField field = clazz.getField(fieldName);
        return (field != null ? field.isKnownTransient() : false);
    }
View Full Code Here

TOP

Related Classes of com.sun.jdo.api.persistence.enhancer.meta.JDOMetaDataProperties.JDOClass

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.