congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ArrayHelper.toStringArray
Code IndexAdd Tabnine to your IDE (free)

How to use
toStringArray
method
in
org.hibernate.internal.util.collections.ArrayHelper

Best Java code snippets using org.hibernate.internal.util.collections.ArrayHelper.toStringArray (Showing top 20 results out of 315)

origin: hibernate/hibernate-orm

@Override
public String[] getSecondLevelCacheRegionNames() {
  return ArrayHelper.toStringArray( legacySecondLevelCacheNames );
}
origin: hibernate/hibernate-orm

@Override
public String[] getAllEntityNames() {
  return ArrayHelper.toStringArray( entityPersisterMap.keySet() );
}
origin: hibernate/hibernate-orm

@Override
public String[] getAllCollectionRoles() {
  return ArrayHelper.toStringArray( collectionPersisterMap.keySet() );
}
origin: hibernate/hibernate-orm

/**
 * This method should only be called for debugging purposes as it regenerates a new array every time.
 */
public String[] getSqlStrings() {
  List<String> sqlStrings = new ArrayList<>();
  for ( int i = 0; i < translators.length; i++ ) {
    sqlStrings.addAll( translators[i].collectSqlStrings() );
  }
  return ArrayHelper.toStringArray( sqlStrings );
}
origin: hibernate/hibernate-orm

@Override
public String[] getQueries() {
  return ArrayHelper.toStringArray( queryStatsMap.keySet() );
}
origin: hibernate/hibernate-orm

private String[] collectFiles() {
  List<String> files = new ArrayList<String>();
  for ( Object fileSet : fileSets ) {
    final FileSet fs = (FileSet) fileSet;
    final DirectoryScanner ds = fs.getDirectoryScanner( getProject() );
    for ( String dsFile : ds.getIncludedFiles() ) {
      File f = new File( dsFile );
      if ( !f.isFile() ) {
        f = new File( ds.getBasedir(), dsFile );
      }
      files.add( f.getAbsolutePath() );
    }
  }
  return ArrayHelper.toStringArray( files );
}
origin: hibernate/hibernate-orm

private String[] getFiles() {
  List<String> files = new LinkedList<String>();
  for ( FileSet fileSet : fileSets ) {
    final DirectoryScanner ds = fileSet.getDirectoryScanner( getProject() );
    final String[] dsFiles = ds.getIncludedFiles();
    for ( String dsFileName : dsFiles ) {
      File f = new File( dsFileName );
      if ( !f.isFile() ) {
        f = new File( ds.getBasedir(), dsFileName );
      }
      files.add( f.getAbsolutePath() );
    }
  }
  return ArrayHelper.toStringArray(files);
}
origin: hibernate/hibernate-orm

private String[] collectFiles() {
  List<String> files = new LinkedList<String>();
  for ( FileSet fileSet : fileSets ) {
    final DirectoryScanner ds = fileSet.getDirectoryScanner( getProject() );
    final String[] dsFiles = ds.getIncludedFiles();
    for ( String dsFileName : dsFiles ) {
      File f = new File( dsFileName );
      if ( !f.isFile() ) {
        f = new File( ds.getBasedir(), dsFileName );
      }
      files.add( f.getAbsolutePath() );
    }
  }
  return ArrayHelper.toStringArray( files );
}
origin: hibernate/hibernate-orm

@Override
public String[] getEntityNames() {
  if ( sessionFactory == null ) {
    return ArrayHelper.toStringArray( entityStatsMap.keySet() );
  }
  else {
    return sessionFactory.getMetamodel().getAllEntityNames();
  }
}
origin: hibernate/hibernate-orm

@Override
public String[] getCollectionRoleNames() {
  if ( sessionFactory == null ) {
    return ArrayHelper.toStringArray( collectionStatsMap.keySet() );
  }
  else {
    return sessionFactory.getMetamodel().getAllCollectionRoles();
  }
}
origin: hibernate/hibernate-orm

@Override
public String[] getNamedParameters() {
  return ArrayHelper.toStringArray( getParameterMetadata().getNamedParameterNames() );
}
origin: hibernate/hibernate-orm

@Override
protected void autoDiscoverTypes(ResultSet rs) {
  try {
    JdbcResultMetadata metadata = new JdbcResultMetadata( getFactory(), rs );
    rowProcessor.prepareForAutoDiscovery( metadata );
    List<String> aliases = new ArrayList<>();
    List<Type> types = new ArrayList<>();
    for ( ResultColumnProcessor resultProcessor : rowProcessor.getColumnProcessors() ) {
      resultProcessor.performDiscovery( metadata, types, aliases );
    }
    validateAliases( aliases );
    resultTypes = ArrayHelper.toTypeArray( types );
    transformerAliases = ArrayHelper.toStringArray( aliases );
  }
  catch (SQLException e) {
    throw new HibernateException( "Exception while trying to autodiscover types.", e );
  }
}
origin: hibernate/hibernate-orm

