code: @Override
    public <T> long existsObject(String name, T obj) throws CpoException {
      return this.existsObject(name, obj, null);
    }
docs: The CpoAdapter will check to see if this object exists in the datasource.
  <p/>
  <pre>Example:
  <code>
  <p/>
  class SomeObject so = new SomeObject();
  long count = 0;
  class CpoAdapter cpo = null;
  <p/>
  try {
  cpo = new CpoAdapter(new JdbcDataSourceInfo(driver, url, user, password,1,1,false));
  } catch (CpoException ce) {
  // Handle the error
  cpo = null;
  }
  <p/>
  if (cpo!=null) {
  so.setId(1);
  so.setName("SomeName");
  try{
  count = cpo.existsObject("SomeExistCheck",so);
  if (count>0) {
  // object exists
  } else {
  // object does not exist
  }
  } catch (CpoException ce) {
  // Handle the error
  }
  }
  </code>
  </pre>
  
  @param name The String name of the EXISTS Function Group that will be used to create the object in the datasource.
  null signifies that the default rules will be used.
  @param obj  This is an object that has been defined within the metadata of the datasource. If the class is not
  defined an exception will be thrown. This object will be searched for inside the datasource.
  @return The number of objects that exist in the datasource that match the specified object
  @throws CpoException Thrown if there are errors accessing the datasource