Package org.apache.derby.iapi.types

Examples of org.apache.derby.iapi.types.DataTypeDescriptor


*
* Parse the target type of an XMLSERIALIZE operation.
*
*/
  final public DataTypeDescriptor xmlSerializeTargetType() throws ParseException, StandardException {
        DataTypeDescriptor targetType;
    if ((getToken(1).kind != AS)) {
                {if (true) throw StandardException.newException(
                        SQLState.LANG_XML_KEYWORD_MISSING, "AS",
                        ReuseFactory.getInteger(getToken(1).beginLine),
                        ReuseFactory.getInteger(getToken(1).beginColumn));}
View Full Code Here


/*
* <A NAME="numericFunctionType">numericFunctionType</A>
*/
  final public DataTypeDescriptor numericFunctionType() throws ParseException, StandardException {
        DataTypeDescriptor dts;
    if (jj_2_32(1)) {
      dts = doubleType();
                {if (true) return dts;}
    } else {
      switch (jj_nt.kind) {
View Full Code Here

                {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  final public ValueNode castSpecification() throws ParseException, StandardException {
        DataTypeDescriptor dts;
        ValueNode                treeTop;
        ValueNode                value;
        int                              charType;
        int                              length = -1;
    jj_consume_token(CAST);
    jj_consume_token(LEFT_PAREN);
    value = castOperand();
    jj_consume_token(AS);
    dts = dataTypeCast();
    jj_consume_token(RIGHT_PAREN);
                treeTop = (ValueNode) nodeFactory.getNode(
                                                                        C_NodeTypes.CAST_NODE,
                                                                        value,
                                                                        dts,
                                                                        getContextManager());

                /* We need to generate a SQL->Java conversion tree above us if
     * the dataTypeCast is a user type.
     */
                if (dts.getTypeId().userType())
                {
                        treeTop = (ValueNode) nodeFactory.getNode(
                                                        C_NodeTypes.JAVA_TO_SQL_VALUE_NODE,
                                                        nodeFactory.getNode(
                                                                                        C_NodeTypes.SQL_TO_JAVA_VALUE_NODE,
View Full Code Here

/*
* <A NAME="Definition">procedureParameterDefinition</A>
*/
  final public void procedureParameterDefinition(Vector[] list) throws ParseException, StandardException {
        DataTypeDescriptor      typeDescriptor;
        String                          parameterName;
        Integer                         inout;
    inout = inoutParameter();
    parameterName = identifier(Limits.MAX_IDENTIFIER_LENGTH, true);
    typeDescriptor = dataTypeDDL();
View Full Code Here

/*
* <A NAME="Definition">functionParameterDefinition</A>
*/
  final public void functionParameterDefinition(Vector[] list) throws ParseException, StandardException {
        DataTypeDescriptor      typeDescriptor;
        String                          parameterName;
        Integer                         inout;
    parameterName = identifier(Limits.MAX_IDENTIFIER_LENGTH, true);
    typeDescriptor = dataTypeDDL();
                list[0].addElement(parameterName);
View Full Code Here

                if (parameterList != null && parameterList.size() > 0)
                {
                        setUpAndLinkParameters();
                        // set the type of parameter node, it should be a varchar max Limits.MAX_IDENTIFIER_LENGTH - non nullable
                        ParameterNode p = (ParameterNode)parameterList.elementAt(0);
                        p.setType(new DataTypeDescriptor(TypeId.getBuiltInTypeId(Types.VARCHAR), false, Limits.MAX_IDENTIFIER_LENGTH));
                }
                {if (true) return setSchema;}
    throw new Error("Missing return statement in function");
  }
View Full Code Here

}
*/
  final public char alterTableAction(TableElementList tableElementList, int[] changeType, int[] behavior, boolean[] sequential) throws ParseException, StandardException {
        char                            lockGranularity = '\0';
        TableElementNode        tableElement;
        DataTypeDescriptor      typeDescriptor;
        Token                           tok = null;
        String                          columnName;
        long[]                          autoIncrementInfo = new long[4];
    switch (jj_nt.kind) {
    case ADD:
View Full Code Here

  final public TableElementNode columnAlterClause(String columnName) throws ParseException, StandardException {
        ValueNode       defaultNode;
        long[]                          autoIncrementInfo = new long[4];
        long                            autoIncrementIncrement = 1;
        long                            autoIncrementRestartWith = 1;
        DataTypeDescriptor      typeDescriptor = null;
    if (getToken(2).kind == DATA) {
      jj_consume_token(SET);
      jj_consume_token(DATA);
      jj_consume_token(TYPE);
      typeDescriptor = dataTypeDDL();
View Full Code Here

/*
* <A NAME="parameterTypeList">parameterTypeList</A>
*/
  final public List parameterTypeList() throws ParseException, StandardException {
    ArrayList list = new ArrayList();
    DataTypeDescriptor dtd;
    if (jj_2_47(1)) {
      dtd = dataTypeCommon();
            list.add( dtd);
      label_41:
      while (true) {
View Full Code Here

        }

        private DataTypeDescriptor getDataTypeServices(int type, int precision, int scale,
                        int length)
        {
                return new DataTypeDescriptor(
                                        TypeId.getBuiltInTypeId(type),
                                        precision,
                                        scale,
                                        true, /* assume nullable for now, change it if not nullable */
                                        length
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.types.DataTypeDescriptor

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.