Examples of identifier()


Examples of org.eigenbase.sql.util.SqlBuilder.identifier()

                FemViewColumn viewColumn = columnList.get(k);
                if (k > 0) {
                    buf.append(", ");
                }
                if (targetType == null) {
                    buf.identifier(field.getName());
                } else {
                    buf.append(" CAST(");
                    buf.identifier(field.getName());
                    buf.append(" AS ");
                    buf.append(targetType);
View Full Code Here

Examples of org.eigenbase.sql.util.SqlBuilder.identifier()

                }
                if (targetType == null) {
                    buf.identifier(field.getName());
                } else {
                    buf.append(" CAST(");
                    buf.identifier(field.getName());
                    buf.append(" AS ");
                    buf.append(targetType);
                    buf.append(")");
                }
                buf.append(" AS ");
View Full Code Here

Examples of org.eigenbase.sql.util.SqlBuilder.identifier()

                    buf.append(" AS ");
                    buf.append(targetType);
                    buf.append(")");
                }
                buf.append(" AS ");
                buf.identifier(viewColumn.getName());
                k++;
            }
            buf.append(" FROM (").append(analyzedSql.canonicalString).append(
                ")");
View Full Code Here

Examples of org.opengis.annotation.UML.identifier()

     */
    public static String getStandardName(final Class<?> type) {
        if (type != null) {
            final UML uml = type.getAnnotation(UML.class);
            if (uml != null) {
                final String id = uml.identifier();
                if (id != null && !id.isEmpty()) {
                    /*
                     * Workaround: I though that annotation strings were interned like any other constants,
                     * but it does not seem to be the case as of JDK7.  To verify if this explicit call to
                     * String.intern() is still needed in a future JDK release, see the workaround comment
View Full Code Here

Examples of org.opengis.annotation.UML.identifier()

            if (a1 != null) {
                if (a2 == null) return +1;   // Sort annotated elements first.
                c = order(a1) - order(a2);   // Mandatory elements must be first.
                if (c == 0) {
                    // Fallback on alphabetical order.
                    c = a1.identifier().compareToIgnoreCase(a2.identifier());
                }
                return c;
            } else if (a2 != null) {
                return -1; // Sort annotated elements first.
            }
View Full Code Here

Examples of org.opengis.annotation.UML.identifier()

             */
            final XmlRootElement root = impl.getAnnotation(XmlRootElement.class);
            assertNotNull("Missing @XmlRootElement annotation.", root);
            final UML uml = type.getAnnotation(UML.class);
            if (uml != null) {
                assertEquals("Wrong @XmlRootElement.name().", uml.identifier(), root.name());
            }
            /*
             * Check that the namespace is the expected one (according subclass)
             * and is not redundant with the package @XmlSchema annotation.
             */
 
View Full Code Here

Examples of org.opengis.annotation.UML.identifier()

                 * 'testInterfaceAnnotations()' method, but we don't require the UML to
                 * be non-null here since this is not the job of this test method. This
                 * is because subclasses may choose to override the above test method.
                 */
                if (uml != null) {
                    assertEquals("Wrong @XmlElement.name().", uml.identifier(), element.name());
                    assertEquals("Wrong @XmlElement.required().", uml.obligation() == Obligation.MANDATORY, element.required());
                }
                /*
                 * Check that the namespace is the expected one (according subclass)
                 * and is not redundant with the package @XmlSchema annotation.
View Full Code Here

Examples of org.opengis.annotation.UML.identifier()

             */
            if (element != null) {
                assertFalse("Expected @XmlElementRef.", wrapper.isInherited);
                final UML uml = type.getAnnotation(UML.class);
                if (uml != null) { // 'assertNotNull' is 'testInterfaceAnnotations()' job.
                    assertEquals("Wrong @XmlElement.", uml.identifier(), element.name());
                }
                final String namespace = assertExpectedNamespace(element.namespace(), wrapper.type, uml);
                if (!CodeList.class.isAssignableFrom(type)) {
                    final String expected = getNamespace(getImplementation(type));
                    if (expected != null) { // 'assertNotNull' is 'testImplementationAnnotations()' job.
View Full Code Here

Examples of org.opengis.annotation.UML.identifier()

            final int base = prefix(name).length();
            addMapping(name, index);
            addMappingWithLowerCase(names[i] = toPropertyName(name, base), index);
            final UML annotation = getter.getAnnotation(UML.class);
            if (annotation != null) {
                addMappingWithLowerCase(annotation.identifier().intern(), index);
            }
            /*
             * Now try to infer the setter from the getter. We replace the "get" prefix by
             * "set" and look for a parameter of the same type than the getter return type.
             */
 
View Full Code Here

Examples of org.opengis.annotation.UML.identifier()

                         * Workaround here: I though that annotation strings were interned like any other
                         * constants, but it doesn't seem to be the case as of JDK7. To check if a future
                         * JDK release still needs this explicit call to String.intern(), try to remove
                         * the ".intern()" part and run the NameMapTest.testStringIntern() method.
                         */
                        return uml.identifier().intern();
                    }
                    // Fallthrough
                }
                case JAVABEANS_PROPERTY: {
                    return names[index];
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.