Examples of Collation


Examples of org.eclipse.sapphire.Collation

    private FunctionResult ignoreCaseDifferencesFunctionResult;
   
    @Override
    protected void initCollationService()
    {
        final Collation annotation = context( PropertyDef.class ).getAnnotation( Collation.class );
        Function ignoreCaseDifferencesFunction;
       
        try
        {
            ignoreCaseDifferencesFunction = ExpressionLanguageParser.parse( annotation.ignoreCaseDifferences() );
            ignoreCaseDifferencesFunction = FailSafeFunction.create( ignoreCaseDifferencesFunction, Boolean.class, false );
        }
        catch( Exception e )
        {
            Sapphire.service( LoggingService.class ).log( e );
View Full Code Here

Examples of org.eclipse.sapphire.Collation

        {
            final ValueProperty property = context.find( ValueProperty.class );
           
            if( property != null )
            {
                final Collation collation = property.getAnnotation( Collation.class );
               
                if( collation != null )
                {
                    return collation.global() ||
                           collation.ignoreCaseDifferences().equalsIgnoreCase( "true" ) ||
                           collation.ignoreCaseDifferences().equalsIgnoreCase( "false" );
                }
            }
           
            return false;
        }
View Full Code Here

Examples of org.eclipse.sapphire.Collation

        {
            final ValueProperty property = context.find( ValueProperty.class );
           
            if( property != null )
            {
                final Collation collation = property.getAnnotation( Collation.class );
               
                if( collation != null )
                {
                    return ! collation.global() &&
                           ! collation.ignoreCaseDifferences().equalsIgnoreCase( "true" ) &&
                           ! collation.ignoreCaseDifferences().equalsIgnoreCase( "false" );
                }
            }
           
            return false;
        }
View Full Code Here

Examples of org.hsqldb.types.Collation

        }

        schemaName = sourceName.schema == null ? null
                                               : sourceName.schema.name;

        Collation source = database.schemaManager.getCollation(session,
            sourceName.name, schemaName);
        Collation  collation = new Collation(name, source, charset, padSpace);
        String     sql            = getLastPart();
        Object[]   args           = new Object[]{ collation };
        HsqlName[] writeLockNames = database.schemaManager.catalogNameArray;

        return new StatementSchema(sql, StatementTypes.CREATE_COLLATION, args,
View Full Code Here

Examples of org.hsqldb.types.Collation

        final int pad_attribute     = 3;

        //
        // Intermediate holders
        Iterator  collations;
        Collation collation;
        String    collationName;
        String    collationSchema;
        String    padAttribute = "PAD SPACE";
        Object[]  row;

        collations = database.schemaManager.databaseObjectIterator(
            SchemaObject.COLLATION);

        while (collations.hasNext()) {
            row                    = t.getEmptyRowData();
            collation              = (Collation) collations.next();
            collationSchema        = collation.getSchemaName().name;
            collationName          = collation.getName().name;
            row[collation_catalog] = database.getCatalogName().name;
            row[collation_schema= collationSchema;
            row[collation_name]    = collationName;
            row[pad_attribute]     = collation.isPadSpace() ? "PAD SPACE"
                                                            : "NO PAD";

            t.insertSys(session, store, row);
        }
View Full Code Here

Examples of org.hsqldb.types.Collation

                } catch (HsqlException e) {
                    return Result.newErrorResult(e, sql);
                }
            }
            case StatementTypes.CREATE_COLLATION : {
                Collation collation = (Collation) arguments[0];

                try {
                    setOrCheckObjectName(session, null, collation.getName(),
                                         true);
                    schemaManager.addSchemaObject(collation);

                    break;
                } catch (HsqlException e) {
View Full Code Here

Examples of org.hsqldb.types.Collation

                    scale  = NumberType.defaultNumericScale;
                }
                break;
        }

        Collation collation = database.collation;
        Charset   charset   = null;

        if (isCharacter && allowCollation) {
            if (token.tokenType == Tokens.CHARACTER) {
                read();
View Full Code Here

Examples of org.hsqldb.types.Collation

                break;
            }
            case Tokens.COLLATE : {
                read();

                Collation collation =
                    database.schemaManager.getCollation(session,
                        token.tokenString, token.namePrefix);

                e.setCollation(collation);
                read();
View Full Code Here

Examples of org.hsqldb.types.Collation

    }

    Expression XreadCharacterValueExpression() {

        Expression e         = XreadCharacterPrimary();
        Collation  collation = readCollateClauseOrNull();

        while (token.tokenType == Tokens.CONCAT) {
            read();

            Expression a = e;
View Full Code Here

Examples of org.hsqldb.types.Collation

    Collation readCollateClauseOrNull() {

        if (token.tokenType == Tokens.COLLATE) {
            read();

            Collation collation = database.schemaManager.getCollation(session,
                token.tokenString, token.namePrefix);

            return collation;
        }
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.