private Object [ ] getDataType ( EntityMetadata entityMetadata , Object ... arg1 ) throws PropertyAccessException { Field idField = ( Field ) entityMetadata . getIdAttribute ( ) . getJavaMember ( ) ; PropertyAccessor < ? > accessor = PropertyAccessorFactory . getPropertyAccessor ( idField ) ; Object [ ] pKeys = new Object [ arg1 . length ] ; int cnt = 0 ; for ( Object r : arg1 ) { pKeys [ cnt ++ ] = accessor . fromString ( idField . getClass ( ) , r . toString ( ) ) ; } return pKeys ; }
Gets the data type .