congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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 post requests using okhttp
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Menu (java.awt)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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