private void enableTMS ( Object object , ObjectTypeConf conf ) { Iterator < InternalFactHandle > it = ( ( ClassAwareObjectStore ) ep . getObjectStore ( ) ) . iterateFactHandles ( getActualClass ( object ) ) ; while ( it . hasNext ( ) ) { InternalFactHandle handle = it . next ( ) ; if ( handle != null && handle . getEqualityKey ( ) == null ) { EqualityKey key = new EqualityKey ( handle ) ; handle . setEqualityKey ( key ) ; key . setStatus ( EqualityKey . STATED ) ; put ( key ) ; } } // Enable TMS for this type. conf . enableTMS ( ) ; }
TMS will be automatically enabled when the first logical insert happens .