Bug 154000 Enrichment of ODA consumer helper
Provide additional services in the oda.consumer component to include more common behavior that an ODA consumer application would need. For example, to handle different capabilities and behavior of individual ODA drivers.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/odaconsumer/Driver.java
private String getDefaultLogFilenamePrefix( String prefix )
    {
        if( isNotEmpty( prefix ) )
            return prefix;	
        return m_dataSourceDriverId;
    }
    
    /*
     * Returns the driver name as the default relative folder name if 
     * the given log directory is not specified
     */
    private String getDefaultLogDirectory( String logDir )
    {
        if( isNotEmpty( logDir ) )
            return logDir;  
        return m_dataSourceDriverId;
    }
 
    private boolean isNullOrEmpty( String value )
    {
        return ( value == null || value.length() == 0 );
    }
    
    
    private boolean isNotEmpty( String value )
    {
        return ! isNullOrEmpty( value );
    }
}