private ObjectResult updateObject ( DBObject dbObj , Map < String , String > currScalarMap , Map < String , Map < String , Integer > > targObjShardNos ) { ObjectResult objResult = null ; if ( Utils . isEmpty ( dbObj . getObjectID ( ) ) ) { objResult = ObjectResult . newErrorResult ( "Object ID is required" , null ) ; } else if ( currScalarMap == null ) { objResult = ObjectResult . newErrorResult ( "No object found" , dbObj . getObjectID ( ) ) ; } else { ObjectUpdater objUpdater = new ObjectUpdater ( m_tableDef ) ; if ( targObjShardNos . size ( ) > 0 ) { objUpdater . setTargetObjectShardNumbers ( targObjShardNos ) ; } objResult = objUpdater . updateObject ( m_parentTran , dbObj , currScalarMap ) ; } return objResult ; }
Update the given object which must exist using the given set of current scalar values .