code: 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;
      }
docs: Gets the data type.
  
  @param entityMetadata
  the entity metadata
  @param arg1
  the arg1
  @return the data type
  @throws PropertyAccessException
  the property access exception