private static String firstFoundTableName ( PersistenceBroker brokerForClass , ClassDescriptor cld ) { String name = null ; if ( ! cld . isInterface ( ) && cld . getFullTableName ( ) != null ) { return cld . getFullTableName ( ) ; } if ( cld . isExtent ( ) ) { Collection extentClasses = cld . getExtentClasses ( ) ; for ( Iterator iterator = extentClasses . iterator ( ) ; iterator . hasNext ( ) ; ) { name = firstFoundTableName ( brokerForClass , brokerForClass . getClassDescriptor ( ( Class ) iterator . next ( ) ) ) ; // System.out.println("## " + cld.getClassNameOfObject()+" - name: "+name); if ( name != null ) break ; } } return name ; }
try to find the first none null table name for the given class - descriptor . If cld has extent classes all of these cld s searched for the first none null table name .