Examples of RoutineAliasInfo


Examples of com.akiban.sql.types.RoutineAliasInfo

               
                this.definition = (String)routineElements[INLINE_DEFINITION];
                this.javaClassName = (String)targetObject;
                this.methodName = (String)methodName;

                aliasInfo = new RoutineAliasInfo(this.methodName,
                                                 paramCount,
                                                 names,
                                                 types,
                                                 modes,
                                                 drs,
View Full Code Here

Examples of com.foundationdb.sql.types.RoutineAliasInfo

               
                this.definition = (String)routineElements[INLINE_DEFINITION];
                this.javaClassName = (String)targetObject;
                this.methodName = (String)methodName;

                aliasInfo = new RoutineAliasInfo(this.methodName,
                                                 paramCount,
                                                 names,
                                                 types,
                                                 modes,
                                                 drs,
View Full Code Here

Examples of org.apache.derby.catalog.types.RoutineAliasInfo

            paramCount = 0;
            paramModes = null;
          }
         
          // details[3] = java method
          RoutineAliasInfo ai = new RoutineAliasInfo(details[3],
              paramCount, paramNames,
              pt, paramModes, 0,
              RoutineAliasInfo.PS_JAVA, RoutineAliasInfo.NO_SQL,
              false, rt);
View Full Code Here

Examples of org.apache.derby.catalog.types.RoutineAliasInfo

                arg_modes[i] = JDBC30Translation.PARAMETER_MODE_IN;
            for (int i = 0; i < num_out_param; i++)
                arg_modes[num_in_param + i] = JDBC30Translation.PARAMETER_MODE_OUT;
        }

        RoutineAliasInfo routine_alias_info =
            new RoutineAliasInfo(
                routine_name,                       // name of routine
                num_args,                           // number of params
                arg_names,                          // names of params
                arg_types,                          // types of params
                arg_modes,                          // all "IN" params
View Full Code Here

Examples of org.apache.derby.catalog.types.RoutineAliasInfo

   * should be called only after the procedure has been resolved.
   *
   * @return  SQL allowed by the procedure
   */
  private short getSQLAllowedInProcedure() {
    RoutineAliasInfo routineInfo = ((MethodCallNode)methodCall.getJavaValueNode()).routineInfo;
   
    // If this method is called before the routine has been resolved, routineInfo will be null
    if (SanityManager.DEBUG)
      SanityManager.ASSERT((routineInfo != null), "Failed to get routineInfo");

    return routineInfo.getSQLAllowed();
  }
View Full Code Here

Examples of org.apache.derby.catalog.types.RoutineAliasInfo

        if (calledOnNullInputO == null)
          calledOnNullInput = true;
        else
          calledOnNullInput = calledOnNullInputO.booleanValue();

        aliasInfo = new RoutineAliasInfo(this.methodName, paramCount, names, types, modes, drs,
            ((Short) routineElements[5]).shortValue()// parameter style
            sqlAllowed, calledOnNullInput, (TypeDescriptor) routineElements[8]);

        implicitCreateSchema = true;
        }
View Full Code Here

Examples of org.apache.derby.catalog.types.RoutineAliasInfo

            if (!sd.isSchemaWithGrantableRoutines())
                throw StandardException.newException(SQLState.AUTH_GRANT_REVOKE_NOT_ALLOWED, rd.name.getFullTableName());
       
            AliasDescriptor proc = null;
            RoutineAliasInfo routineInfo = null;
            java.util.List list = getDataDictionary().getRoutineList(
                sd.getUUID().toString(), rd.name.getTableName(),
                rd.isFunction ? AliasInfo.ALIAS_NAME_SPACE_FUNCTION_AS_CHAR : AliasInfo.ALIAS_NAME_SPACE_PROCEDURE_AS_CHAR
                );

      // Can not grant/revoke permissions from self
      if (grantees.contains(sd.getAuthorizationId()))
        throw StandardException.newException(SQLState.AUTH_GRANT_REVOKE_NOT_ALLOWED,
             rd.name.getFullTableName());

            if( rd.paramTypeList == null)
            {
                // No signature was specified. Make sure that there is exactly one routine with that name.
                if( list.size() > 1)
                    throw StandardException.newException( ( rd.isFunction ? SQLState.LANG_AMBIGUOUS_FUNCTION_NAME
                                                            : SQLState.LANG_AMBIGUOUS_PROCEDURE_NAME),
                                                          rd.name.getFullTableName());
                if( list.size() != 1)
                    throw StandardException.newException(SQLState.LANG_NO_SUCH_METHOD_ALIAS, rd.name.getFullTableName());
                proc = (AliasDescriptor) list.get(0);
            }
            else
            {
                // The full signature was specified
                boolean found = false;
                for (int i = list.size() - 1; (!found) && i >= 0; i--)
                {
                    proc = (AliasDescriptor) list.get(i);

                    routineInfo = (RoutineAliasInfo) proc.getAliasInfo();
                    int parameterCount = routineInfo.getParameterCount();
                    if (parameterCount != rd.paramTypeList.size())
                        continue;
                    TypeDescriptor[] parameterTypes = routineInfo.getParameterTypes();
                    found = true;
                    for( int parmIdx = 0; parmIdx < parameterCount; parmIdx++)
                    {
                        if( ! parameterTypes[parmIdx].equals( rd.paramTypeList.get( parmIdx)))
                        {
View Full Code Here

Examples of org.apache.derby.catalog.types.RoutineAliasInfo

            paramCount = 0;
            paramModes = null;
          }
         
          // details[3] = java method
          RoutineAliasInfo ai = new RoutineAliasInfo(details[3],
              paramCount, paramNames,
              pt, paramModes, 0,
              RoutineAliasInfo.PS_JAVA, RoutineAliasInfo.NO_SQL,
              false, rt);
View Full Code Here

Examples of org.apache.derby.catalog.types.RoutineAliasInfo

                arg_modes[i] = JDBC30Translation.PARAMETER_MODE_IN;
            for (int i = 0; i < num_out_param; i++)
                arg_modes[num_in_param + i] = JDBC30Translation.PARAMETER_MODE_OUT;
        }

        RoutineAliasInfo routine_alias_info =
            new RoutineAliasInfo(
                routine_name,                       // name of routine
                num_args,                           // number of params
                arg_names,                          // names of params
                arg_types,                          // types of params
                arg_modes,                          // all "IN" params
View Full Code Here

Examples of org.apache.derby.catalog.types.RoutineAliasInfo

        sd.getUUID().toString(), aliasName, aliasType);
      for (int i = list.size() - 1; i >= 0; i--) {

        AliasDescriptor proc = (AliasDescriptor) list.get(i);

        RoutineAliasInfo procedureInfo = (RoutineAliasInfo) proc.getAliasInfo();
        int parameterCount = procedureInfo.getParameterCount();
        if (parameterCount != ((RoutineAliasInfo) aliasInfo).getParameterCount())
          continue;

        // procedure duplicate checking is simple, only
        // one procedure with a given number of parameters.
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.