Package org.objectweb.speedo.naming.api

Examples of org.objectweb.speedo.naming.api.NamingManager


    private void visitIdentityColumn(SpeedoClass sc) throws SpeedoException {
        if (sc.identity.columns != null || sc.getPKFields().size() > 0) {
            return;
        }
        //no pk fields and no column defined in sc.identity
        NamingManager nm = scp.nmf.getNamingManager(sc);
        SpeedoColumn[] cols = nm.getDefaultColumn(sc);
        if (cols == null) {
            throw new SpeedoException("no identity mapping for the class '"
                    + sc.getFQName() + "'.");
        }
        sc.identity.setColumns(Arrays.asList(cols));
View Full Code Here


        "Impossible to get the PNamingContext of the class " + className
        + ": Specified PNameManager class is not valid: " + hints);
    PNameManager pnm = (PNameManager) pnamingContexts.get(className);
    if (pnm != null && (hints.indexOf(NamingManagerHelper.POLYMORPHIC_PNC) == -1))
      return pnm;
    NamingManager nm = nmf.getNamingManager(hints, classLoader);
    if (nm.supportPNamingcontext()) {
      pnm = nm.getPNamingContext(className, hints, classLoader,
        mappingStructuresRule, binders, pnamingContexts,
        mapper.getMetaInfoManager(), pcm);
    } else {
      pnm = findPBinder(className, classLoader, hints);
    }
View Full Code Here

TOP

Related Classes of org.objectweb.speedo.naming.api.NamingManager

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.