private String getDatabaseInfoDatabaseName(String className)
    {
        String databaseName = className.substring(0, className.length() - 1 - DatabaseInfo.DATABASE_INFO_FILE.length());
        databaseName = databaseName.substring(databaseName.lastIndexOf('.') + 1);
        if (databaseName.endsWith(BaseDatabase.SHARED_SUFFIX))
            databaseName = databaseName.substring(0, databaseName.length() - BaseDatabase.SHARED_SUFFIX.length());
        if (databaseName.endsWith(BaseDatabase.USER_SUFFIX))
            databaseName = databaseName.substring(0, databaseName.length() - BaseDatabase.USER_SUFFIX.length());
        return databaseName;
    }
private String getDatabaseInfoDatabaseName ( String className ) { String databaseName = className . substring ( 0 , className . length ( ) - 1 - DatabaseInfo . DATABASE_INFO_FILE . length ( ) ) ; databaseName = databaseName . substring ( databaseName . lastIndexOf ( '.' ) + 1 ) ; if ( databaseName . endsWith ( BaseDatabase . SHARED_SUFFIX ) ) databaseName = databaseName . substring ( 0 , databaseName . length ( ) - BaseDatabase . SHARED_SUFFIX . length ( ) ) ; if ( databaseName . endsWith ( BaseDatabase . USER_SUFFIX ) ) databaseName = databaseName . substring ( 0 , databaseName . length ( ) - BaseDatabase . USER_SUFFIX . length ( ) ) ; return databaseName ; }
GetDatabaseInfoDatabaseName Method.