/** * Adds a sub-select to the SELECT clause. A comma is inserted before the element * when the existing SELECT clause is non-empty. * * @param selectQuery Sub-select that provides the value. * @param alias Alias assigned to value. */ public void select( @NotNull final SelectQuery<?> selectQuery, @NotNull final CharSequence alias ) { final StringBuilder sb = getSelectBuilder(); if ( !TextTools.isEmpty( sb ) ) { sb.append( ',' ); } sb.append( '(' ); sb.append( selectQuery.getQueryString() ); sb.append( ") AS " ); sb.append( alias ); addSelectParameters( selectQuery.getQueryParameters() ); }
Map<String, String> parameters = null; if ( TextTools.isEmpty( rawPath ) )
/** * Sets the file to be represented by the component. * * @param file File to be set. * @param thumbnail Thumbnail for the file. */ private void setFile( @Nullable final VirtualFile file, @Nullable final Image thumbnail ) { _file = file; final Locale locale = _explorer.getLocale(); final String description = file == null ? null : file.getDescription( locale ); setToolTipText( TextTools.isEmpty( description ) ? null : description ); if ( ( file != null ) && file.isDirectory() ) { setBorder( BorderFactory.createEmptyBorder( INSETS.top, INSETS.left, INSETS.bottom, INSETS.right ) ); } else { setBorder( BorderFactory.createCompoundBorder( BorderFactory.createEmptyBorder( INSETS.top, INSETS.left, INSETS.bottom, INSETS.right ), BorderFactory.createLineBorder( Explorer.ITEM_BORDER_COLOR ) ) ); } _thumbnailImage = (BufferedImage)thumbnail; }
if ( TextTools.isEmpty( portName ) )
if ( TextTools.isEmpty( searchPhrase ) )
if ( ( text != null ) && !TextTools.isEmpty( text ) )
if ( TextTools.isEmpty( name ) )
if ( TextTools.isEmpty( requestName ) )
String filename = path.getFile(); if ( TextTools.isEmpty( filename ) )
if ( TextTools.isEmpty( text ) )
if ( TextTools.isEmpty( hostname ) )
String filename = path.getFile(); if ( TextTools.isEmpty( filename ) )