Package oracle.binding.meta

Examples of oracle.binding.meta.StructureDefinition


     *
     * @param definitionId Unique ID of the StructureDefinition to look for.
     * @return StructureDefinition or <code>null</code> if none found.
     */
    public StructureDefinition findStructure(final String definitionId) {
        StructureDefinition strDef = getStructure();

        // The root definition, don't need to look any further.
        String name = strDef.getFullName();
        if (definitionId.equals(name)) {
            return strDef;
        }

        final Map<String, Map<String, StructureDefinition>> cache = getNamedStructsCache();
        final Map<String, StructureDefinition> namedStructs = cache.get(this.mFullName);
        StructureDefinition def = namedStructs.get(definitionId);
        return def;
    }
View Full Code Here


        }

        // determine StructureDefinition we should return
        final String beanClassName =
            getDCDefinition().getReturnStructName(getDCDefinition().getStructure(), invokedDef);
        final StructureDefinition structDef = getDCDefinition().findStructure(beanClassName);
        if (structDef == null) {
            throw new IllegalStateException("StructureDefinition " + beanClassName +
                                            " not found in the DataControl Definition: " + getDCDefinition().getName());
        }
View Full Code Here

     * @see StructureDef#getAccessorDefinitions
     */
    private void customizeAccessors(final DefinitionContainer accessors) {
        for (Iterator iterator = accessors.iterator(); iterator.hasNext();) {
            AccessorDefinition accessor = (AccessorDefinition) iterator.next();
            StructureDefinition struct = accessor.getStructure();
            if (struct instanceof StructureDef) {
                customize((StructureDef) struct);
            }
        }
    }
View Full Code Here

        for (Iterator iterator = operations.iterator(); iterator.hasNext();) {
            OperationDefinition operation = (OperationDefinition) iterator.next();
            OperationReturnDefinition returnDef = operation.getOperationReturnType();
            if (returnDef instanceof MethodReturnDef) {
                MethodReturnDef mrd = (MethodReturnDef) returnDef;
                StructureDefinition definition = mrd.getStructure();
                if (definition instanceof StructureDef) {
                    customize((StructureDef) definition);
                }

            }
View Full Code Here

    public void customize(MethodDef method) {
        OperationReturnDefinition operReturn = method.getOperationReturnType();
        if (!(operReturn instanceof MethodReturnDef)) {
            return;
        }
        final StructureDefinition structDef = ((MethodReturnDef) operReturn).getStructure();
        if (structDef instanceof StructureDef) {
            customize((StructureDef) structDef);
            // warn for any customizer that wasn't used
            for (Object cust : unusedCustomizers) {
                logger.warning("unused customizer class {0} with target {1}", new Object[] {
View Full Code Here

TOP

Related Classes of oracle.binding.meta.StructureDefinition

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.