Example usage for org.hibernate.internal.util.collections ArrayHelper toStringArray

List of usage examples for org.hibernate.internal.util.collections ArrayHelper toStringArray

Introduction

In this page you can find the example usage for org.hibernate.internal.util.collections ArrayHelper toStringArray.

Prototype

public static String[] toStringArray(Collection coll) 

Source Link

Usage

From source file:org.exoplatform.commons.notification.stat.ThreadLocalStatisticsImpl.java

License:Open Source License

@Override
public String[] getQueries() {
    return ArrayHelper.toStringArray(queryStatistics.keySet());
}

From source file:org.exoplatform.commons.notification.stat.ThreadLocalStatisticsImpl.java

License:Open Source License

@Override
public String[] getPluginNames() {
    return ArrayHelper.toStringArray(pluginStatistics.keySet());
}

From source file:org.n52.sos.ds.datasource.CustomConfiguration.java

License:Open Source License

/**
 * Based on/*  w ww.j a  v a 2 s. c o m*/
 * {@link org.hibernate.cfg.Configuration#generateDropSchemaScript(Dialect)}
 * . Rewritten to only create drop commands for existing tables/sequences.
 * 
 * 
 * @param d
 * @param m
 * 
 * @return SQL script to drop schema as String array
 * 
 * @throws HibernateException
 */
public String[] generateDropSchemaScript(final Dialect d, final DatabaseMetadata m) throws HibernateException {
    secondPassCompile();
    final String c = getProperties().getProperty(Environment.DEFAULT_CATALOG);
    final String s = getProperties().getProperty(Environment.DEFAULT_SCHEMA);
    final List<String> script = new LinkedList<String>();
    script.addAll(generateAuxiliaryDatabaseObjectDropScript(d, c, s));
    if (d.dropConstraints()) {
        script.addAll(generateConstraintDropScript(d, c, s, m));
    }
    script.addAll(generateTableDropScript(d, c, s, m));
    script.addAll(generateIdentifierGeneratorDropScript(d, c, s, m));
    return ArrayHelper.toStringArray(script);
}