Examples of AbstractClassMetaData


Examples of org.jpox.metadata.AbstractClassMetaData

     */
    protected void prepareDatastoreMapping(ClassLoaderResolver clr)
    {
        // Either one end of a 1-1 relation, or the N end of a N-1
        MappedStoreManager storeMgr = datastoreContainer.getStoreManager();
        AbstractClassMetaData refCmd = storeMgr.getOMFContext().getMetaDataManager().getMetaDataForClass(fmd.getType(), clr);
        JavaTypeMapping referenceMapping = null;
        if (refCmd.getInheritanceMetaData().getStrategyValue() == InheritanceStrategy.SUBCLASS_TABLE)
        {
            // Find the actual tables storing the other end (can be multiple subclasses)
            AbstractClassMetaData[] cmds = storeMgr.getClassesManagingTableForClass(refCmd, clr);
            if (cmds != null && cmds.length > 0)
            {
View Full Code Here

Examples of org.jpox.metadata.AbstractClassMetaData

    {
        boolean hasDatastoreAttributedPrimaryKeyValues = false;
        if (this.fmd != null)
        {
            // Object is associated to a field (i.e not a join table)
            AbstractClassMetaData acmd = mdm.getMetaDataForClass(this.fmd.getType(), clr);
            if (acmd.getIdentityType() == IdentityType.APPLICATION)
            {
                for (int i=0; i<acmd.getPKMemberPositions().length; i++)
                {
                    IdentityStrategy strategy =
                        acmd.getMetaDataForManagedMemberAtAbsolutePosition(acmd.getPKMemberPositions()[i]).getValueStrategy();
                    if (strategy != null)
                    {
                        //if strategy is null, then it's user attributed value
                        hasDatastoreAttributedPrimaryKeyValues |= srm.isStrategyDatastoreAttributed(strategy, false);
                    }
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.