public Object getObjectByQuery(Query query)
		throws PersistenceBrokerException
	{
		if (query instanceof QueryByIdentity)
		{
			Object id = ((QueryByIdentity) query).getExampleObject();
			if (! (id instanceof Identity))
			{
				id = new Identity(id,PersistenceBrokerFactory.defaultPersistenceBroker());	
			}			
			Identity oid = (Identity) id;
			return db.lookupObjectByIdentity(oid);
		}
		else
		{
			throw new PersistenceBrokerException("not yet implemented");	
		}
	}
public Object getObjectByQuery ( Query query ) throws PersistenceBrokerException { if ( query instanceof QueryByIdentity ) { Object id = ( ( QueryByIdentity ) query ) . getExampleObject ( ) ; if ( ! ( id instanceof Identity ) ) { id = new Identity ( id , PersistenceBrokerFactory . defaultPersistenceBroker ( ) ) ; } Identity oid = ( Identity ) id ; return db . lookupObjectByIdentity ( oid ) ; } else { throw new PersistenceBrokerException ( "not yet implemented" ) ; } }
@see org.apache.ojb.broker.PersistenceBroker#getObjectByQuery(Query)