this.transformerAliases = ArrayHelper.toStringArray( specifiedAliases );
origin: hibernate/hibernate-orm

userAliases = ArrayHelper.toStringArray( userAliasList );
resultTypes = ArrayHelper.toTypeArray( resultTypeList );
includeInResultRow = ArrayHelper.toBooleanArray( includeInResultRowList );
origin: hibernate/hibernate-orm

lazyPropertyNames = ArrayHelper.toStringArray( lazyNames );
lazyPropertyNumbers = ArrayHelper.toIntArray( lazyNumbers );
lazyPropertyTypes = ArrayHelper.toTypeArray( lazyTypes );
  cascades.add( prop.getCascadeStyle() );
subclassColumnClosure = ArrayHelper.toStringArray( columns );
subclassColumnAliasClosure = ArrayHelper.toStringArray( aliases );
subclassColumnLazyClosure = ArrayHelper.toBooleanArray( columnsLazy );
subclassColumnSelectableClosure = ArrayHelper.toBooleanArray( columnSelectables );
subclassColumnReaderTemplateClosure = ArrayHelper.toStringArray( columnReaderTemplates );
subclassFormulaClosure = ArrayHelper.toStringArray( formulas );
subclassFormulaTemplateClosure = ArrayHelper.toStringArray( formulaTemplates );
subclassFormulaAliasClosure = ArrayHelper.toStringArray( formulaAliases );
subclassFormulaLazyClosure = ArrayHelper.toBooleanArray( formulasLazy );
subclassPropertyNameClosure = ArrayHelper.toStringArray( names );
subclassPropertySubclassNameClosure = ArrayHelper.toStringArray( classes );
subclassPropertyTypeClosure = ArrayHelper.toTypeArray( types );
subclassPropertyNullabilityClosure = ArrayHelper.toBooleanArray( propNullables );
origin: hibernate/hibernate-orm

  subclassTables.add( determineTableName( table, jdbcEnvironment ) );
subclassSpaces = ArrayHelper.toStringArray( subclassTables );
  constraintOrderedTableNames = ArrayHelper.toStringArray( tableNames );
  constraintOrderedKeyColumnNames = ArrayHelper.to2DStringArray( keyColumns );
origin: hibernate/hibernate-orm

naturalOrderTableNames = ArrayHelper.toStringArray( tableNames );
naturalOrderTableKeyColumns = ArrayHelper.to2DStringArray( keyColumns );
naturalOrderTableKeyColumnReaders = ArrayHelper.to2DStringArray( keyColumnReaders );
String[] naturalOrderSubclassTableNameClosure = ArrayHelper.toStringArray( subclassTableNames );
String[][] naturalOrderSubclassTableKeyColumnClosure = ArrayHelper.to2DStringArray( keyColumns );
isClassOrSuperclassTable = ArrayHelper.toBooleanArray( isConcretes );
    ArrayHelper.toStringArray( persistentClass.getSynchronizedTables() )
);
origin: hibernate/hibernate-orm

    ArrayHelper.toStringArray( persistentClass.getSynchronizedTables() )
);
subclassTableNameClosure = ArrayHelper.toStringArray( subclassTables );
subclassTableIsLazyClosure = ArrayHelper.toBooleanArray( isLazies );
subclassTableKeyColumnClosure = ArrayHelper.to2DStringArray( joinKeyColumns );
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * Get all executed query strings
 */
public String[] getQueries() {
  return ArrayHelper.toStringArray( queryStatistics.keySet() );
}
origin: org.hibernate/com.springsource.org.hibernate

public String[] getColumnAliases(int loc) {
  List result = new ArrayList( getLength() );
  for ( int i=0; i<getLength(); i++ ) {
    String[] colAliases = getProjection(i).getColumnAliases(loc);
    ArrayHelper.addAll(result, colAliases);
    loc+=colAliases.length;
  }
  return ArrayHelper.toStringArray(result);
}
org.hibernate.internal.util.collectionsArrayHelpertoStringArray

Popular methods of ArrayHelper

  • fillArray
  • countTrue
  • isAllFalse
  • join
  • getBatchSizes
  • getNextBatchSize
  • hash
    calculate the array hash (only the first level)
  • indexOf
  • toIntArray
  • toString
  • addAll
  • countNonNull
  • addAll,
  • countNonNull,
  • isAllNegative,
  • slice,
  • to2DIntArray,
  • to2DStringArray,
  • toBooleanArray,
  • toList,
  • toTypeArray

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setContentView (Activity)
  • startActivity (Activity)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JPanel (javax.swing)
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now