@ Override public Object find ( Class entityClass , Object rowId ) { EntityMetadata metadata = KunderaMetadataManager . getEntityMetadata ( kunderaMetadata , entityClass ) ; StringBuilder builder = createSelectQuery ( rowId , metadata , metadata . getTableName ( ) ) ; ResultSet rSet = this . execute ( builder . toString ( ) , null ) ; List results = iterateAndReturn ( rSet , metadata ) ; return results . isEmpty ( ) ? null : results . get ( 0 ) ; }
Finds an entity from database .