Example usage for java.lang String toUpperCase

List of usage examples for java.lang String toUpperCase

Introduction

In this page you can find the example usage for java.lang String toUpperCase.

Prototype

public String toUpperCase() 

Source Link

Document

Converts all of the characters in this String to upper case using the rules of the default locale.

Usage

From source file:com.splicemachine.derby.test.framework.SpliceFunctionWatcher.java

public static void executeDrop(String schemaName, String functionName) {
    LOG.trace("executeDrop");
    Connection connection = null;
    Statement statement = null;/*from   ww  w . j ava  2 s  . c  o  m*/
    try {
        connection = SpliceNetConnection.getConnection();
        statement = connection.createStatement();
        statement.execute("drop function " + schemaName.toUpperCase() + "." + functionName.toUpperCase());
        connection.commit();
    } catch (Exception e) {
        LOG.error("error Dropping " + e.getMessage());
        e.printStackTrace();
        throw new RuntimeException(e);
    } finally {
        DbUtils.closeQuietly(statement);
        DbUtils.commitAndCloseQuietly(connection);
    }
}

From source file:edu.ku.brc.af.ui.forms.persist.AltView.java

public static AltView.CreationMode parseMode(final String modeStr,
        final AltViewIFace.CreationMode defaultMode) {
    if (isNotEmpty(modeStr)) {
        return AltViewIFace.CreationMode.valueOf(modeStr.toUpperCase());
    }/*from  ww w  . j  av  a  2  s.c om*/
    return defaultMode;
}

From source file:io.sqp.transbase.TBTypeRepository.java

public static CustomType getCustomType(String typename) {
    int prefixLength = TB_TYPE_PREFIX.length();
    if (!typename.substring(0, prefixLength).toLowerCase().equals(TB_TYPE_PREFIX)) {
        return CustomType.Unknown;
    }//from w w  w .ja va2s. c  o m
    typename = typename.substring(prefixLength);
    if (typename.toUpperCase().startsWith(TB_DATETIME_NAME)) {
        return CustomType.DateTime;
    }
    return CustomType.Unknown;
}