Package org.apache.derby.catalog.types

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


  {
    DataValueDescriptor judge;
    if (judgeUserJDBCTypeId == -1)
      judge = (DataValueDescriptor) new TypeId(judgeTypeFormatId, null).getNull();
    else
      judge = (DataValueDescriptor) new TypeId(judgeTypeFormatId, new UserDefinedTypeIdImpl()).getNull();
     
    DataValueDescriptor minVal = v1;
    if (v2 != null &&
        (minVal.isNull() || judge.lessThan(v2, minVal).equals(true)))
      minVal = v2;
View Full Code Here


  {
    DataValueDescriptor judge;
    if (judgeUserJDBCTypeId == -1)
      judge =  new TypeId(judgeTypeFormatId, null).getNull();
    else
      judge =  new TypeId(judgeTypeFormatId, new UserDefinedTypeIdImpl()).getNull();

    DataValueDescriptor maxVal = v1;
    if (v2 != null &&
        (maxVal.isNull() || judge.greaterThan(v2, maxVal).equals(true)))
      maxVal = v2;
View Full Code Here

        public static TypeId getUserDefinedTypeId(String className, boolean delimitedIdentifier)
            throws StandardException
        {
                return new TypeId(StoredFormatIds.USERDEFINED_TYPE_ID_V3,
                                        new UserDefinedTypeIdImpl(className), delimitedIdentifier
                                        );
        }
View Full Code Here

        throws StandardException
    {
        return new TypeId
            (
             StoredFormatIds.USERDEFINED_TYPE_ID_V3,
             new UserDefinedTypeIdImpl(schemaName, unqualifiedName, className )
             );
    }
View Full Code Here

                return maxScale;
        }

        private void setUserTypeIdInfo()
        {
                UserDefinedTypeIdImpl baseUserTypeId =
                                                        (UserDefinedTypeIdImpl) baseTypeId;
                typePrecedence = USER_PRECEDENCE;
                javaTypeName = baseUserTypeId.getClassName();
        }
View Full Code Here

  {
        if ( getTypeId().getBaseTypeId().isAnsiUDT() )
        {
            if ( !otherType.getBaseTypeId().isAnsiUDT() ) { return false; }
           
            UserDefinedTypeIdImpl thisTypeID = (UserDefinedTypeIdImpl) getTypeId().getBaseTypeId();
            UserDefinedTypeIdImpl thatTypeID = (UserDefinedTypeIdImpl) otherType.getBaseTypeId();
           
            return thisTypeID.getSQLTypeName().equals( thatTypeID.getSQLTypeName() );
        }
       
    /*
    ** We are a non-ANSI user defined type, we are
    ** going to have to let the client find out
View Full Code Here

   */
  public boolean storable(TypeId otherType, ClassFactory cf)
  {
        if ( !otherType.isUserDefinedTypeId() ) { return false; }

        UserDefinedTypeIdImpl thisTypeID = (UserDefinedTypeIdImpl) getTypeId().getBaseTypeId();
        UserDefinedTypeIdImpl thatTypeID = (UserDefinedTypeIdImpl) otherType.getBaseTypeId();

        if ( thisTypeID.isAnsiUDT() != thatTypeID.isAnsiUDT() ) { return false; }

        if ( thisTypeID.isAnsiUDT() )
        {
            return thisTypeID.getSQLTypeName().equals( thatTypeID.getSQLTypeName() );
        }
       
    return cf.getClassInspector().assignableTo(
         otherType.getCorrespondingJavaTypeName(),
         getTypeId().getCorrespondingJavaTypeName());
View Full Code Here

        }

        public static TypeId getUserDefinedTypeId(String className, boolean delimitedIdentifier)
        {
                return new TypeId(StoredFormatIds.USERDEFINED_TYPE_ID_V3,
                                        new UserDefinedTypeIdImpl(className), delimitedIdentifier
                                        );
        }
View Full Code Here

                }
        }

        private void setUserTypeIdInfo()
        {
                UserDefinedTypeIdImpl baseUserTypeId =
                                                        (UserDefinedTypeIdImpl) baseTypeId;
                typePrecedence = USER_PRECEDENCE;
                javaTypeName = baseUserTypeId.getClassName();
        }
View Full Code Here

                                /* Is this type orderable? */

                                // For user java classes we are orderable if we
                                // implement java.lang.Orderable (JDK1.2) or
                                // have a int compareTo(Object) method (JDK1.1 or JDK1.2)
                                UserDefinedTypeIdImpl baseUserTypeId =
                                                                                (UserDefinedTypeIdImpl) baseTypeId;

                                String className = baseUserTypeId.getClassName();

                                try
                                {
                                        Class c = cf.getClassInspector().getClass(className);
                                        orderable = java.lang.Comparable.class.isAssignableFrom(c);
View Full Code Here

TOP

Related Classes of org.apache.derby.catalog.types.UserDefinedTypeIdImpl

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.