final String getConnectionDescription ( ) { if ( datasource != null ) { return name ; } String description = connectionString ; int index = connectionString != null ? connectionString . indexOf ( ' ' ) : 0 ; if ( index > 0 ) { description = connectionString . substring ( 0 , index ) ; } if ( ! Strings . isNullOrEmpty ( user ) ) { return user + "@" + description ; } else { return description ; } }
Gets a description of the database connection .